My code is,
from novaclient.v2.client import Client as nova_client test_client = nova_client(username="admin", api_key="******", auth_url="http://192.168.1.177:5000/v2.0", tenant_id="a00fd46d7cec4b91a57c2f69d8c860e5") print test_client.hosts.list()
Trace Log,
/usr/bin/python2.7 /home/balanu/projects/aws_snap/test.py [Traceback (most recent call last): File "/home/balanu/projects/aws_snap/test.py", line 53, in <module> print test_client.hosts.list() File "/usr/local/lib/python2.7/dist-packages/novaclient/v2/hosts.py", line 24, in __repr__ return "<Host: %s>" % self.host File "/usr/local/lib/python2.7/dist-packages/novaclient/openstack/common/apiclient/base.py", line 480, in __getattr__ raise AttributeError(k) AttributeError: host
My code is,
from novaclient. v2.client import Client as nova_client username= "admin" ,
api_ key="** ****",
auth_ url="http:// 192.168. 1.177:5000/ v2.0",
tenant_ id="a00fd46d7ce c4b91a57c2f69d8 c860e5" ) hosts.list( )
test_client = nova_client(
print test_client.
Trace Log,
/usr/bin/python2.7 /home/balanu/ projects/ aws_snap/ test.py balanu/ projects/ aws_snap/ test.py" , line 53, in <module> hosts.list( ) lib/python2. 7/dist- packages/ novaclient/ v2/hosts. py", line 24, in __repr__ lib/python2. 7/dist- packages/ novaclient/ openstack/ common/ apiclient/ base.py" , line 480, in __getattr__
[Traceback (most recent call last):
File "/home/
print test_client.
File "/usr/local/
return "<Host: %s>" % self.host
File "/usr/local/
raise AttributeError(k)
AttributeError: host