Description of problem: When running a validation with --extra-vars-file argument, the parameters contained in the file are taken in account during the execution. Version-Release number of selected component (if applicable): - python3-tripleoclient-12.3.2-1.20200914164928.el8ost.noarch - validations-common-1.1.2-1.20200914180304.7f3c565.el8ost.noarch - python3-validations-libs-1.0.5-1.20200914174429.4a660ec.el8ost.noarch - openstack-tripleo-validations-11.3.2-1.20200914170825.el8ost.noarch - python3-ansible-runner-1.3.4-2.el8ar.noarch How reproducible: $ openstack tripleo validator run --validation check-cpu => The validation should pass $ openstack tripleo validator show parameter --validation check-cpu --download /tmp/check-cpu.json -f json $ sed -i 's/\"minimal_cpu_count\": 8/\"minimal_cpu_count\": 120/' /tmp/check-cpu.json $ openstack tripleo validator run --validation check-cpu --extra-vars-file /tmp/check-cpu.json => The validation should fail
Verification of this BZ is blocked by: https://bugzilla.redhat.com/show_bug.cgi?id=1912879
With this extra-var-file validation passes: more /tmp/check-cpu.json { "minimal_cpu_count": 1 } openstack tripleo validator run --validation check-cpu --extra-vars-file /tmp/check-cpu.json Running Validations without Overcloud settings. +--------------------------------------+-------------+--------+------------+-------------------------------------+-------------------+-------------+ | UUID | Validations | Status | Host_Group | Status_by_Host | Unreachable_Hosts | Duration | +--------------------------------------+-------------+--------+------------+-------------------------------------+-------------------+-------------+ | 87caf663-5adb-48ab-b23d-600475af0435 | check-cpu | PASSED | all | compute-0, controller-0, undercloud | | 0:00:02.798 | +--------------------------------------+-------------+--------+------------+-------------------------------------+-------------------+-------------+ With this extra-var-file validation fails: more /tmp/check-cpu.json { "minimal_cpu_count": 120 } openstack tripleo validator run --validation check-cpu --extra-vars-file /tmp/check-cpu.json Running Validations without Overcloud settings. +--------------------------------------+-------------+--------+------------+-------------------------------------+-------------------+-------------+ | UUID | Validations | Status | Host_Group | Status_by_Host | Unreachable_Hosts | Duration | +--------------------------------------+-------------+--------+------------+-------------------------------------+-------------------+-------------+ | 40b14321-9b7d-470b-b479-230b9a8b281c | check-cpu | FAILED | all | compute-0, controller-0, undercloud | | 0:00:02.802 | +--------------------------------------+-------------+--------+------------+-------------------------------------+-------------------+-------------+ extra-var-file is being used because validation passes when one cpu is required and fails when 120 cpus are required.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Red Hat OpenStack Platform 16.1.4 director bug fix advisory), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2021:0817