AllNodesValidationConfig ping test fails when OC containes multiple hosts groups
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
In Progress
|
Undecided
|
Radoslaw Smigielski |
Bug Description
AllNodesValidat
We have installation with following host types: Controller, DpdkPerformance
For all these host groups we have ping_test_ips which looks like this:
> ping_test_ips:
> AvrsCompute: ' '
> Controller: 172.31.0.203 172.17.3.192 172.17.4.105 172.17.1.156 172.31.0.203 172.17.2.185
> 10.75.224.154
> DpdkPerformance
> Monitoring: ' '
> OvsCompute: 172.31.1.101 172.17.3.134 172.17.4.44 172.17.1.161 172.17.2.244
> SriovPerformanc
> Storage: ' '
ping_test_ips is being converted to json in deploy_
> - name: AllNodesValidat
> script: all_nodes_
> environment:
> validate_
> validate_
> validate_fqdn: "{{ validate_fqdn }}"
> ping_test_ips: "{{ ping_test_ips | to_json }}"
> tripleo_role_name: "{{ tripleo_role_name }}"
Converted to json ping_test_ips is nor correctly broken down into IP addresses:
echo '{
"Storage": " "
}' | sed -e "s| |\n|g" | sort -u
"
",
{
}
10.75.224.154",
172.17.1.156
172.17.1.161
172.17.2.185
172.17.2.244",
172.17.3.134
172.17.3.192
172.17.4.105
172.17.4.44
"172.31.0.203
172.31.0.203
"172.31.1.101
"AvrsCompute":
"Controller":
"DpdkPerformanc
"Monitoring":
"OvsCompute":
"SriovPerforman
"Storage":
Changed in tripleo: | |
assignee: | nobody → Radoslaw Smigielski (radoslaw-smigielski) |
status: | New → In Progress |
This is the Ansible error:
2020-09-17 20:01:10,880 p=11897 u=mistral n=ansible | TASK [AllNodesValida tionConfig] ******* ******* ******* ******* ******* ******* ****** controller- bagwell- cloud-0] : FAILED! => {"changed": true, "msg": "non-zero return code", "rc": 1, "stderr": "Shared connection to 172.31.0.203 closed.\r\n", "stderr_lines": ["Shared connection to 172.31.0.203 closed."], "stdout": "Traceback (most recent call last):\r\n File \"<string>\", line 1, in <module>\r\n File \"/usr/ lib/python2. 7/site- packages/ ipaddr. py\", line 77, in IPAddress\r\n address) \r\nValueError: '\"' does not appear to be an IPv4 or IPv6 address\r\n", "stdout_lines": ["Traceback (most recent call last):", " File \"<string>\", line 1, in <module>", " File \"/usr/ lib/python2. 7/site- packages/ ipaddr. py\", line 77, in IPAddress", " address)", "ValueError: '\"' does not appear to be an IPv4 or IPv6 address"]} controller- bagwell- cloud-1] : FAILED! => {"changed": true, "msg": "non-zero return code", "rc": 1, "stderr": "Shared connection to 172.31.1.190 closed.\r\n", "stderr_lines": ["Shared connection to 172.31.1.190 closed."], "stdout": "Traceback (most recent call last):\r\n File \"<string>\", line 1, in <module>\r\n File \"/usr/ lib/python2. 7/site- packages/ ipaddr. py\", line 77, in IPAddress\r\n address) \r\nValueError: '\"' does not appear to be an IPv4 or IPv6 address\r\n", "stdout_lines": ["Traceback (most recent call last):", " File \"<string>\", line 1, in <module>", " File \"/usr/ lib/python2. 7/site- packages/ ipaddr. py\", line 77, in IPAddress", " address)", "ValueError: '\"' does not appear to be an IPv4 or IPv6 address"]} controller- bagwell- cloud-2] : FAILED! => {"changed": true, "msg": "non-zero return code", "rc": 1, "stderr": "Shared connection to 172.31.0.145 closed.\r\n", "stderr_lines": ["Shared connection to 172.31.0.145 closed."], "stdout": "Traceback (most recent call last):\r\n File \"<string>\", line 1, in <module>\r\n File \"/usr/ lib/python2. 7/site- packages/ ipaddr. py\", line 77, in IPAddress\r\n address) \r\nValueError: '\"' does not appear to be an IPv4 or IPv6 address\r\n", "stdout_lines": ["Traceback (most recent call last):", " File \"<string>\", line 1, in <module>", " File \"/usr/ lib/python2. 7/site- packages/ ipaddr. py\", line 77, in IPAddress", " address)", "ValueError: '\"' does not appear to be an IPv4 or IPv6 address"]} ovscompute- bagwell- cloud-1] : FAILED! => {"changed": true, "msg": "non-zero return code", "rc": 1, "stderr": "Shared connection to 172.31.1.123 closed.\r\n", "stderr_lines": ["Shared connection to 172.31.1.123 closed."], "stdout": "Traceback (most recent call last):\r\n File \"<string>\", line 1, in <module>\r\n File \"/usr/ lib/python2. 7/site- packages/ ipaddr. py\", line 77, in IPAddress\r\n ...
2020-09-17 20:01:10,881 p=11897 u=mistral n=ansible | Thursday 17 September 2020 20:01:10 +0000 (0:00:00.786) 0:03:39.281 ****
2020-09-17 20:01:11,578 p=11897 u=mistral n=ansible | fatal: [overcloud-
2020-09-17 20:01:11,686 p=11897 u=mistral n=ansible | fatal: [overcloud-
2020-09-17 20:01:11,793 p=11897 u=mistral n=ansible | fatal: [overcloud-
2020-09-17 20:01:11,798 p=11897 u=mistral n=ansible | fatal: [overcloud-