Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1647673

Summary: The validator "Check network requirements for an OpenShift on OpenStack deployment" fails, because an undefined variable in the code
Product: Red Hat OpenStack Reporter: Andrey Fiodorov <afiodoro>
Component: openstack-tripleo-validationsAssignee: Gaël Chamoulaud <gchamoul>
Status: CLOSED ERRATA QA Contact: Amit Ugol <augol>
Severity: high Docs Contact:
Priority: high    
Version: 14.0 (Rocky)CC: augol, gchamoul, jjoyce, jschluet, slinaber, tvignaud, ukalifon
Target Milestone: Upstream M2Keywords: Reopened, Triaged
Target Release: 15.0 (Stein)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-validations-10.4.1-0.20190621220403.673148d.el8ost Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-09-21 11:19:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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