novaclient can't parse keystone v3 catalog correctly

Bug #1295042 reported by Yaguang Tang on 2014-03-20
This bug affects 1 person
Affects Status Importance Assigned to Milestone
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''},
                  {u'id': u'c289637b673643b69565a04ed1561a4c',
                  u'interface': u'public',
                  u'legacy_endpoint_id': u'52d0fe4693094e29a1f3737aa6a74024',
                  u'region': u'RegionOne',
                  u'url': u''},
                  {u'id': u'f23ede3238974e0685b5e478971a566d',
                   u'interface': u'admin',
                   u'legacy_endpoint_id': u'52d0fe4693094e29a1f3737aa6a74024',
                   u'region': u'RegionOne',
                  u'url': u''}],
                  u'id': u'9206e300379a448592df585587c68a40',
                  u'type': u'volume'}]

V2 service catalog:

 [{u'endpoints': [{u'adminURL': u'',
               u'id': u'6c205a937fc94cd89ef6d25804631742',
               u'internalURL': u'',
              u'publicURL': u'',
              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)
 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) on 2014-03-20
affects: python-neutronclient → python-novaclient
Yaguang Tang (heut2008) on 2014-03-20
Changed in python-novaclient:
assignee: nobody → Yaguang Tang (heut2008)

Fix proposed to branch: master

Changed in python-novaclient:
status: New → In Progress
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  Edit
Everyone can see this information.

Other bug subscribers

Related blueprints