[ussuri][CentOS][scenario003] Mistral Tempest failing tests with TypeError: dump_all() got an unexpected keyword argument 'sort_keys'

Bug #1860757 reported by yatin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
puppet-openstack-integration
Fix Released
Undecided
yatin

Bug Description

After https://review.opendev.org/#/c/636583/, mistral Needs PyYAMl >= 5.1, while we Consume PyYAML from CentOS Base Repos which is currently 3.10-11(CentOS7) and 3.12-12(CentOS8).

Tempest tests failis in CentOS7/8 promotion job with below Traceback:-
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/webob/dec.py", line 129, in __call__
    resp = self.call_func(req, *args, **kw)
  File "/usr/lib/python3.6/site-packages/webob/dec.py", line 193, in call_func
    return self.func(req, *args, **kwargs)
  File "/usr/lib/python3.6/site-packages/oslo_middleware/base.py", line 130, in __call__
    response = req.get_response(self.application)
  File "/usr/lib/python3.6/site-packages/webob/request.py", line 1314, in send
    application, catch_exc_info=False)
  File "/usr/lib/python3.6/site-packages/webob/request.py", line 1278, in call_application
    app_iter = application(self.environ, start_response)
  File "/usr/lib/python3.6/site-packages/webob/dec.py", line 129, in __call__
    resp = self.call_func(req, *args, **kw)
  File "/usr/lib/python3.6/site-packages/webob/dec.py", line 193, in call_func
    return self.func(req, *args, **kwargs)
  File "/usr/lib/python3.6/site-packages/oslo_middleware/base.py", line 130, in __call__
    response = req.get_response(self.application)
  File "/usr/lib/python3.6/site-packages/webob/request.py", line 1314, in send
    application, catch_exc_info=False)
  File "/usr/lib/python3.6/site-packages/webob/request.py", line 1278, in call_application
    app_iter = application(self.environ, start_response)
  File "/usr/lib/python3.6/site-packages/webob/dec.py", line 129, in __call__
    resp = self.call_func(req, *args, **kw)
  File "/usr/lib/python3.6/site-packages/webob/dec.py", line 193, in call_func
    return self.func(req, *args, **kwargs)
  File "/usr/lib/python3.6/site-packages/keystonemiddleware/auth_token/__init__.py", line 341, in __call__
    response = req.get_response(self._app)
  File "/usr/lib/python3.6/site-packages/webob/request.py", line 1314, in send
    application, catch_exc_info=False)
  File "/usr/lib/python3.6/site-packages/webob/request.py", line 1278, in call_application
    app_iter = application(self.environ, start_response)
  File "/usr/lib/python3.6/site-packages/pecan/middleware/recursive.py", line 56, in __call__
    return self.application(environ, start_response)
  File "/usr/lib/python3.6/site-packages/pecan/core.py", line 840, in __call__
    return super(Pecan, self).__call__(environ, start_response)
  File "/usr/lib/python3.6/site-packages/pecan/core.py", line 683, in __call__
    self.invoke_controller(controller, args, kwargs, state)
  File "/usr/lib/python3.6/site-packages/pecan/core.py", line 574, in invoke_controller
    result = controller(*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/mistral/utils/rest_utils.py", line 71, in wrapped
    return func(*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/mistral/api/controllers/v2/workflow.py", line 189, in post
    validate=not skip_validation
  File "/usr/lib/python3.6/site-packages/mistral/db/utils.py", line 106, in decorate
    return retry.call(_with_auth_context, auth_ctx, func, *args, **kw)
  File "/usr/lib/python3.6/site-packages/mistral/utils/rest_utils.py", line 249, in call
    return super(MistralRetrying, self).call(fn, *args, **kwargs)
  File "/usr/lib/python3.6/site-packages/tenacity/__init__.py", line 358, in call
    do = self.iter(retry_state=retry_state)
  File "/usr/lib/python3.6/site-packages/tenacity/__init__.py", line 319, in iter
    return fut.result()
  File "/usr/lib64/python3.6/concurrent/futures/_base.py", line 425, in result
    return self.__get_result()
  File "/usr/lib64/python3.6/concurrent/futures/_base.py", line 384, in __get_result
    raise self._exception
  File "/usr/lib/python3.6/site-packages/tenacity/__init__.py", line 361, in call
    result = fn(*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/mistral/db/utils.py", line 54, in _with_auth_context
    return func(*args, **kw)
  File "/usr/lib/python3.6/site-packages/mistral/services/workflows.py", line 79, in create_workflows
    db_wfs
  File "/usr/lib/python3.6/site-packages/mistral/services/workflows.py", line 104, in _append_all_workflows
    wf_spec.get_name()
  File "/usr/lib/python3.6/site-packages/mistral/services/workflows.py", line 211, in _cut_wf_definition_from_all
    }, sort_keys=False)
  File "/usr/lib64/python3.6/site-packages/yaml/__init__.py", line 200, in dump
, stream, Dumper=Dumper, **kwds)
TypeError: dump_all() got an unexpected keyword argument 'sort_keys'

Example logs:-
https://centos.logs.rdoproject.org/weirdo-generic-puppet-openstack-scenario003/13234/weirdo-project/logs/apache/mistral_wsgi_error_ssl.txt.gz
https://centos.logs.rdoproject.org/weirdo-generic-puppet-openstack-scenario003/13239/weirdo-project/logs/apache/mistral_wsgi_error.txt.gz

Revision history for this message
yatin (yatinkarel) wrote :

Until we handle PyYAML properly as we are going to remove CentOS7 support from ussuri after CentOS8 is ready completly, proposed pinning mistral in RDO:- https://review.rdoproject.org/r/24659

Changed in puppet-openstack-integration:
status: New → In Progress
assignee: nobody → yatin (yatinkarel)
Revision history for this message
yatin (yatinkarel) wrote :

RDO Train+ CentOS8 releases have PyYAML-5.3-2.el8 and mistral unpinned, so closing it.

Changed in puppet-openstack-integration:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.