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'
_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : [email protected]
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack