Bug 2122932 - VF runtime doesn't respect inventory path specified in the validation.cfg
Summary: VF runtime doesn't respect inventory path specified in the validation.cfg
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-validations-libs
Version: 17.0 (Wallaby)
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: z1
: 17.0
Assignee: mathieu bultel
QA Contact: nlevinki
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-08-31 10:20 UTC by Jiri Podivin
Modified: 2023-09-19 04:25 UTC (History)
2 users (show)

Fixed In Version: python-validations-libs-1.7.2-0.20221208090406.b27ad5a.el9ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-01-25 12:28:51 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 855365 0 None master: MERGED validations-libs: Define and loop on config file section (I068e57e18b256907ce54bf48e753d496dec5327d) 2022-12-06 17:16:45 UTC
Red Hat Issue Tracker OSP-18481 0 None None None 2022-08-31 10:30:32 UTC
Red Hat Issue Tracker VALFRWK-767 0 None None None 2022-08-31 10:30:35 UTC
Red Hat Product Errata RHBA-2023:0271 0 None None None 2023-01-25 12:29:08 UTC

Description Jiri Podivin 2022-08-31 10:20:21 UTC
Description of problem:

Inventory key in the validation.cfg file is meant to supply default path to ansible inventory. However, CLI ignores contents of the field 

Version-Release number of selected component (if applicable): 1.7.1


How reproducible:
Always.

Steps to Reproduce:
1. Set inventory key in the validation.cfg file
2. Execute VF run

Actual results:
Inventory isn't used

Expected results:
Inventory should be used in preference to the default 'localhost'.

Additional info:
Issue appears to be caused by inconsistent handling of the data obtained from parsed cfg file. The `self.base.config` attribute contains empty dictionary, due to the 'base' object being reinitialized in the meantime. 

Furthermore, as the inventory key exists in the 'ansible-runner' section, it won't be read by the runtime before execution of the valdiation, as the run command only requests content of the default section.

Comment 12 errata-xmlrpc 2023-01-25 12:28:51 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 17.0.1 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-2023:0271

Comment 13 Red Hat Bugzilla 2023-09-19 04:25:24 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days


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