Bug 1912879 - OSP 16.1 Validations Fail ClientManager object no attribute auth
Summary: OSP 16.1 Validations Fail ClientManager object no attribute auth
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-tripleoclient
Version: 16.1 (Train)
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: z4
: 16.1 (Train on RHEL 8.2)
Assignee: Gaël Chamoulaud
QA Contact: David Rosenfeld
URL:
Whiteboard:
Depends On:
Blocks: 1887437 1887725 1887777 1888642 1891200 1891210 1892323 1893896 1903606
TreeView+ depends on / blocked
 
Reported: 2021-01-05 13:57 UTC by David Rosenfeld
Modified: 2022-08-10 16:12 UTC (History)
13 users (show)

Fixed In Version: python-tripleoclient-12.3.2-1.20201114043241.el8ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-03-17 15:36:33 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 769407 0 None MERGED [Validator Run] Ensure the plan really exists 2021-02-17 14:53:59 UTC
OpenStack gerrit 772275 0 None MERGED Run validation without authentication in particular context 2021-02-17 14:53:59 UTC
OpenStack gerrit 772328 0 None MERGED Remove --quiet argument from the validator run CLI command. 2021-02-17 14:53:59 UTC
OpenStack gerrit 772329 0 None MERGED Get deployment status to check if plan and stack exists on the env 2021-02-17 14:53:59 UTC
OpenStack gerrit 772417 0 None MERGED Fix the get_deployment_status call 2021-03-03 15:46:26 UTC
Red Hat Issue Tracker OSP-6555 0 None None None 2022-08-10 16:12:53 UTC
Red Hat Product Errata RHBA-2021:0817 0 None None None 2021-03-17 15:37:12 UTC

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


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