Bug 1962681 - OSP 16.2 validations extra-var and extra-env-vars are mutually exclusive
Summary: OSP 16.2 validations extra-var and extra-env-vars are mutually exclusive
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-tripleoclient
Version: 16.2 (Train)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: 16.2 (Train on RHEL 8.4)
Assignee: Gaël Chamoulaud
QA Contact: David Rosenfeld
URL:
Whiteboard:
Depends On:
Blocks: 1962688
TreeView+ depends on / blocked
 
Reported: 2021-05-20 13:29 UTC by David Rosenfeld
Modified: 2021-09-15 07:15 UTC (History)
4 users (show)

Fixed In Version: python-tripleoclient-12.5.1-2.20210527084820.0a0296f.el8ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1962688 (view as bug list)
Environment:
Last Closed: 2021-09-15 07:15:04 UTC
Target Upstream Version: Train
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 792373 0 None NEW Remove --extra-env-vars from the mutually exclusive arg group 2021-05-20 13:35:10 UTC
OpenStack gerrit 792376 0 None NEW Remove --extra-env-vars from the mutually exclusive arg group 2021-05-20 13:35:10 UTC
OpenStack gerrit 792378 0 None NEW Remove --extra-env-vars from the mutually exclusive arg group 2021-05-20 13:35:10 UTC
Red Hat Issue Tracker VALFRWK-535 0 None None None 2021-08-13 05:56:38 UTC
Red Hat Product Errata RHEA-2021:3483 0 None None None 2021-09-15 07:15:29 UTC

Description David Rosenfeld 2021-05-20 13:29:37 UTC
Description of problem: extra-vars and extra-env-vars are mutually exclusive:

openstack tripleo validator run --static-inventory /home/stack/inventory.yaml --validation check-cpu --extra-vars minimal_cpu_count=1 --extra-env-vars ANSIBLE_STDOUT_CALLBACK=default
usage: openstack tripleo validator run [--plan PLAN] [--ssh-user SSH_USER]
                                       [--limit LIMIT]
                                       [--python-interpreter PYTHON_INTERPRETER]
                                       [--static-inventory STATIC_INVENTORY]
                                       [--extra-vars key1=<val1>[,key2=val2 --extra-vars key3=<val3>]
                                       | --extra-vars-file EXTRA_VARS_FILE |
                                       --extra-env-vars key1=<val1>[,key2=val2
                                       --extra-env-vars key3=<val3>]]
                                       (--validation <validation_id>[,<validation_id>,...] | --group <group>[,<group>,...])
openstack tripleo validator run: error: argument --extra-env-vars: not allowed with argument --extra-vars


There are cases like the one above where users need to specify both extra-vars and extra-env-vars

Version-Release number of selected component (if applicable): RHOS-16.2-RHEL-8-20210514.n.0


How reproducible: Every time


Steps to Reproduce:
1. Execute command: openstack tripleo validator run --static-inventory /home/stack/inventory.yaml --validation check-cpu --extra-vars minimal_cpu_count=1 --extra-env-vars ANSIBLE_STDOUT_CALLBACK=default
2.
3.

Actual results: Error: openstack tripleo validator run: error: argument --extra-env-vars: not allowed with argument --extra-vars occurrs


Expected results: Validator executes successfully


Additional info:

Comment 7 David Rosenfeld 2021-06-15 18:13:07 UTC
The validator from the description executes successfully:

openstack tripleo validator run --static-inventory /home/stack/inventory.yaml --validation check-cpu --extra-vars minimal_cpu_count=1 --extra-env-vars ANSIBLE_STDOUT_CALLBACK=default
Running Validations without Overcloud settings.

PLAY [localhost] ***************************************************************

TASK [check_cpu : Gather facts] ************************************************
Tuesday 15 June 2021  18:11:56 +0000 (0:00:00.032)       0:00:00.032 ********** 
ok: [localhost]

TASK [check_cpu : Verify the number of CPU cores] ******************************
Tuesday 15 June 2021  18:11:57 +0000 (0:00:00.721)       0:00:00.753 ********** 
ok: [localhost]

PLAY RECAP *********************************************************************
localhost                  : ok=2    changed=0    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
Tuesday 15 June 2021  18:11:57 +0000 (0:00:00.111)       0:00:00.865 ********** 
=============================================================================== 
check_cpu : Gather facts ------------------------------------------------ 0.72s
check_cpu : Verify the number of CPU cores ------------------------------ 0.11s
+--------------------------------------+-------------+--------+------------+----------------+-------------------+-------------+
| UUID                                 | Validations | Status | Host_Group | Status_by_Host | Unreachable_Hosts | Duration    |
+--------------------------------------+-------------+--------+------------+----------------+-------------------+-------------+
| 509f50e7-8e96-4fe1-94bb-96b7aa7caa47 | check-cpu   | PASSED | localhost  | localhost      |                   | 0:00:00.844 |
+--------------------------------------+-------------+--------+------------+----------------+-------------------+-------------+

Comment 9 errata-xmlrpc 2021-09-15 07:15:04 UTC
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 (RHOSP) 16.2 enhancement 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/RHEA-2021:3483


Note You need to log in before you can comment on or make changes to this bug.