Bug 1959492

Summary: Validator run should manage the ability to pass extra variables and extra environment variables to the Ansible execution as key1=value1,key2=value2 instead of using a dict
Product: Red Hat OpenStack Reporter: Gaël Chamoulaud <gchamoul>
Component: python-tripleoclientAssignee: Gaël Chamoulaud <gchamoul>
Status: CLOSED ERRATA QA Contact: David Rosenfeld <drosenfe>
Severity: high Docs Contact:
Priority: high    
Version: 16.1 (Train)CC: gregraka, hbrock, jfrancoa, jhajyahy, jpodivin, jslagle, mburns
Target Milestone: z7Keywords: Triaged
Target Release: 16.1 (Train on RHEL 8.2)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-tripleoclient-12.3.2-1.20210511173312.ae58329.el8ost Doc Type: Enhancement
Doc Text:
With this update, the `tripleo validator` command now accepts variables and environment variables in a key-value pair format. In past releases, only JSON dictionaries allowed environment variables. + ---- openstack tripleo validator run \ [--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>,...]) ---- + .Example + ---- $ openstack tripleo validator run --validation check-cpu,check-ram --extra-vars minimal_ram_gb=8 --extra-vars minimal_cpu_count=2 ---- + For the complete list of supported options, run: + ---- $ openstack tripleo validator run --help ----
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-12-09 20:19:09 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Gaël Chamoulaud 2021-05-11 16:25:46 UTC
The openstack tripleo validator run --extra-vars and --extra-env-vars should be able to take KEY=VALUE pairs instead of using a dictionary format:

$ openstack tripleo validator run --validation check-cpu,check-ram --extra-vars minimal_ram_gb=8 --extra-vars minimal_cpu_count=2

Comment 9 Jad Haj Yahya 2021-07-28 14:11:50 UTC
openstack tripleo validator run --validation check-cpu,check-ram --extra-vars minimal_ram_gb=8 --extra-vars minimal_cpu_count=2

Comment 24 errata-xmlrpc 2021-12-09 20:19:09 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 16.1.7 (Train) bug fix and 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/RHBA-2021:3762

Comment 25 Red Hat Bugzilla 2023-09-15 01:06:25 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 500 days