[Openstack] [Nova][python-client]v3 api

Rajdeep Dua rajdeep.dua at gmail.com
Wed Apr 23 07:15:48 UTC 2014


I was trying a simple sample using the v3 apis of Nova.
Seems to be failing, any idea why this might be happening

code
------
from novaclient.v3 import client
cs = novaclient.v3.client.Client('admin','password','admin','http://
<IP>/v2.0')

print(cs.servers.list())

------
Error

$ python -m novasamples.list_servers_v3
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File
"/home/avenger/work/openstack-samples/lab1/novasamples/list_servers_v3.py",
line 21, in <module>
    print(cs.servers.list())
AttributeError: 'Client' object has no attribute 'servers'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20140423/35e33cb8/attachment.html>


More information about the Openstack mailing list