TypeError: 'NoneType' object has no attribute '__getitem__'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
vmtp |
New
|
Undecided
|
Unassigned |
Bug Description
Run VMTP:
# vmtp -d -c vmtp.cfg -r admin-openrc.sh -p admin --protocol T --json test44.json
Output:
2016-11-11 14:49:52,612 WARNING Invalid public_
2016-11-11 14:49:52,612 WARNING Invalid private_
2016-11-11 14:49:52,613 INFO Using http://
2016-11-11 14:49:52,613 INFO VM public key: /root/.
2016-11-11 14:49:52,613 INFO VM private key: /root/.ssh/id_rsa
2016-11-11 14:49:54,151 INFO Found image ubuntu14.04 to launch VM, will continue
/root/vmtpenv/
'Providing attr without filter_value to get_urls() is '
2016-11-11 14:49:54,671 WARNING No external network found.
2016-11-11 14:49:55,441 INFO Created internal network: pns-internal-net.
2016-11-11 14:49:56,940 INFO Created internal network: pns-internal-net2.
2016-11-11 14:49:56,992 INFO OpenStack agent: Open vSwitch agent
2016-11-11 14:49:56,992 INFO OpenStack network type: vxlan
2016-11-11 14:49:59,349 INFO [TestServer1] Creating server VM...
2016-11-11 14:49:59,349 DEBUG [TestServer1] Starting on zone nova:localhost.
2016-11-11 14:50:01,523 DEBUG [TestServer1] VM status=BUILD, retrying 1 of 50...
2016-11-11 14:50:03,771 DEBUG [TestServer1] VM status=BUILD, retrying 2 of 50...
2016-11-11 14:50:06,018 DEBUG [TestServer1] VM status=BUILD, retrying 3 of 50...
2016-11-11 14:50:08,264 DEBUG [TestServer1] VM status=BUILD, retrying 4 of 50...
2016-11-11 14:50:10,493 ERROR Traceback (most recent call last):
File "/root/
self.setup()
File "/root/
self.
File "/root/
init_
File "/root/
init_file_name)
File "/root/
fip = self.net.
File "/root/
"floating_
TypeError: 'NoneType' object has no attribute '__getitem__'
Other info
OpenStack Version:Mitaka
Python Version:2.7.5
OS:CentOS 7.2
admin-openrc.sh file
# cat admin-openrc.sh
unset OS_SERVICE_TOKEN
export OS_USERNAME=admin
export OS_PASSWORD=admin
export OS_AUTH_URL=http://
export PS1='[\u@\h \W(keystone_
export OS_TENANT_
export OS_REGION_
VMTP needs a floating IP to SSH into the VM. The error is because VMTP cannot find an external routable network, hence no floating ip can be allocated.