openstack tripleo validator run doesn't fail if a validation fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
High
|
Gael Chamoulaud |
Bug Description
Hi,
context: we trying to add validation to the update process, but the validation command doesn't fail even if the the test fails:
undercloud-0 tripleo-
[WARNING]: Found both group and host with same name: undercloud
Tuesday 09 February 2021 13:59:25 +0000 (0:00:00.063) 0:00:00.063 ******
Tuesday 09 February 2021 13:59:26 +0000 (0:00:00.771) 0:00:00.834 ******
Tuesday 09 February 2021 13:59:26 +0000 (0:00:00.112) 0:00:00.947 ******
Tuesday 09 February 2021 13:59:30 +0000 (0:00:03.507) 0:00:04.454 ******
Tuesday 09 February 2021 13:59:30 +0000 (0:00:00.062) 0:00:04.516 ******
Tuesday 09 February 2021 13:59:30 +0000 (0:00:00.118) 0:00:04.635 ******
Tuesday 09 February 2021 13:59:30 +0000 (0:00:00.110) 0:00:04.746 ******
Tuesday 09 February 2021 13:59:30 +0000 (0:00:00.169) 0:00:04.915 ******
Tuesday 09 February 2021 13:59:30 +0000 (0:00:00.111) 0:00:05.027 ******
=======
package_version : Get repositories packages versions -------
package_version : Ensure we get needed facts -------
package_version : Do the comparison -------
package_version : Compare versions -------
package_version : Gather variables for each operating system ------------ 0.11s
package_version : Fail if we lack a version for any package ------------- 0.11s
package_version : Get wanted package -------
package_version : Initialiaze ok_versions -------
+------
| UUID | Validations | Status | Host_Group | Status_by_Host | Unreachable_Hosts | Duration |
+------
| dc8ee383-
+------
echo $?
0
The question is then what is the proper way to detect that a validation failed ?
Changed in tripleo: | |
assignee: | nobody → Gael Chamoulaud (gael-chamoulaud) |
Seen there https:/ /zuul.opendev. org/t/openstack /build/ d2dd3285fa5f417 db360043b0b7a31 04/log/ logs/undercloud /home/zuul/ validation- pre-update- prepare. log
even with the failure in the validation we moved on and went to the next task.