novaclient can't parse keystone v3 catalog correctly

Bug #1295042 reported by Yaguang Tang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-novaclient
Invalid
Undecided
Yaguang Tang

Bug Description

V3 service catalog:

 [{u'endpoints': [{u'id': u'6c205a937fc94cd89ef6d25804631742',
                  u'interface': u'internal',
                  u'legacy_endpoint_id': u'52d0fe4693094e29a1f3737aa6a74024',
                  u'region': u'RegionOne',
                  u'url': u'http://10.9.1.147:8776/v1/e7a9800dba03489ca2716ab03226a277'},
                  {u'id': u'c289637b673643b69565a04ed1561a4c',
                  u'interface': u'public',
                  u'legacy_endpoint_id': u'52d0fe4693094e29a1f3737aa6a74024',
                  u'region': u'RegionOne',
                  u'url': u'http://10.9.1.147:8776/v1/e7a9800dba03489ca2716ab03226a277'},
                  {u'id': u'f23ede3238974e0685b5e478971a566d',
                   u'interface': u'admin',
                   u'legacy_endpoint_id': u'52d0fe4693094e29a1f3737aa6a74024',
                   u'region': u'RegionOne',
                  u'url': u'http://10.9.1.147:8776/v1/e7a9800dba03489ca2716ab03226a277'}],
                  u'id': u'9206e300379a448592df585587c68a40',
                  u'type': u'volume'}]

V2 service catalog:

 [{u'endpoints': [{u'adminURL': u'http://10.9.1.147:8776/v1/e7a9800dba03489ca27',
               u'id': u'6c205a937fc94cd89ef6d25804631742',
               u'internalURL': u'http://10.9.1.147:8776/v1/e7a9800dba03486ab03226a277',
              u'publicURL': u'http://10.9.1.147:8776/v1/e7a9800dba03489c6ab03226a277',
              u'region': u'RegionOne'}]

            endpoints = service['endpoints']
 73 for endpoint in endpoints:
 74 # Ignore 1.0 compute endpoints
 75 if service.get("type") == 'compute' and \
 76 endpoint.get('versionId', '2') not in ('1.1', '2'):
 77 continue
 78 if not filter_value or \
 79 endpoint.get(attr).lower() == filter_value.lower():
 80 endpoint["serviceName"] = service.get("name")
 81 matching_endpoints.append(endpoint)
 82
 83 if not matching_endpoints:
 84 raise novaclient.exceptions.EndpointNotFound()
 85 elif len(matching_endpoints) > 1:
 86 raise novaclient.exceptions.AmbiguousEndpoints(
 87 endpoints=matching_endpoints)
 88 else:

Yaguang Tang (heut2008)
affects: python-neutronclient → python-novaclient
Yaguang Tang (heut2008)
Changed in python-novaclient:
assignee: nobody → Yaguang Tang (heut2008)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-novaclient (master)

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

Changed in python-novaclient:
status: New → In Progress
Revision history for this message
Joe Gordon (jogo) wrote :

nova (and novaclient) don't support keystone v3 yet. We plan on supporting keystone v3 as part of blueprint as we don't want piecemeal support

Changed in python-novaclient:
status: In Progress → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

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