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:
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
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.
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.
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