Some of the mistral-lib deprecated context paremeters are missing from the new security context

Bug #1728081 reported by Dougal Matthews
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mistral
Fix Released
Critical
Dougal Matthews

Bug Description

Mistral is currently unable to use this new release because it causes exceptions like this:

Oct 27 11:45:52.717432 ubuntu-xenial-infracloud-chocolate-0000520701 mistral-server[7224]: File "/opt/stack/new/mistral/mistral/actions/openstack/base.py", line 115, in run
Oct 27 11:45:52.717604 ubuntu-xenial-infracloud-chocolate-0000520701 mistral-server[7224]: method = self._get_client_method(self._get_client(context))
Oct 27 11:45:52.717749 ubuntu-xenial-infracloud-chocolate-0000520701 mistral-server[7224]: File "/opt/stack/new/mistral/mistral/actions/openstack/base.py", line 84, in _get_client
Oct 27 11:45:52.717886 ubuntu-xenial-infracloud-chocolate-0000520701 mistral-server[7224]: return self._create_client(context)
Oct 27 11:45:52.718020 ubuntu-xenial-infracloud-chocolate-0000520701 mistral-server[7224]: File "/opt/stack/new/mistral/mistral/actions/openstack/actions.py", line 107, in _create_client
Oct 27 11:45:52.718169 ubuntu-xenial-infracloud-chocolate-0000520701 mistral-server[7224]: **self.get_session_and_auth(context)
Oct 27 11:45:52.718326 ubuntu-xenial-infracloud-chocolate-0000520701 mistral-server[7224]: File "/opt/stack/new/mistral/mistral/actions/openstack/base.py", line 97, in get_session_and_auth
Oct 27 11:45:52.718466 ubuntu-xenial-infracloud-chocolate-0000520701 mistral-server[7224]: context=context)
Oct 27 11:45:52.718601 ubuntu-xenial-infracloud-chocolate-0000520701 mistral-server[7224]: File "/opt/stack/new/mistral/mistral/utils/openstack/keystone.py", line 73, in get_session_and_auth
Oct 27 11:45:52.718736 ubuntu-xenial-infracloud-chocolate-0000520701 mistral-server[7224]: 'tenant_id': context.project_id,
Oct 27 11:45:52.718894 ubuntu-xenial-infracloud-chocolate-0000520701 mistral-server[7224]: File "/usr/local/lib/python2.7/dist-packages/mistral_lib/actions/context.py", line 52, in project_id
Oct 27 11:45:52.719091 ubuntu-xenial-infracloud-chocolate-0000520701 mistral-server[7224]: return self.security.project_id
Oct 27 11:45:52.719328 ubuntu-xenial-infracloud-chocolate-0000520701 mistral-server[7224]: AttributeError: 'SecurityContext' object has no attribute 'project_id'

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to mistral-lib (master)

Fix proposed to branch: master
Review: https://review.openstack.org/515749

Changed in mistral:
status: Confirmed → In Progress
Changed in mistral:
milestone: queens-1 → queens-2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to mistral-lib (master)

Reviewed: https://review.openstack.org/515749
Committed: https://git.openstack.org/cgit/openstack/mistral-lib/commit/?id=e195c6d90fee0dc6b0435efd9aec6b383923cd88
Submitter: Zuul
Branch: master

commit e195c6d90fee0dc6b0435efd9aec6b383923cd88
Author: Dougal Matthews <email address hidden>
Date: Fri Oct 27 16:39:05 2017 +0100

    Add deprecated context parameters to the new security context

    In the recent parameter migration, a number of parameters were
    incorrectly deprecated. They were not redirected to the new location
    correctly and would cause an error.

    Change-Id: I5ea09c3c79df5a43b06194a48f7425a15a1b23cf
    Closes-Bug: #1728081

Changed in mistral:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to mistral-lib (stable/pike)

Fix proposed to branch: stable/pike
Review: https://review.openstack.org/517892

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to mistral-lib (stable/pike)

Reviewed: https://review.openstack.org/517892
Committed: https://git.openstack.org/cgit/openstack/mistral-lib/commit/?id=90457d594a091a0f8dfa0f25f2308cb22c9842b8
Submitter: Zuul
Branch: stable/pike

commit 90457d594a091a0f8dfa0f25f2308cb22c9842b8
Author: Dougal Matthews <email address hidden>
Date: Fri Oct 27 16:39:05 2017 +0100

    Add deprecated context parameters to the new security context

    In the recent parameter migration, a number of parameters were
    incorrectly deprecated. They were not redirected to the new location
    correctly and would cause an error.

    Change-Id: I5ea09c3c79df5a43b06194a48f7425a15a1b23cf
    Closes-Bug: #1728081
    (cherry picked from commit e195c6d90fee0dc6b0435efd9aec6b383923cd88)

tags: added: in-stable-pike
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/mistral-lib 0.3.2

This issue was fixed in the openstack/mistral-lib 0.3.2 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/mistral-lib 0.4.0

This issue was fixed in the openstack/mistral-lib 0.4.0 release.

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.