Mistral uses deprecated option keystone_authtoken/auth_uri for keystoneclient creation

Bug #1788174 reported by s10
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mistral
Fix Released
Medium
Brad P. Crochet

Bug Description

Mistral uses deprecated [1] option keystone_authtoken/auth_uri for keystoneclient creation in mistral/utils/openstack/keystone.py [2]

def client():
    ctx = context.ctx()
    auth_url = ctx.auth_uri or CONF.keystone_authtoken.auth_uri

    cl = ks_client.Client(
        user_id=ctx.user_id,
        token=ctx.auth_token,
        tenant_id=ctx.project_id,
        auth_url=auth_url
    )

Replacing [keystone_authtoken]/auth_uri with [keystone_authtoken]/www_authenticate_uri lead to errors "Authorization failed: Cannot authenticate without an auth_url" in Mistral API for some requests.

[1] https://review.openstack.org/#/c/508522/
[2] https://github.com/openstack/mistral/blob/master/mistral/utils/openstack/keystone.py#L35

Dougal Matthews (d0ugal)
Changed in mistral:
status: New → Confirmed
importance: Undecided → Medium
Brad P. Crochet (brad-9)
Changed in mistral:
assignee: nobody → Brad P. Crochet (brad-9)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to mistral (master)

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

Changed in mistral:
status: Confirmed → In Progress
Brad P. Crochet (brad-9)
Changed in mistral:
assignee: Brad P. Crochet (brad-9) → nobody
Changed in mistral:
milestone: none → stein-3
assignee: nobody → Brad P. Crochet (brad-9)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to mistral (master)

Reviewed: https://review.openstack.org/594187
Committed: https://git.openstack.org/cgit/openstack/mistral/commit/?id=0085d08baa129c3eae121a31a5c35cf7bd684aad
Submitter: Zuul
Branch: master

commit 0085d08baa129c3eae121a31a5c35cf7bd684aad
Author: Brad P. Crochet <email address hidden>
Date: Tue Aug 21 10:01:47 2018 -0400

    Stop using deprecated keystone_authtoken/auth_uri

    keystone_authtoken/auth_uri is deprecated [1]. Use www_authenticate_uri
    instead.

    keystonemiddleware in requirements and lower constraints should be increased
    because www_authenticate_uri was introduced in keystonemiddleware 4.18.0.

    [1] https://review.openstack.org/#/c/508522/

    Change-Id: I99b0ee941d702a28fb4f392d9747d0e2257a42c8
    Closes-Bug: #1788174

Changed in mistral:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/mistral 8.0.0.0b2

This issue was fixed in the openstack/mistral 8.0.0.0b2 development milestone.

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.