rackspace/python-novaclient — Issue #133: Keystone client triggers key error
Author: gabrielhurley
Created: 2011-10-17 21:11:14+00:00
State: open

The current `novaclient.keystone.client.Client` implementation tries to find an `"identity": "admin"` attribute inside the `"compute"` endpoint... this is no longer how the service catalog returned by keystone works. The relevant code is here:

https://github.com/rackspace/python-novaclient/blob/master/novaclient/keystone/client.py#L49
https://github.com/rackspace/python-novaclient/blob/master/novaclient/service_catalog.py#L43

This triggers a `KeyError` because `"identity"` isn't a valid key for the `"compute"` endpoint. Instead we need to look for a service with type `"identity"` and return the endpoints from it for the client to use.