问题

通过Ansible从遥控器执行NC检查

  • 2021年7月2日
  • 0答复
  • 48次观点

你好,

我试图通过所有簇在所有群集上通过Ansible执行NC检查,因为直到知道它由于缺失的防火墙解锁而失败。直到最后,它似乎还不错,如果没有说“失败”或“通过”(或类似的东西),而是“未能执行NCC ..”::

“ stdout_lines”:[
“”,,
“ ###################################,,,,
“#TIMESTAMP:07/02/2021 2:33:05 PM(UTC +0200)”,
“ ###################################,,,,
“ ncc_version:4.0.1-329829c4”,
“集群ID:7805490355129540044”,
“群集名称:gbru0010”,
“带有服务VM ID 5的节点”,
“服务VM外部IP:10.202.89.19”,
“管理程序地址列表:[U'10.202.89.15']”,
“管理程序版本:VMware ESXI 6.7.0 build-17700523”,
“ IPMI地址列表:[U'10.202.89.11']”,
“软件版本:Euphrates-5.15.1稳定”,
“软件更改ID:7D5E4BD69E8EEC8E9A87EAF0DFAD7A1D9ACA53CB”,
“节点序列:HM19BS006502”,
“机架单元:NX-1065-G7”,
“节点位置:a”,
“块S/N:20FM6L300208”,
“带有服务VM ID 6”的节点,
“服务VM外部IP:10.202.89.20”,
“管理程序地址列表:[U'10.202.89.16']”,
“管理程序版本:VMware ESXI 6.7.0 build-17700523”,
“ IPMI地址列表:[U'10.202.89.12']”,
“软件版本:Euphrates-5.15.1稳定”,
“软件更改ID:7D5E4BD69E8EEC8E9A87EAF0DFAD7A1D9ACA53CB”,
“节点序列:HM19CS004151”,
“机架单元:NX-1065-G7”,
“节点位置:b”,
“块S/N:20FM6L300208”,
“带有服务VM ID 7的节点”,
“服务VM外部IP:10.202.89.21”,
“管理程序地址列表:[U'10.202.89.17']”,
“管理程序版本:VMware ESXI 6.7.0 build-17700523”,
“ IPMI地址列表:[U'10.202.89.13']”,
“软件版本:Euphrates-5.15.1稳定”,
“软件更改ID:7D5E4BD69E8EEC8E9A87EAF0DFAD7A1D9ACA53CB”,
“节点序列:HM19CS002942”,
“机架单元:NX-1065-G7”,
“节点位置:C”,
“块S/N:20FM6L300208”,
“”,,
“运行:health_checks system_checks dns_server_check”,
“”,,
“ [===============================================] 100%”,
“”,,
“ \ u001b [91mfail toge ting ting ncc用参数执行:['/home/nutanix/ncc/bin/ncc','health_checks','system_checks','dns_server_check'] \ u001b [0m u001b [0m'


因此,“未能执行NCC”之前的所有内容看起来都不错,并且在Prism元素中,NC-RUN的任务似乎也很好,所以我想,只有我回来的输出才是问题。Ansible任务是:

- 名称:执行给定的NCC命令
贝壳:
CMD:“源/etc/bashrc &&〜/ncc/bin/ncc health_checks system_checks dns_server_check”
注册:ncc_output

一个与环境变量相处的播放很多,但无法获得适当的“通过”或“失败”输出,我需要/想要的。有人想从遥控器执行NC检查吗?

问候,
马克斯


0答复

做第一个回复的人!

回复


Learn more about our cookies.<\/a>","cookiepolicy.button":"Accept cookies","cookiepolicy.button.deny":"Deny all","cookiepolicy.link":"Cookie settings","cookiepolicy.modal.title":"Cookie settings","cookiepolicy.modal.content":"We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.<\/a>","cookiepolicy.modal.level1":"Basic
Functional","cookiepolicy.modal.level2":"Normal
Functional + analytics","cookiepolicy.modal.level3":"Complete
Functional + analytics + social media + embedded videos"}}}">
Baidu