Skip to content

Instantly share code, notes, and snippets.

@ChristopherMacGown
Created August 6, 2011 02:52
Show Gist options
  • Save ChristopherMacGown/1128955 to your computer and use it in GitHub Desktop.
Save ChristopherMacGown/1128955 to your computer and use it in GitHub Desktop.
Nova Client
>>> from novaclient.v1_1 import client
>>> nova = client.Client("admin", "secrete", "admin", "http://dev2.rcb.me:5000/v2.0/")
>>> nova.servers
<novaclient.v1_1.servers.ServerManager object at 0x1007c41d0>
>>> nova.servers.list()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "novaclient/v1_1/servers.py", line 222, in list
return self._list("/servers%s%s" % (detail, query_string), "servers")
File "novaclient/v1_1/base.py", line 65, in _list
resp, body = self.api.client.get(url)
File "novaclient/client.py", line 115, in get
return self._cs_request(url, 'GET', **kwargs)
File "novaclient/client.py", line 91, in _cs_request
self.authenticate()
File "novaclient/client.py", line 139, in authenticate
resp, body = self.request(self.auth_url, 'GET', headers=headers)
File "novaclient/client.py", line 85, in request
raise exceptions.from_response(resp, body)
novaclient.exceptions.ClientException: Unhandled error (HTTP 500)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment