DescriptionCédric Jeanneret
2020-10-12 13:45:27 UTC
Description of problem:
If a validator is executed before overcloud is created there is an error about tripleo-ansible-inventory.yaml not being parse-able:
undercloud) [stack@undercloud-0 ~]$ openstack tripleo validator run --group pre-introspection
[WARNING]: * Failed to parse /home/stack/tripleo-ansible-inventory.yaml with
auto plugin: no root 'plugin' key found, '/home/stack/tripleo-ansible-
inventory.yaml' is not a valid YAML inventory plugin config file
[WARNING]: * Failed to parse /home/stack/tripleo-ansible-inventory.yaml with
yaml plugin: can't add group to itself
[WARNING]: * Failed to parse /home/stack/tripleo-ansible-inventory.yaml with
ini plugin: Invalid host pattern 'Undercloud:' supplied, ending in ':' is not
allowed, this character is reserved to provide a port.
[WARNING]: Unable to parse /home/stack/tripleo-ansible-inventory.yaml as an
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'
/usr/lib/python3.6/site-packages/validations_libs/ansible.py:374: ResourceWarning: unclosed file <_io.BufferedWriter name='/var/log/validations/artifacts/85241718-e8e4-42b7-963a-4cde3c6a0179_check-cpu.yaml_2020-10-10T23:50:39.592042Z/artifacts/stdout'>
status, rc = runner.run()
Version-Release number of selected component (if applicable):
python3-tripleoclient-12.3.2-1.20200914164928.el8ost.noarch
How reproducible:
Always
Steps to Reproduce:
1. Run validator without an overcloud
2.
3.
Actual results:
We see issues with parsing the inventory, and many validations fail
Expected results:
It should gracefully fail without a stacktrace.
Additional info:
Created inventory file using:
tripleo-ansible-inventory --ansible_ssh_user heat-admin --static-yaml-inventory inventory.yaml
then ran a validation:
openstack tripleo validator run --validation check-cpu --extra-vars minimal_cpu_count=10 --static-inventory inventory.yaml
Moving back to On_QA as verification was done mistakenly on 16.2
Also I should not have generate the inventory file myselfm should be done automatically
Seeing out of range error when a validation is executed before overcloud is deployed:
openstack tripleo validator run --validation check-ram
Running Validations without Overcloud settings.
Error creating static inventory: list index out of range
Failed to generate inventory
new build in FIV is openstack-tripleo-validations-11.3.2-1.20210803213306.4db92ba.el8ost
The one for openstack-tripleo-common is still accurate! No change here.