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

Bug 1919988

Summary: OSP 16.2 Validations Fail ClientManager object no attribute auth
Product: Red Hat OpenStack Reporter: Cédric Jeanneret <cjeanner>
Component: python-tripleoclientAssignee: Gaël Chamoulaud <gchamoul>
Status: CLOSED ERRATA QA Contact: David Rosenfeld <drosenfe>
Severity: high Docs Contact:
Priority: high    
Version: 16.2 (Train)CC: cjeanner, hbrock, jslagle, mburns
Target Milestone: rcKeywords: Triaged
Target Release: 16.2 (Train on RHEL 8.4)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-tripleoclient-12.4.1-2.20210227010039.909199d.el8ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-09-15 07:11:11 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Cédric Jeanneret 2021-01-25 14:12:01 UTC
This bug was initially created as a copy of Bug #1912879

I am copying this bug because: 
We need a tracker for 16.2 as well - Note this SHOULD be solved if patches in stable/train are merged before the auto-sync is stopped.





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 1 Gaël Chamoulaud 2021-03-03 15:49:03 UTC
Change https://opendev.org/openstack/python-tripleoclient/commit/018a3fe53049e685286ecfc8924582f101cc6958 is merged UPSTREAM, no downstream backport to do.

This change will be grabbed by the next DLRN promotion.

Comment 6 David Rosenfeld 2021-04-14 13:54:20 UTC
Traceback is no longer seen when validations are run:

(undercloud) [stack@undercloud-0 ~]$ openstack tripleo validator run --validation collect-flavors-and-verify-profiles
Running Validations without Overcloud settings.
+--------------------------------------+-------------------------------------+--------+------------+----------------+-------------------+-------------+
| UUID                                 | Validations                         | Status | Host_Group | Status_by_Host | Unreachable_Hosts | Duration    |
+--------------------------------------+-------------------------------------+--------+------------+----------------+-------------------+-------------+
| 34cb423b-5b0f-4185-9a7b-69964ed08580 | collect-flavors-and-verify-profiles | FAILED | undercloud | undercloud     |                   | 0:00:00.730 |
+--------------------------------------+-------------------------------------+--------+------------+----------------+-------------------+-------------+

Comment 9 errata-xmlrpc 2021-09-15 07:11:11 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 (RHOSP) 16.2 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/RHEA-2021:3483