← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1528114] Re: vmware start instance from snapshot error

 

Merged-Fix: https://review.openstack.org/#/c/168024/

** Changed in: nova
       Status: New => Fix Released

** Changed in: nova
     Assignee: (unassigned) => Radoslav Gerganov (rgerganov)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1528114

Title:
  vmware start instance from snapshot error

Status in OpenStack Compute (nova):
  Fix Released

Bug description:
  1. I take a snapshot from vmware instance, then the snapshot image(which is link_clone of snapshot) will be saved in glance server.
  2. Start from this snapshot image from glance server. then got the following error

  2015-12-15 01:32:05.255 25992 DEBUG oslo_vmware.api [-] Invoking VIM API to read info of task: (returnval){
     value = "task-1896"
     _type = "Task"
   }. _poll_task /usr/lib/python2.7/site-packages/oslo_vmware/api.py:397
  2015-12-15 01:32:05.255 25992 DEBUG oslo_vmware.api [-] Waiting for function _invoke_api to return. func /usr/lib/python2.7/site-packages/oslo_vmware/api.py:121

  2015-12-15 01:32:05.285 25992 DEBUG oslo_vmware.exceptions [-] Fault InvalidArgument not matched. get_fault_class /usr/lib/python2.7/site-packages/oslo_vmware/exceptions.py:296
  2015-12-15 01:32:05.285 25992 ERROR oslo_vmware.common.loopingcall [-] in fixed duration looping call
  2015-12-15 01:32:05.285 25992 ERROR oslo_vmware.common.loopingcall Traceback (most recent call last):
  2015-12-15 01:32:05.285 25992 ERROR oslo_vmware.common.loopingcall   File "/usr/lib/python2.7/site-packages/oslo_vmware/common/loopingcall.py", line 76, in _inner
  2015-12-15 01:32:05.285 25992 ERROR oslo_vmware.common.loopingcall     self.f(*self.args, **self.kw)
  2015-12-15 01:32:05.285 25992 ERROR oslo_vmware.common.loopingcall   File "/usr/lib/python2.7/site-packages/oslo_vmware/api.py", line 428, in _poll_task
  2015-12-15 01:32:05.285 25992 ERROR oslo_vmware.common.loopingcall     raise task_ex
  2015-12-15 01:32:05.285 25992 ERROR oslo_vmware.common.loopingcall VimFaultException: 指定的参数错误。
  2015-12-15 01:32:05.285 25992 ERROR oslo_vmware.common.loopingcall capacity
  2015-12-15 01:32:05.285 25992 ERROR oslo_vmware.common.loopingcall Faults: ['InvalidArgument']
  2015-12-15 01:32:05.285 25992 ERROR oslo_vmware.common.loopingcall
  2015-12-15 01:32:05.286 25992 ERROR nova.virt.vmwareapi.vmops [req-c466c53c-0a9c-45d7-aa78-c8812b4021a2 4b7fde8604c24e919e46b68fdf50b5a5 b0eab665ecd94e86885e03027ab90528 - - -] [instance: bea53465-ac4f-40f4-9937-f99024a8075d] Extending virtual disk failed with error: 指定的参数错误。
  capacity

  3. I track the error, 
  nova/virt/vmwareapi/vmops.py
   def spawn()
      self._use_disk_image_as_linked_clone(vm_ref, vi)
        self._extend_if_required
          self._extend_virtual_disk() 
              def _extend_virtual_disk()
                  vmdk_extend_task = self._session._call_method(
                  self._session.vim,
                  "ExtendVirtualDisk_Task",
                  service_content.virtualDiskManager,
                  name=name,
                  datacenter=dc_ref,
                  newCapacityKb=requested_size,
                  eagerZero=False)
  my vimserver is :
  /opt/stack/vmware/wsdl/5.0/vimService.wsdl
  vcenter version is :5.1.0
  openstack version is : Liberty

  4. When I shield _extend_if_required in
  _use_disk_image_as_linked_clone, then will be successful.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1528114/+subscriptions


References