tripleo-validation --static-inventory parameter not working.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
High
|
mathieu bultel |
Bug Description
Hi,
In the help we have this:
--static-
for the tripleo validator run command.
But, it doesn't work as expected. Static-inventory take a "string inventory" not an inventory file path.
This can be seen in the following command:
Using a file path:
[stack@undercloud-0 ~]$ openstack --os-cloud undercloud tripleo validator run --group no-op --static-inventory ./inventory.yaml
fails:
[WARNING]: Unable to parse /var/log/
aacf-5b519e2632
inventory source
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that
the implicit localhost does not match 'all'
+------
| UUID | Validations | Status | Host_Group | Status_by_Host | Unreachable_Hosts | Duration |
+------
| d2c68242-
+------
[stack@undercloud-0 ~]$
Using an "inventory string":
openstack --os-cloud undercloud tripleo validator run --group no-op --static-inventory "$(cat ./inventory.yaml )"
works:
[WARNING]: Invalid characters were found in group names but not replaced, use
-vvvv to see details
Tuesday 19 January 2021 17:24:07 +0000 (0:00:00.040) 0:00:00.040 *******
Tuesday 19 January 2021 17:24:07 +0000 (0:00:00.216) 0:00:00.257 *******
=======
no_op : Run a no-op validation everywhere -------
+------
| UUID | Validations | Status | Host_Group | Status_by_Host | Unreachable_Hosts | Duration |
+------
| 9dfad524-
+------
Changed in tripleo: | |
milestone: | wallaby-2 → wallaby-3 |
Changed in tripleo: | |
milestone: | wallaby-3 → wallaby-rc1 |
Changed in tripleo: | |
milestone: | wallaby-rc1 → xena-1 |
Changed in tripleo: | |
milestone: | xena-1 → xena-2 |
CLI refactoring fixed this issue for the VF.
As such it is no longer relevant.
https:/ /review. opendev. org/c/openstack /validations- libs/+/ 782574