VMware ESX: Boot from volume errors out due to relocate

Bug #1244918 reported by Kartik Bommepally
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Kartik Bommepally

Bug Description

When trying to perform boot instance from volume using the VMwareESXDriver, the operation errors out.

Command:
$ nova boot --flavor 1 --block-device-mapping vda=222e8ece-8723-4930-803c-8ae5cf233a87:::0 vm1

Log messages

d3-59fce43903e8] Root volume attach. Driver type: vmdk attach_root_volume /opt/stack/nova/nova/virt/vmwareapi/volumeops.py:458
2013-10-26 14:49:13.393 30706 WARNING nova.virt.vmwareapi.driver [-] Task [RelocateVM_Task] (returnval){
   value = "haTask-162-vim.VirtualMachine.relocate-327302855"
   _type = "Task"
 } status: error The operation is not supported on the object.
2013-10-26 14:49:13.394 30706 ERROR nova.compute.manager [req-e95b7262-a70c-436b-a9d5-0b8045cbf3f5 4471d6567a6b4dd29affbc849f3814d9 256df8ea370d4de2b40edfe9b0ea4063] [instance: 6b190d4d-231d-43ec-86d3-59fce43903e8] Instance failed to spawn
2013-10-26 14:49:13.394 30706 TRACE nova.compute.manager [instance: 6b190d4d-231d-43ec-86d3-59fce43903e8] Traceback (most recent call last):
2013-10-26 14:49:13.394 30706 TRACE nova.compute.manager [instance: 6b190d4d-231d-43ec-86d3-59fce43903e8] File "/opt/stack/nova/nova/compute/manager.py", line 1410, in _spawn
2013-10-26 14:49:13.394 30706 TRACE nova.compute.manager [instance: 6b190d4d-231d-43ec-86d3-59fce43903e8] block_device_info)
2013-10-26 14:49:13.394 30706 TRACE nova.compute.manager [instance: 6b190d4d-231d-43ec-86d3-59fce43903e8] File "/opt/stack/nova/nova/virt/vmwareapi/driver.py", line 178, in spawn
2013-10-26 14:49:13.394 30706 TRACE nova.compute.manager [instance: 6b190d4d-231d-43ec-86d3-59fce43903e8] admin_password, network_info, block_device_info)
2013-10-26 14:49:13.394 30706 TRACE nova.compute.manager [instance: 6b190d4d-231d-43ec-86d3-59fce43903e8] File "/opt/stack/nova/nova/virt/vmwareapi/vmops.py", line 538, in spawn
2013-10-26 14:49:13.394 30706 TRACE nova.compute.manager [instance: 6b190d4d-231d-43ec-86d3-59fce43903e8] data_store_ref)
2013-10-26 14:49:13.394 30706 TRACE nova.compute.manager [instance: 6b190d4d-231d-43ec-86d3-59fce43903e8] File "/opt/stack/nova/nova/virt/vmwareapi/volumeops.py", line 467, in attach_root_volume
2013-10-26 14:49:13.394 30706 TRACE nova.compute.manager [instance: 6b190d4d-231d-43ec-86d3-59fce43903e8] self._relocate_vmdk_volume(volume_ref, res_pool, datastore)
2013-10-26 14:49:13.394 30706 TRACE nova.compute.manager [instance: 6b190d4d-231d-43ec-86d3-59fce43903e8] File "/opt/stack/nova/nova/virt/vmwareapi/volumeops.py", line 295, in _relocate_vmdk_volume
2013-10-26 14:49:13.394 30706 TRACE nova.compute.manager [instance: 6b190d4d-231d-43ec-86d3-59fce43903e8] self._session._wait_for_task(task.value, task)
2013-10-26 14:49:13.394 30706 TRACE nova.compute.manager [instance: 6b190d4d-231d-43ec-86d3-59fce43903e8] File "/opt/stack/nova/nova/virt/vmwareapi/driver.py", line 901, in _wait_for_task
2013-10-26 14:49:13.394 30706 TRACE nova.compute.manager [instance: 6b190d4d-231d-43ec-86d3-59fce43903e8] ret_val = done.wait()
2013-10-26 14:49:13.394 30706 TRACE nova.compute.manager [instance: 6b190d4d-231d-43ec-86d3-59fce43903e8] File "/usr/local/lib/python2.7/dist-packages/eventlet/event.py", line 116, in wait
2013-10-26 14:49:13.394 30706 TRACE nova.compute.manager [instance: 6b190d4d-231d-43ec-86d3-59fce43903e8] return hubs.get_hub().switch()
2013-10-26 14:49:13.394 30706 TRACE nova.compute.manager [instance: 6b190d4d-231d-43ec-86d3-59fce43903e8] File "/usr/local/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 187, in switch
2013-10-26 14:49:13.394 30706 TRACE nova.compute.manager [instance: 6b190d4d-231d-43ec-86d3-59fce43903e8] return self.greenlet.switch()
2013-10-26 14:49:13.394 30706 TRACE nova.compute.manager [instance: 6b190d4d-231d-43ec-86d3-59fce43903e8] NovaException: The operation is not supported on the object.
2013-10-26 14:49:13.394 30706 TRACE nova.compute.manager [instance: 6b190d4d-231d-43ec-86d3-59fce43903e8]

Revision history for this message
Gary Kotton (garyk) wrote :
Changed in nova:
status: New → In Progress
assignee: nobody → Kartik Bommepally (kartikaditya)
milestone: none → icehouse-1
Gary Kotton (garyk)
Changed in nova:
importance: Undecided → Medium
Changed in nova:
milestone: icehouse-1 → icehouse-2
Thierry Carrez (ttx)
Changed in nova:
milestone: icehouse-2 → icehouse-3
Thierry Carrez (ttx)
Changed in nova:
milestone: icehouse-3 → icehouse-rc1
Tracy Jones (tjones-i)
Changed in nova:
milestone: icehouse-rc1 → next
tags: added: icehouse-rc-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/53990
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=34e14fbbb5293c52ef5dbfeb1172390f15d79e1f
Submitter: Jenkins
Branch: master

commit 34e14fbbb5293c52ef5dbfeb1172390f15d79e1f
Author: Kartik Bommepally <email address hidden>
Date: Sat Oct 26 03:35:14 2013 -0700

    VMware ESX: Boot from volume must not relocate vol

    ESX does not support relocate API. Moreover when working with ESX the boot
    from volume logic need not perform relocation since the volume's datastore
    is always visible to the ESX host.

    The fix is to ignore relocation when working with ESX.

    Change-Id: I227cf2ea5b6f681150ede0bf6257eb238f1452d2
    Closes-bug: #1244918

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
tags: added: icehouse-backport-potential
removed: icehouse-rc-potential
Thierry Carrez (ttx)
Changed in nova:
milestone: next → none
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.