Bug 1959492 - 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
Summary: Validator run should manage the ability to pass extra variables and extra env...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-tripleoclient
Version: 16.1 (Train)
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: z7
: 16.1 (Train on RHEL 8.2)
Assignee: Gaël Chamoulaud
QA Contact: David Rosenfeld
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-05-11 16:25 UTC by Gaël Chamoulaud
Modified: 2023-09-15 01:06 UTC (History)
7 users (show)

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 ----
Clone Of:
Environment:
Last Closed: 2021-12-09 20:19:09 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 782899 0 None MERGED Use MultiKeyActionValue action for extra-[env-]vars arguments 2021-05-11 16:25:45 UTC
OpenStack gerrit 782900 0 None MERGED Use MultiKeyActionValue action for extra-[env-]vars arguments 2021-05-11 16:25:45 UTC
OpenStack gerrit 782902 0 None MERGED Use MultiKeyActionValue action for extra-[env-]vars arguments 2021-05-11 16:25:45 UTC
OpenStack gerrit 783297 0 None MERGED Use MultiKeyActionValue action for extra-[env-]vars arguments 2021-05-11 16:25:45 UTC
Red Hat Issue Tracker OSP-3793 0 None None None 2021-11-18 11:31:57 UTC
Red Hat Issue Tracker VALFRWK-514 0 None None None 2021-08-13 05:26:59 UTC
Red Hat Product Errata RHBA-2021:3762 0 None None None 2021-12-09 20:19:28 UTC

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


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