Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

error launch instance vmware esxi

Hi,

I have a openstack (ubuntu 14.04 and openstack juno) controller and openstack compute node on vmware esxi 5.5.

When launching an instance on the horizon web interface, it fails with no valid host was found. With debug enabled, compute log give this information:

2015-02-26 20:47:55.432 1345 ERROR nova.compute.manager [-] [instance: 4fd8619d-8ad0-44b3-b9d1-472a4a52642b] Instance failed to spawn
2015-02-26 20:47:55.432 1345 TRACE nova.compute.manager [instance: 4fd8619d-8ad0-44b3-b9d1-472a4a52642b] Traceback (most recent call last):
2015-02-26 20:47:55.432 1345 TRACE nova.compute.manager [instance: 4fd8619d-8ad0-44b3-b9d1-472a4a52642b]   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2249, in _build_resources
2015-02-26 20:47:55.432 1345 TRACE nova.compute.manager [instance: 4fd8619d-8ad0-44b3-b9d1-472a4a52642b]     yield resources
2015-02-26 20:47:55.432 1345 TRACE nova.compute.manager [instance: 4fd8619d-8ad0-44b3-b9d1-472a4a52642b]   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2119, in _build_and_run_instance
2015-02-26 20:47:55.432 1345 TRACE nova.compute.manager [instance: 4fd8619d-8ad0-44b3-b9d1-472a4a52642b]     block_device_info=block_device_info)
2015-02-26 20:47:55.432 1345 TRACE nova.compute.manager [instance: 4fd8619d-8ad0-44b3-b9d1-472a4a52642b]   File "/usr/lib/python2.7/dist-packages/nova/virt/vmwareapi/driver.py", line 447, in spawn
2015-02-26 20:47:55.432 1345 TRACE nova.compute.manager [instance: 4fd8619d-8ad0-44b3-b9d1-472a4a52642b]     admin_password, network_info, block_device_info)
2015-02-26 20:47:55.432 1345 TRACE nova.compute.manager [instance: 4fd8619d-8ad0-44b3-b9d1-472a4a52642b]   File "/usr/lib/python2.7/dist-packages/nova/virt/vmwareapi/vmops.py", line 486, in spawn
2015-02-26 20:47:55.432 1345 TRACE nova.compute.manager [instance: 4fd8619d-8ad0-44b3-b9d1-472a4a52642b]     image_info.image_id, vi.datastore, vi.dc_info.ref)
2015-02-26 20:47:55.432 1345 TRACE nova.compute.manager [instance: 4fd8619d-8ad0-44b3-b9d1-472a4a52642b]   File "/usr/lib/python2.7/dist-packages/nova/virt/vmwareapi/imagecache.py", line 92, in enlist_image
2015-02-26 20:47:55.432 1345 TRACE nova.compute.manager [instance: 4fd8619d-8ad0-44b3-b9d1-472a4a52642b]     self.timestamp_cleanup(dc_ref, ds_browser, path)
2015-02-26 20:47:55.432 1345 TRACE nova.compute.manager [instance: 4fd8619d-8ad0-44b3-b9d1-472a4a52642b]   File "/usr/lib/python2.7/dist-packages/nova/virt/vmwareapi/imagecache.py", line 99, in timestamp_cleanup
2015-02-26 20:47:55.432 1345 TRACE nova.compute.manager [instance: 4fd8619d-8ad0-44b3-b9d1-472a4a52642b]     ts = self._get_timestamp(ds_browser, ds_path)
2015-02-26 20:47:55.432 1345 TRACE nova.compute.manager [instance: 4fd8619d-8ad0-44b3-b9d1-472a4a52642b]   File "/usr/lib/python2.7/dist-packages/nova/virt/vmwareapi/imagecache.py", line 107, in _get_timestamp
2015-02-26 20:47:55.432 1345 TRACE nova.compute.manager [instance: 4fd8619d-8ad0-44b3-b9d1-472a4a52642b]     files = ds_util.get_sub_folders(self._session, ds_browser, ds_path)
2015-02-26 20:47:55.432 1345 TRACE nova.compute.manager [instance: 4fd8619d-8ad0-44b3-b9d1-472a4a52642b]   File "/usr/lib/python2.7/dist-packages/nova/virt/vmwareapi/ds_util.py", line 433, in get_sub_folders
2015-02-26 20:47:55.432 1345 TRACE nova.compute.manager [instance: 4fd8619d-8ad0-44b3-b9d1-472a4a52642b]     task_info = session._wait_for_task(search_task)
2015-02-26 20:47:55.432 1345 TRACE nova.compute.manager [instance: 4fd8619d-8ad0-44b3-b9d1-472a4a52642b]   File "/usr/lib/python2.7/dist-packages/nova/virt/vmwareapi/driver.py", line 676, in _wait_for_task
2015-02-26 20:47:55.432 1345 TRACE nova.compute.manager [instance: 4fd8619d-8ad0-44b3-b9d1-472a4a52642b]     return self.wait_for_task(task_ref)
2015-02-26 20:47:55.432 1345 TRACE nova.compute.manager [instance: 4fd8619d-8ad0-44b3-b9d1-472a4a52642b]   File "/usr/lib/python2.7/dist-packages/oslo/vmware/api.py", line 378, in wait_for_task
2015-02-26 20:47:55.432 1345 TRACE nova.compute.manager [instance: 4fd8619d-8ad0-44b3-b9d1-472a4a52642b]     return evt.wait()
2015-02-26 20:47:55.432 1345 TRACE nova.compute.manager [instance: 4fd8619d-8ad0-44b3-b9d1-472a4a52642b]   File "/usr/lib/python2.7/dist-packages/eventlet/event.py", line 116, in wait
2015-02-26 20:47:55.432 1345 TRACE nova.compute.manager [instance: 4fd8619d-8ad0-44b3-b9d1-472a4a52642b]     return hubs.get_hub().switch()
2015-02-26 20:47:55.432 1345 TRACE nova.compute.manager [instance: 4fd8619d-8ad0-44b3-b9d1-472a4a52642b]   File "/usr/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 187, in switch
2015-02-26 20:47:55.432 1345 TRACE nova.compute.manager [instance: 4fd8619d-8ad0-44b3-b9d1-472a4a52642b]     return self.greenlet.switch()
2015-02-26 20:47:55.432 1345 TRACE nova.compute.manager [instance: 4fd8619d-8ad0-44b3-b9d1-472a4a52642b]   File "/usr/lib/python2.7/dist-packages/oslo/vmware/common/loopingcall.py", line 76, in _inner
2015-02-26 20:47:55.432 1345 TRACE nova.compute.manager [instance: 4fd8619d-8ad0-44b3-b9d1-472a4a52642b]     self.f(*self.args, **self.kw)
2015-02-26 20:47:55.432 1345 TRACE nova.compute.manager [instance: 4fd8619d-8ad0-44b3-b9d1-472a4a52642b]   File "/usr/lib/python2.7/dist-packages/oslo/vmware/api.py", line 419, in _poll_task
2015-02-26 20:47:55.432 1345 TRACE nova.compute.manager [instance: 4fd8619d-8ad0-44b3-b9d1-472a4a52642b]     raise task_ex
2015-02-26 20:47:55.432 1345 TRACE nova.compute.manager [instance: 4fd8619d-8ad0-44b3-b9d1-472a4a52642b] VMwareDriverException: A specified parameter was not correct. 
2015-02-26 20:47:55.432 1345 TRACE nova.compute.manager [instance: 4fd8619d-8ad0-44b3-b9d1-472a4a52642b] searchSpec

This nova.conf

[DEFAULT]
compute_driver = vmwareapi.VMwareVCDriver
dhcpbridge_flagfile=/etc/nova/nova.conf
dhcpbridge=/usr/bin/nova-dhcpbridge
logdir=/var/log/nova
state_path=/var/lib/nova
lock_path=/var/lock/nova
force_dhcp_release=True
iscsi_helper=tgtadm
root_helper=sudo nova-rootwrap /etc/nova/rootwrap.conf
verbose=True
ec2_private_dns_show_ip=True
api_paste_config=/etc/nova/api-paste.ini
volumes_path=/var/lib/nova/volumes
enabled_apis=ec2,osapi_compute,metadata
rpc_backend = rabbit
rabbit_host = controller
rabbit_password = project
auth_strategy = keystone
my_ip = 10.0.0.31
vnc_enabled = True
vncserver_listen = 0.0.0.0
vncserver_proxyclient_address = 10.0.0.31
novncproxy_base_url = http://controller:6080/vnc_auto.html
verbose = True
debug = True
glance_api_servers=controller:9292
[database]
connection = mysql://nova:project@controller/nova
[keystone_authtoken]
auth_uri = http://controller:5000/v2.0
identity_uri = http://controller:35357
admin_tenant_name = service
admin_user = nova
admin_password = project
[vmware]
host_ip = 192.168.0.51
host_password = vmware
host_username = root
cluster_name = Openstack

This nova-compute.conf

[DEFAULT]
compute_driver=vmwareapi.VMwareVCDriver  
[vmware]
host_ip = 192.168.0.51
host_password = vmware
host_username = root
cluster_name = Openstack

I've been working days on this error, but couldn't find any information about this. Any idea's? It would help me alot.