Catalog can't handle multiple service definitions

Bug #1425766 reported by Jamie Lennox
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
python-keystoneclient
Fix Released
Medium
Jamie Lennox

Bug Description

The keystoneclient can only handle one entry in the service_catalog for each service_type. While IMO this is a reasonable assumption the keystone service does not enforce this rule, and there are deployments that are already doing this.

This was never much of a concern for keystone, however now that keystone sessions are providing the foundation for the various clients this has become a problem as novaclient and other used to support it.

This bug has been reported in the past and marked as either Opinion or Invalid. I couldn't find them to reopen.

Changed in python-keystoneclient:
status: New → Triaged
importance: Undecided → Medium
importance: Medium → High
importance: High → Medium
Revision history for this message
Morgan Fainberg (mdrnstm) wrote :

Likely the easiest solution here is to simply combine the endpoints if two services claim to be the exact same thing (e.g. "compute" should == "compute").

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

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

Changed in python-keystoneclient:
assignee: nobody → Morgan Fainberg (mdrnstm)
status: Triaged → In Progress
assignee: Morgan Fainberg (mdrnstm) → Jamie Lennox (jamielennox)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on python-keystoneclient (master)

Change abandoned by Morgan Fainberg (<email address hidden>) on branch: master
Review: https://review.openstack.org/159314
Reason: https://review.openstack.org/#/c/159315/ is better.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-keystoneclient (master)

Reviewed: https://review.openstack.org/159315
Committed: https://git.openstack.org/cgit/openstack/python-keystoneclient/commit/?id=3e2035bf8823f87cb736a526d4f084487066d33e
Submitter: Jenkins
Branch: master

commit 3e2035bf8823f87cb736a526d4f084487066d33e
Author: Jamie Lennox <email address hidden>
Date: Thu Feb 26 12:07:11 2015 +1100

    Allow handling multiple service_types

    If the same service_type was mentioned in the catalog more than once
    then only the last entry would be parsed and any possible other matches
    would be lost.

    This was something that novaclient used to do, and as we are pushing
    sessions as the way that clients should all work we need to maintain
    that compatibility.

    Change-Id: I6964515ed1975bce1998897abfc02a1ec36e2584
    Closes-Bug: #1425766

Changed in python-keystoneclient:
status: In Progress → Fix Committed
Changed in python-keystoneclient:
milestone: none → 1.2.0
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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