Mistral server should be able to operate with Keystone Identity API V2

Bug #1612705 reported by Andras Kovi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mistral
Fix Released
High
Andras Kovi

Bug Description

Mistral is currently able to operate only with Keystone Identity V3. This is a restriction that prohibits its application in many current deployments.

This bug aims to fix this inability only on the service execution level. This way, when the Mistral level authentication/authorization is turned off, users will be able to execute workflows on Identity V2 capable clouds.

Solution description
1. Turn off pecan authentication in the server.
2. The client must authenticate. V2 or V3 does not matter.
3. The client receives the service catalog on login:
 V2: http://developer.openstack.org/api-ref/identity/v2/?expanded=authenticate-detail#id8
 V3: http://developer.openstack.org/api-ref/identity/v3/?expanded=password-authentication-with-unscoped-authorization-detail,token-authentication-with-scoped-authorization-detail,validate-and-show-information-for-token-detail,password-authentication-with-scoped-authorization-detail#request (check the note at the nocatalog parameter)
4. The client can forward this catalog to the server and the server can use it to create the OS service clients. The server seems to be partly set up for this option too: https://github.com/openstack/mistral/blob/master/mistral/context.py#L82
5. keystone_utils can be simply updated to have means to extract the endpoints from the catalog stored in the context, rather than going out to keystone.

Andras Kovi (akovi)
Changed in mistral:
assignee: nobody → Andras Kovi (akovi)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-mistralclient (master)

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

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/355368

Changed in mistral:
status: New → In Progress
Changed in mistral:
milestone: none → newton-rc1
importance: Undecided → High
Lingxian Kong (kong)
Changed in mistral:
milestone: newton-rc1 → newton-rc2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to mistral (master)

Reviewed: https://review.openstack.org/355368
Committed: https://git.openstack.org/cgit/openstack/mistral/commit/?id=9ebf329aa0b020900fce4307f35342e6a87366ab
Submitter: Jenkins
Branch: master

commit 9ebf329aa0b020900fce4307f35342e6a87366ab
Author: Andras Kovi <email address hidden>
Date: Wed Aug 17 17:37:31 2016 +0200

    Accept service catalog from client side

    Updates the Mistral server to accept the service catalog
    from the client request. This enable the server to cooperate
    with Keystone Identity V2 and V3 at the same time.

    Change-Id: I7ca2aace4d5095828e5053af6965b833109d338a
    Closes-Bug: #1612705
    Depends-On: I86fa58de00d01c89e4bbc21dbe128f1306e2a1bf
    Signed-off-by: Andras Kovi <email address hidden>

Changed in mistral:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-mistralclient (master)

Reviewed: https://review.openstack.org/354803
Committed: https://git.openstack.org/cgit/openstack/python-mistralclient/commit/?id=ea4565f629d3893dc018d07d0de84c65906a77ce
Submitter: Jenkins
Branch: master

commit ea4565f629d3893dc018d07d0de84c65906a77ce
Author: Andras Kovi <email address hidden>
Date: Wed Sep 28 10:24:00 2016 +0200

    Send access info to server

    Client should include access info in outgoing
    request to support Keystone Identity V2 compatibility.

    Change-Id: I64f54e0f7b92698009a0c27d5b1317bbe0be7455
    Depends-on: I7ca2aace4d5095828e5053af6965b833109d338a
    Closes-bug: #1612705
    Signed-off-by: Andras Kovi <email address hidden>

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

This issue was fixed in the openstack/mistral 4.0.0.0b1 development milestone.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-mistralclient 3.0.0

This issue was fixed in the openstack/python-mistralclient 3.0.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.