Bug 1647673 - The validator "Check network requirements for an OpenShift on OpenStack deployment" fails, because an undefined variable in the code
Summary: The validator "Check network requirements for an OpenShift on OpenStack deplo...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-validations
Version: 14.0 (Rocky)
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: Upstream M2
: 15.0 (Stein)
Assignee: Gaël Chamoulaud
QA Contact: Amit Ugol
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-11-08 06:05 UTC by Andrey Fiodorov
Modified: 2019-09-26 10:46 UTC (History)
7 users (show)

Fixed In Version: openstack-tripleo-validations-10.4.1-0.20190621220403.673148d.el8ost
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-09-21 11:19:23 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 619578 0 None None None 2018-11-22 14:09:22 UTC
OpenStack gerrit 627065 0 None None None 2018-12-23 10:36:49 UTC
Red Hat Product Errata RHEA-2019:2811 0 None None None 2019-09-21 11:19:45 UTC

Description Andrey Fiodorov 2018-11-08 06:05:36 UTC
Description of problem:
When I run this validation I'm getting this error message:

Task 'Set auth token' failed:
Host: undercloud
Message: The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'x_subject_token'

The error appears to have been in '/usr/share/openstack-tripleo-validations/validations/openshift-nw-requirements.yaml': line 42, column 5, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

    when: overcloud_keystone_url|default('')
  - name: Set auth token
    ^ here


Failure! The validation failed for all hosts:
* undercloud

Version-Release number of selected component (if applicable):
openstack-tripleo-validations-9.3.1-0.20181008110747.4064fb7.el7ost.noarch

How reproducible:
100%

Steps to Reproduce: 
1. Install OSP14 (undercloud only) from 07-Nov-2018 
2. Go to default plan and run validator "Check network requirements for an OpenShift on OpenStack deployment"
3.

Actual results:
The validator fails with error message of code.

Expected results:
The validator should pass/fail with clear error message.

Additional info:

Comment 1 Udi Kalifon 2018-11-13 14:00:11 UTC
If this needs backporting, create a backport bug please.

Comment 2 Gaël Chamoulaud 2018-11-13 15:03:55 UTC
Udi, Andrey,

This validation checking if an external network has been configured on the overcloud as required for an OpenShift deployment on top of OpenStack.

So this validation should be executed on the undercloud with a working overcloud.

In conclusion, this bug should be closed as not a bug for the previous reason.

Comment 3 Andrey Fiodorov 2018-11-14 08:26:34 UTC
You are right, it is my mistake.
Thanks.

Comment 4 grozov 2018-11-22 13:15:18 UTC
The validation should say: "this validation should be executed on the undercloud with a working overcloud"

Comment 12 errata-xmlrpc 2019-09-21 11:19:23 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, 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/RHEA-2019:2811


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