(vmtpenv) root@node-1:/home/ubuntu# vmtp -d -c vmtp.cfg -r adminrc -p secret --protocol T --json test.json
2017-05-06 16:46:50,575 INFO Using http://controller:35357/v3
2017-05-06 16:46:50,576 INFO VM public key: /home/ubuntu/cloud.key.pub
2017-05-06 16:46:50,576 INFO VM private key: /home/ubuntu/cloud.key
/home/ubuntu/vmtpenv/local/lib/python2.7/site-packages/keystoneauth1/adapter.py:142: UserWarning: Using keystoneclient sessions has been deprecated. Please update your software to use keystoneauth1.
warnings.warn('Using keystoneclient sessions has been deprecated. '
2017-05-06 16:46:51,438 ERROR Traceback (most recent call last):
File "/home/ubuntu/vmtpenv/local/lib/python2.7/site-packages/vmtp/vmtp.py", line 464, in run
self.setup()
File "/home/ubuntu/vmtpenv/local/lib/python2.7/site-packages/vmtp/vmtp.py", line 217, in setup
self.image_instance = self.comp.find_image(self.config.image_name)
File "/home/ubuntu/vmtpenv/local/lib/python2.7/site-packages/vmtp/compute.py", line 34, in find_image
image = self.novaclient.images.find(name=image_name)
AttributeError: 'Client' object has no attribute 'images'
Hi All,
I am trying to run VMTP according to these instructions:
http:// vmtp.readthedoc s.io/en/ latest/ quickstart_ pip.html
I get this error:
(vmtpenv) root@node- 1:/home/ ubuntu# vmtp -d -c vmtp.cfg -r adminrc -p secret --protocol T --json test.json controller: 35357/v3 cloud.key. pub cloud.key vmtpenv/ local/lib/ python2. 7/site- packages/ keystoneauth1/ adapter. py:142: UserWarning: Using keystoneclient sessions has been deprecated. Please update your software to use keystoneauth1. warn('Using keystoneclient sessions has been deprecated. ' ubuntu/ vmtpenv/ local/lib/ python2. 7/site- packages/ vmtp/vmtp. py", line 464, in run ubuntu/ vmtpenv/ local/lib/ python2. 7/site- packages/ vmtp/vmtp. py", line 217, in setup image_instance = self.comp. find_image( self.config. image_name) ubuntu/ vmtpenv/ local/lib/ python2. 7/site- packages/ vmtp/compute. py", line 34, in find_image .images. find(name= image_name)
2017-05-06 16:46:50,575 INFO Using http://
2017-05-06 16:46:50,576 INFO VM public key: /home/ubuntu/
2017-05-06 16:46:50,576 INFO VM private key: /home/ubuntu/
/home/ubuntu/
warnings.
2017-05-06 16:46:51,438 ERROR Traceback (most recent call last):
File "/home/
self.setup()
File "/home/
self.
File "/home/
image = self.novaclient
AttributeError: 'Client' object has no attribute 'images'
The images attribute is not present in python-novaclient version 8.0. See: /github. com/openstack/ python- novaclient/ commit/ 41f66d15aa83004 d5b26f7d510b19c d8c4b39e8b# diff-44e279ea2e 50d3bb91894688e 57c02f8L156
https:/
Solution:
pip install python- novaclient= =7.1.0