Bug 1946047 - [TripleO Validator Run] --static-inventory argument is mutually exclusive with --extra-vars/--extra-vars-file/--extra-env-vars
Summary: [TripleO Validator Run] --static-inventory argument is mutually exclusive wit...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-tripleoclient
Version: 16.1 (Train)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: z6
: 16.1 (Train on RHEL 8.2)
Assignee: mathieu bultel
QA Contact: David Rosenfeld
URL:
Whiteboard:
Depends On:
Blocks: 1946454
TreeView+ depends on / blocked
 
Reported: 2021-04-03 19:46 UTC by Gaël Chamoulaud
Modified: 2022-08-30 12:00 UTC (History)
8 users (show)

Fixed In Version: python-tripleoclient-12.3.2-1.20210329153522.el8ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1946454 (view as bug list)
Environment:
Last Closed: 2021-05-26 13:52:31 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 783853 0 None MERGED Move static-inventory option into parser group 2021-04-03 19:46:14 UTC
OpenStack gerrit 784400 0 None MERGED Move static-inventory option into parser group 2021-04-07 09:45:50 UTC
OpenStack gerrit 784401 0 None MERGED Move static-inventory option into parser group 2021-04-26 08:00:31 UTC
OpenStack gerrit 784402 0 None MERGED Move static-inventory option into parser group 2021-04-07 09:45:58 UTC
Red Hat Issue Tracker OSP-1773 0 None None None 2022-08-30 12:00:01 UTC
Red Hat Product Errata RHBA-2021:2097 0 None None None 2021-05-26 13:53:07 UTC

Description Gaël Chamoulaud 2021-04-03 19:46:14 UTC
Description of problem:

The --static-inventory argument is part of the mutual and exclusive group of argument including --extra-vars/--extra-vars-file/--extra-env-vars and it can't be used in addition to those --extra-vars ones.


How reproducible:

[stack@undercloud ~]$ openstack tripleo validator run --validation check-ram --static-inventory inventory.yaml --extra-vars-file myvars.json
usage: openstack tripleo validator run [--plan PLAN] [--ssh-user SSH_USER]
                                       [--limit LIMIT]
                                       [--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>] |
                                       --static-inventory STATIC_INVENTORY]
                                       (--validation <validation_id>[,<validation_id>,...] | --group <group>[,<group>,...])
openstack tripleo validator run: error: argument --extra-vars: not allowed with argument --static-inventory
 

Expected results:

[stack@undercloud ~]$ openstack tripleo validator run --validation check-ram --static-inventory inventory.yaml --extra-vars-file myvars.json
Running Validations without Overcloud settings.
+--------------------------------------+-------------+--------+------------+----------------+-------------------+-------------+
| UUID                                 | Validations | Status | Host_Group | Status_by_Host | Unreachable_Hosts | Duration    |
+--------------------------------------+-------------+--------+------------+----------------+-------------------+-------------+
| 876c481c-20fa-40f1-830b-e66a13b6085b | check-ram   | PASSED | all        | undercloud     |                   | 0:00:00.842 |
+--------------------------------------+-------------+--------+------------+----------------+-------------------+-------------+

Comment 2 Cédric Jeanneret 2021-04-07 12:04:02 UTC
Hello @gchamoul @mbultel,

Care to check if this one can be moved to MODIFIED with some FIV value?

Else, it will be pushed to z7, unless it's a blocker.

Cheers,

C.

Comment 9 David Rosenfeld 2021-04-26 13:30:34 UTC
Static inventory and extra-vars-file are no longer mutually exclusive:

openstack tripleo validator run --validation check-cpu --static-inventory /home/stack/inventory.yaml --extra-vars-file /tmp/check-cpu1.json
Running Validations without authentication.
+--------------------------------------+-------------+--------+------------+-------------------------------------+-------------------+-------------+
|                 UUID                 | Validations | Status | Host_Group |            Status_by_Host           | Unreachable_Hosts |   Duration  |
+--------------------------------------+-------------+--------+------------+-------------------------------------+-------------------+-------------+
| fa832580-9a39-456b-9565-25ef93a00d55 |  check-cpu  | PASSED |    all     | compute-0, controller-0, undercloud |                   | 0:00:03.826 |
+--------------------------------------+-------------+--------+------------+-------------------------------------+-------------------+-------------+

Comment 15 errata-xmlrpc 2021-05-26 13:52:31 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.6 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:2097


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