Ask Your Question
1

error launch instance vmware esxi [closed]

asked 2015-02-26 14:00:37 -0500

wharfedale gravatar image

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 ...
(more)
edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Vinoth
close date 2015-03-06 03:52:31.921829

1 answer

Sort by ยป oldest newest most voted
1

answered 2015-02-27 04:20:21 -0500

Vinoth gravatar image

To launch VM in VMware environment, you have to upload seprate image to glance that can work in ESXI hypervisor.

I guess you have tried launching the instance using ordinary image in glance that usually work in KVM hypervisor.

You should upload the image with hypervisor tag as VMware. So that nova will scheadule instance at VMware host.

To do this follow the commands :

$ glance image-create --name ubuntuqcow --is-public=True --container-format=bare --disk-format=vmdk --property vmware-disktype="sparse" --property vmware-adaptertype="ide" --property hypervisor_type="vmware" < ubuntuqcow.vmdk

Note:

Here ubuntuqcow.vmdk is the image I created by my own using KVM which was in qcow2 format. Then I converted it into vmdk format using the following command:(execute the above command after converting the image to vmdk format)

$ qemu-img convert -f qcow2 ubuntuqcow2.img -O vmdk ubuntuqcow.vmdk

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-02-26 14:00:37 -0500

Seen: 170 times

Last updated: Feb 27 '15