Bug 1709567 - NotImplementedError: To use 'consumers' oauthlib must be installed
Summary: NotImplementedError: To use 'consumers' oauthlib must be installed
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-mistral
Version: 15.0 (Stein)
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: z2
: 16.2 (Train on RHEL 8.4)
Assignee: Lance Bragstad
QA Contact: Jeremy Agee
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-05-13 20:24 UTC by Sai Sindhur Malleni
Modified: 2022-03-23 22:10 UTC (History)
12 users (show)

Fixed In Version: openstack-mistral-9.1.1-2.20210729225824.62b0b37.el8ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-03-23 22:10:09 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 735708 0 None MERGED Update requirements to include oauthlib 2021-07-01 15:46:17 UTC
RDO 34750 0 None None None 2021-07-29 15:20:05 UTC
Red Hat Issue Tracker OSP-1170 0 None None None 2022-01-12 07:03:31 UTC
Red Hat Product Errata RHBA-2022:1001 0 None None None 2022-03-23 22:10:36 UTC

Description Sai Sindhur Malleni 2019-05-13 20:24:45 UTC
Description of problem: Seeing several attribute errors in mistral-db-manage 

2019-05-13 18:14:02.115 13 ERROR mistral.actions.openstack.action_generator.base [-] Failed to create action: keystone.oauth1.consumers_build_url: NotImplementedError: To use 'consumers' oauthlib must be installed
2019-05-13 18:14:02.115 13 ERROR mistral.actions.openstack.action_generator.base Traceback (most recent call last):
2019-05-13 18:14:02.115 13 ERROR mistral.actions.openstack.action_generator.base   File "/usr/lib/python3.6/site-packages/mistral/actions/openstack/action_generator/base.py", line 143, in create_actions
2019-05-13 18:14:02.115 13 ERROR mistral.actions.openstack.action_generator.base     client_method = class_.get_fake_client_method()
2019-05-13 18:14:02.115 13 ERROR mistral.actions.openstack.action_generator.base   File "/usr/lib/python3.6/site-packages/mistral/actions/openstack/base.py", line 75, in get_fake_client_method
2019-05-13 18:14:02.115 13 ERROR mistral.actions.openstack.action_generator.base     return cls._get_client_method(cls._get_fake_client())
2019-05-13 18:14:02.115 13 ERROR mistral.actions.openstack.action_generator.base   File "/usr/lib/python3.6/site-packages/mistral/actions/openstack/base.py", line 59, in _get_client_method
2019-05-13 18:14:02.115 13 ERROR mistral.actions.openstack.action_generator.base     attribute = getattr(attribute, attr)
2019-05-13 18:14:02.115 13 ERROR mistral.actions.openstack.action_generator.base   File "/usr/lib/python3.6/site-packages/keystoneclient/v3/contrib/oauth1/core.py", line 64, in __getattribute__
2019-05-13 18:14:02.115 13 ERROR mistral.actions.openstack.action_generator.base     _('To use %r oauthlib must be installed') % name)
2019-05-13 18:14:02.115 13 ERROR mistral.actions.openstack.action_generator.base NotImplementedError: To use 'consumers' oauthlib must be installed


Version-Release number of selected component (if applicable):
OSP15

How reproducible:
100%

Steps to Reproduce:
1. Deploy UC
2. Try to deploy OC
3.

Actual results:
Errors in logs

Expected results:
No errors

Additional info:

Comment 1 Adriano Petrich 2019-11-20 10:52:16 UTC
Mistral does the mapping to oauthlib1 consumers there. I'm unfamiliar with the library but It seems that it has not been installed.

Mappings are lazily evaluated because not all installations have all the possible clients and/or libraries they are tested when called and it seems that it is missing in this case 

https://opendev.org/openstack/mistral/src/branch/master/mistral/actions/openstack/mapping.json#L263

Comment 2 Alex Schultz 2019-11-21 21:40:31 UTC
We haven't seen this elsewhere and we lack the logs and templates to understand how this was triggered. If you hit this again, please provide the templates used as part of the deployment and the log files for mistral.

Comment 4 Bob Fournier 2020-03-12 14:45:37 UTC
Note that we found this error had nothing to do with deployment as it was successful after other changes were made.  It seems to be more of a nuisance error than actual problem.

Comment 22 errata-xmlrpc 2022-03-23 22:10:09 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 (Release of components for Red Hat OpenStack Platform 16.2.2), 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-2022:1001


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