fail collect-logs playbook when fetch overcloud node names and IPs tasks fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
In Progress
|
High
|
Ananya Banerjee |
Bug Description
logs are not getting collected from overcloud nodes in fs01 jobs as it does not able to find out
the overcloud nodes ip and collect-logs playbook is passing without it.
So the job is passing. Which is not good.
The job needs to fail with proper error
fatal: [undercloud]: FAILED! => {
"changed": true,
"cmd": "source /home/zuul/stackrc; $(command -v python3 || command -v python2) /home/zuul/
"delta": "0:00:01.252658",
"end": "2021-09-20 16:39:01.165735",
"invocation": {
"argv": null,
"warn": false
}
},
"rc": 1,
"start": "2021-09-20 16:38:59.913077"
}
STDERR:
Traceback (most recent call last):
File "/home/
servers_list = provisioner.
File "/usr/lib/
nodes = self.connection
File "/usr/lib/
proxy = self._make_
File "/usr/lib/
region_
openstack.
MSG:
non-zero return code
...ignoring
TASK [tripleo-inventory : list the overcloud nodes] *******
task path: /home/zuul/
Monday 20 September 2021 16:39:01 +0000 (0:00:01.851) 0:00:17.146 ******
ok: [undercloud] => {
"registered
}
```
- name: list the overcloud nodes
debug: var=registered_
```
We should first check the exit status of above task before listing the nodes ip and if above command fails then fail it.
tags: | added: alert ci |
Changed in tripleo: | |
assignee: | nobody → Ananya Banerjee (frenzyfriday) |
Changed in tripleo: | |
status: | New → In Progress |
Changed in tripleo: | |
importance: | Undecided → High |
https:/ /review. opendev. org/c/openstack /tripleo- quickstart/ +/810175