Bug 2150298 - oslo_config_validator fails with Error: The task includes an option with an undefined variable
Summary: oslo_config_validator fails with Error: The task includes an option with an u...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-validations
Version: 17.0 (Wallaby)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: z2
: 17.0
Assignee: Jiri Podivin
QA Contact: nlevinki
URL:
Whiteboard:
Depends On: 2127966
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-12-02 12:26 UTC by Jiri Podivin
Modified: 2023-02-22 14:16 UTC (History)
5 users (show)

Fixed In Version: openstack-tripleo-validations-14.2.2-0.20230206150303.37bfae3.el9osttrunk
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-02-22 14:16:54 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 866581 0 None MERGED Adding graceful failure condition to options dictionary lookup 2023-02-17 15:12:54 UTC
OpenStack gerrit 871700 0 None MERGED Adding graceful failure condition to options dictionary lookup 2023-02-06 10:39:27 UTC
OpenStack gerrit 871701 0 None MERGED Adding graceful failure condition to options dictionary lookup 2023-02-06 10:39:27 UTC
Red Hat Bugzilla 2127966 0 high CLOSED oslo_config_validator fails with Error: must set volume destination 2023-01-25 12:34:06 UTC
Red Hat Issue Tracker OSP-20660 0 None None None 2022-12-02 13:01:56 UTC
Red Hat Issue Tracker VALFRWK-783 0 None None None 2022-12-02 13:01:58 UTC

Description Jiri Podivin 2022-12-02 12:26:18 UTC
Description of problem:
Validation can fail on controller with a syntax error.

Issue is possibly caused by accessing attribute without appropriate prior check.

Trace:
------
                        "controller-0": {
                            "_ansible_no_log": false,
                            "action": "set_fact",
                            "failed": true,
                            "msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'os_vif_ovs'\n\nThe error appears to be in '/usr/share/ansible/roles/oslo_config_validator/tasks/opt_data_format.yml': line 39, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Building list of replaceable data\n  ^ here\n"
                        }
                    },


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


How reproducible:
Consistently

Steps to Reproduce:
1. Execute `validation run --validation oslo-config-validator` with appropriate inventory
2.
3.

Actual results:
Validation fails ungracefully.

Expected results:
Validation should succeed or gracefully fail.

Additional info:
Can only manifest if the validation execution gets this far.


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