Bug 1912879

Summary: OSP 16.1 Validations Fail ClientManager object no attribute auth
Product: Red Hat OpenStack Reporter: David Rosenfeld <drosenfe>
Component: python-tripleoclientAssignee: Gaël Chamoulaud <gchamoul>
Status: CLOSED ERRATA QA Contact: David Rosenfeld <drosenfe>
Severity: high Docs Contact:
Priority: high    
Version: 16.1 (Train)CC: cjeanner, dpeacock, gchamoul, hbrock, igallagh, jjoyce, jschluet, jslagle, mburns, nweinber, slinaber, spower, tvignaud
Target Milestone: z4Keywords: Triaged
Target Release: 16.1 (Train on RHEL 8.2)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-tripleoclient-12.3.2-1.20201114043241.el8ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-03-17 15:36:33 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:
Bug Depends On:    
Bug Blocks: 1887437, 1887725, 1887777, 1888642, 1891200, 1891210, 1892323, 1893896, 1903606    

Description David Rosenfeld 2021-01-05 13:57:38 UTC
Description of problem: In OSP 16.2 when executing a validation it fails with following error:

openstack tripleo validator run --validation collect-flavors-and-verify-profiles
Exception occured while running the command
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/osc_lib/clientmanager.py", line 47, in __get__
    self._handle = self.factory(instance)
  File "/usr/lib/python3.6/site-packages/mistralclient/osc/plugin.py", line 43, in make_client
    interface='publicURL'
  File "/usr/lib/python3.6/site-packages/osc_lib/clientmanager.py", line 252, in get_endpoint_for_service_type
    endpoint = self.auth.get_endpoint(
AttributeError: 'ClientManager' object has no attribute 'auth'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/tripleoclient/command.py", line 32, in run
    super(Command, self).run(parsed_args)
  File "/usr/lib/python3.6/site-packages/osc_lib/command/command.py", line 41, in run
    return super(Command, self).run(parsed_args)
  File "/usr/lib/python3.6/site-packages/cliff/command.py", line 185, in run
    return_code = self.take_action(parsed_args) or 0
  File "/usr/lib/python3.6/site-packages/tripleoclient/v1/tripleo_validator.py", line 411, in take_action
    self._run_validator_run(parsed_args)
  File "/usr/lib/python3.6/site-packages/tripleoclient/v1/tripleo_validator.py", line 332, in _run_validator_run
    plans = plan_management.list_deployment_plans(clients)
  File "/usr/lib/python3.6/site-packages/tripleoclient/workflows/plan_management.py", line 126, in list_deployment_plans
    workflow_client = clients.workflow_engine
  File "/usr/lib/python3.6/site-packages/osc_lib/clientmanager.py", line 52, in __get__
    six.reraise(new_err.__class__, new_err, sys.exc_info()[2])
  File "/usr/lib/python3.6/site-packages/six.py", line 692, in reraise
    raise value.with_traceback(tb)
  File "/usr/lib/python3.6/site-packages/osc_lib/clientmanager.py", line 47, in __get__
    self._handle = self.factory(instance)
  File "/usr/lib/python3.6/site-packages/mistralclient/osc/plugin.py", line 43, in make_client
    interface='publicURL'
  File "/usr/lib/python3.6/site-packages/osc_lib/clientmanager.py", line 252, in get_endpoint_for_service_type
    endpoint = self.auth.get_endpoint(
osc_lib.exceptions.PluginAttributeError: 'ClientManager' object has no attribute 'auth'
'ClientManager' object has no attribute 'auth'


Version-Release number of selected component (if applicable): RHOS-16.2-RHEL-8-20201215.n.1


How reproducible: Every time a validation is executed.


Steps to Reproduce:
1. On a 16.2 undercloud execute any validation. e.g.: openstack tripleo validator run --validation collect-flavors-and-verify-profiles
2.
3.

Actual results: Validation fails with error above.


Expected results: Validation executes successfully.


Additional info:

Comment 2 Cédric Jeanneret 2021-01-25 14:06:34 UTC
Moving to 16.1, will clone it for 16.2 later.

Comment 11 David Rosenfeld 2021-02-01 20:32:01 UTC
Validators may now be executed:

(undercloud) [stack@undercloud-0 ~]$ openstack tripleo validator run --validation undercloud-heat-purge-deleted
Running Validations without Overcloud settings.
WARNING:tripleo_common.inventory:Stack not found: overcloud. Only the undercloud will be added to the inventory.
+--------------------------------------+-------------------------------+--------+------------+----------------+-------------------+-------------+
|                 UUID                 |          Validations          | Status | Host_Group | Status_by_Host | Unreachable_Hosts |   Duration  |
+--------------------------------------+-------------------------------+--------+------------+----------------+-------------------+-------------+
| b15ff9fd-d64f-42e1-bd33-ac04ef223d2d | undercloud-heat-purge-deleted | PASSED | undercloud |   undercloud   |                   | 0:00:02.187 |
+--------------------------------------+-------------------------------+--------+------------+----------------+-------------------+-------------+

Comment 18 errata-xmlrpc 2021-03-17 15:36:33 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.4 director bug fix 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:0817