← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1571643] Re: Vmware : snapshot failed to restore with original VM flavor

 

[Expired for OpenStack Compute (nova) because there has been no activity
for 60 days.]

** Changed in: nova
       Status: Incomplete => Expired

-- 
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/1571643

Title:
  Vmware : snapshot failed to restore with original VM flavor

Status in OpenStack Compute (nova):
  Expired

Bug description:
  When I try to restore a Swift snapshot of a VMware instance, it fails if the flavor has not a bigger root size than the original flavor.
  If the flavor has a bigger disk, it works without any error.

  I'm on Kilo release, with vsphere 6.

  Do you have any idea what is going wrong ?
  Thanks by advance,


  There is the original flavor of the VM :
  +----------------------------+--------------------------------------+
  | Property                   | Value                                |
  +----------------------------+--------------------------------------+
  | disk                       | 3                                    |
  | extra_specs                | {}                                   |
  | id                         | 5dce9c86-7a5d-446a-b3bd-deb6066636e5 |
  | name                       | m1.small                             |
  | os-flavor-access:is_public | True                                 |
  | ram                        | 2048                                 |
  | rxtx_factor                | 1.0                                  |
  | swap                       |                                      |
  | vcpus                      | 1                                    |
  +----------------------------+--------------------------------------+

  the original image : 
  +----------------------------+--------------------------------------+
  | Property                   | Value                                |
  +----------------------------+--------------------------------------+
  | Property 'hypervisor_type' | vmware                               |
  | checksum                   | 1ca0d617522ea27718ee9e4924f99737     |
  | container_format           | bare                                 |
  | created_at                 | 2016-03-01T15:59:23.000000           |
  | deleted                    | False                                |
  | disk_format                | vmdk                                 |
  | id                         | 364512f1-2912-4b77-a59c-66a1e58340c4 |
  | is_public                  | True                                 |
  | min_disk                   | 1                                    |
  | min_ram                    | 0                                    |
  | name                       | Debian VMDK                          |
  | owner                      | 19cbfe88e1f04f8f94d5b6eb83d5d703     |
  | protected                  | False                                |
  | size                       | 1073741824                           |
  | status                     | active                               |
  | updated_at                 | 2016-04-15T14:30:56.000000           |
  +----------------------------+--------------------------------------+

  The snapshoted image :
  +---------------------------------+--------------------------------------+
  | Property                        | Value                                |
  +---------------------------------+--------------------------------------+
  | Property 'base_image_ref'       | 364512f1-2912-4b77-a59c-66a1e58340c4 |
  | Property 'hypervisor_type'      | vmware                               |
  | Property 'image_type'           | snapshot                             |
  | Property 'instance_uuid'        | 12bdca62-215c-406d-8190-ee40f5503268 |
  | Property 'owner_id'             | 19cbfe88e1f04f8f94d5b6eb83d5d703     |
  | Property 'user_id'              | afe3cfedd2ec407f882dfeab817c784e     |
  | Property 'vmware_disktype'      | streamOptimized                      |
  | Property 'vmware_image_version' | 1                                    |
  | checksum                        | 4288105090d9289a5ec2bc62983dfd7e     |
  | container_format                | bare                                 |
  | created_at                      | 2016-04-15T15:02:41.000000           |
  | deleted                         | False                                |
  | disk_format                     | vmdk                                 |
  | id                              | e64270b9-64d5-4445-bd5d-461666c0b94c |
  | is_public                       | False                                |
  | min_disk                        | 3                                    |
  | min_ram                         | 0                                    |
  | name                            | vmware snap                          |
  | owner                           | 19cbfe88e1f04f8f94d5b6eb83d5d703     |
  | protected                       | False                                |
  | size                            | 422333952                            |
  | status                          | active                               |
  | updated_at                      | 2016-04-15T15:08:34.000000           |
  +---------------------------------+--------------------------------------+


  
  nova log :

  2016-04-18 12:27:15.044 25009 ERROR oslo_vmware.common.loopingcall [-] in fixed duration looping call
  2016-04-18 12:27:15.044 25009 TRACE oslo_vmware.common.loopingcall Traceback (most recent call last):
  2016-04-18 12:27:15.044 25009 TRACE oslo_vmware.common.loopingcall   File "/usr/lib/python2.7/site-packages/oslo_vmware/common/loopingcall.py", line 76, in _inner
  2016-04-18 12:27:15.044 25009 TRACE oslo_vmware.common.loopingcall     self.f(*self.args, **self.kw)
  2016-04-18 12:27:15.044 25009 TRACE oslo_vmware.common.loopingcall   File "/usr/lib/python2.7/site-packages/oslo_vmware/api.py", line 417, in _poll_task
  2016-04-18 12:27:15.044 25009 TRACE oslo_vmware.common.loopingcall     raise task_ex
  2016-04-18 12:27:15.044 25009 TRACE oslo_vmware.common.loopingcall VMwareDriverException: A specified parameter was not correct: capacity
  2016-04-18 12:27:15.044 25009 TRACE oslo_vmware.common.loopingcall 
  2016-04-18 12:27:15.045 25009 ERROR nova.virt.vmwareapi.vmops [req-b1d9df15-d1e2-42a8-876c-a9e6bcb5b8bf afe3cfedd2ec407f882dfeab817c784e 19cbfe88e1f04f8f94d5b6eb83d5d703] [instance: 728b6795-2af6-4ffa-b16a-c4e8eb34cb55] Extending virtual disk failed with error: A specified parameter was not correct: capacity
  2016-04-18 12:27:16.112 25009 ERROR nova.compute.manager [req-b1d9df15-d1e2-42a8-876c-a9e6bcb5b8bf afe3cfedd2ec407f882dfeab817c784e 19cbfe88e1f04f8f94d5b6eb83d5d703] [instance: 728b6795-2af6-4ffa-b16a-c4e8eb34cb55] Instance failed to spawn
  2016-04-18 12:27:16.112 25009 TRACE nova.compute.manager [instance: 728b6795-2af6-4ffa-b16a-c4e8eb34cb55] Traceback (most recent call last):
  2016-04-18 12:27:16.112 25009 TRACE nova.compute.manager [instance: 728b6795-2af6-4ffa-b16a-c4e8eb34cb55]   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2473, in _build_resources
  2016-04-18 12:27:16.112 25009 TRACE nova.compute.manager [instance: 728b6795-2af6-4ffa-b16a-c4e8eb34cb55]     yield resources
  2016-04-18 12:27:16.112 25009 TRACE nova.compute.manager [instance: 728b6795-2af6-4ffa-b16a-c4e8eb34cb55]   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2345, in _build_and_run_instance
  2016-04-18 12:27:16.112 25009 TRACE nova.compute.manager [instance: 728b6795-2af6-4ffa-b16a-c4e8eb34cb55]     block_device_info=block_device_info)
  2016-04-18 12:27:16.112 25009 TRACE nova.compute.manager [instance: 728b6795-2af6-4ffa-b16a-c4e8eb34cb55]   File "/usr/lib/python2.7/site-packages/nova/virt/vmwareapi/driver.py", line 480, in spawn
  2016-04-18 12:27:16.112 25009 TRACE nova.compute.manager [instance: 728b6795-2af6-4ffa-b16a-c4e8eb34cb55]     admin_password, network_info, block_device_info)
  2016-04-18 12:27:16.112 25009 TRACE nova.compute.manager [instance: 728b6795-2af6-4ffa-b16a-c4e8eb34cb55]   File "/usr/lib/python2.7/site-packages/nova/virt/vmwareapi/vmops.py", line 603, in spawn
  2016-04-18 12:27:16.112 25009 TRACE nova.compute.manager [instance: 728b6795-2af6-4ffa-b16a-c4e8eb34cb55]     self._use_disk_image_as_linked_clone(vm_ref, vi)
  2016-04-18 12:27:16.112 25009 TRACE nova.compute.manager [instance: 728b6795-2af6-4ffa-b16a-c4e8eb34cb55]   File "/usr/lib/python2.7/site-packages/nova/virt/vmwareapi/vmops.py", line 1715, in _use_disk_image_as_linked_clone
  2016-04-18 12:27:16.112 25009 TRACE nova.compute.manager [instance: 728b6795-2af6-4ffa-b16a-c4e8eb34cb55]     vi.dc_info, vi.ii, vi.instance, str(sized_disk_ds_loc))
  2016-04-18 12:27:16.112 25009 TRACE nova.compute.manager [instance: 728b6795-2af6-4ffa-b16a-c4e8eb34cb55]   File "/usr/lib/python2.7/site-packages/nova/virt/vmwareapi/vmops.py", line 224, in _extend_if_required
  2016-04-18 12:27:16.112 25009 TRACE nova.compute.manager [instance: 728b6795-2af6-4ffa-b16a-c4e8eb34cb55]     root_vmdk_path, dc_info.ref)
  2016-04-18 12:27:16.112 25009 TRACE nova.compute.manager [instance: 728b6795-2af6-4ffa-b16a-c4e8eb34cb55]   File "/usr/lib/python2.7/site-packages/nova/virt/vmwareapi/vmops.py", line 202, in _extend_virtual_disk
  2016-04-18 12:27:16.112 25009 TRACE nova.compute.manager [instance: 728b6795-2af6-4ffa-b16a-c4e8eb34cb55]     self._delete_datastore_file(ds_path, dc_ref)
  2016-04-18 12:27:16.112 25009 TRACE nova.compute.manager [instance: 728b6795-2af6-4ffa-b16a-c4e8eb34cb55]   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 85, in __exit__
  2016-04-18 12:27:16.112 25009 TRACE nova.compute.manager [instance: 728b6795-2af6-4ffa-b16a-c4e8eb34cb55]     six.reraise(self.type_, self.value, self.tb)
  2016-04-18 12:27:16.112 25009 TRACE nova.compute.manager [instance: 728b6795-2af6-4ffa-b16a-c4e8eb34cb55]   File "/usr/lib/python2.7/site-packages/nova/virt/vmwareapi/vmops.py", line 193, in _extend_virtual_disk
  2016-04-18 12:27:16.112 25009 TRACE nova.compute.manager [instance: 728b6795-2af6-4ffa-b16a-c4e8eb34cb55]     self._session._wait_for_task(vmdk_extend_task)
  2016-04-18 12:27:16.112 25009 TRACE nova.compute.manager [instance: 728b6795-2af6-4ffa-b16a-c4e8eb34cb55]   File "/usr/lib/python2.7/site-packages/nova/virt/vmwareapi/driver.py", line 680, in _wait_for_task
  2016-04-18 12:27:16.112 25009 TRACE nova.compute.manager [instance: 728b6795-2af6-4ffa-b16a-c4e8eb34cb55]     return self.wait_for_task(task_ref)
  2016-04-18 12:27:16.112 25009 TRACE nova.compute.manager [instance: 728b6795-2af6-4ffa-b16a-c4e8eb34cb55]   File "/usr/lib/python2.7/site-packages/oslo_vmware/api.py", line 380, in wait_for_task
  2016-04-18 12:27:16.112 25009 TRACE nova.compute.manager [instance: 728b6795-2af6-4ffa-b16a-c4e8eb34cb55]     return evt.wait()
  2016-04-18 12:27:16.112 25009 TRACE nova.compute.manager [instance: 728b6795-2af6-4ffa-b16a-c4e8eb34cb55]   File "/usr/lib/python2.7/site-packages/eventlet/event.py", line 121, in wait
  2016-04-18 12:27:16.112 25009 TRACE nova.compute.manager [instance: 728b6795-2af6-4ffa-b16a-c4e8eb34cb55]     return hubs.get_hub().switch()
  2016-04-18 12:27:16.112 25009 TRACE nova.compute.manager [instance: 728b6795-2af6-4ffa-b16a-c4e8eb34cb55]   File "/usr/lib/python2.7/site-packages/eventlet/hubs/hub.py", line 294, in switch
  2016-04-18 12:27:16.112 25009 TRACE nova.compute.manager [instance: 728b6795-2af6-4ffa-b16a-c4e8eb34cb55]     return self.greenlet.switch()
  2016-04-18 12:27:16.112 25009 TRACE nova.compute.manager [instance: 728b6795-2af6-4ffa-b16a-c4e8eb34cb55]   File "/usr/lib/python2.7/site-packages/oslo_vmware/common/loopingcall.py", line 76, in _inner
  2016-04-18 12:27:16.112 25009 TRACE nova.compute.manager [instance: 728b6795-2af6-4ffa-b16a-c4e8eb34cb55]     self.f(*self.args, **self.kw)
  2016-04-18 12:27:16.112 25009 TRACE nova.compute.manager [instance: 728b6795-2af6-4ffa-b16a-c4e8eb34cb55]   File "/usr/lib/python2.7/site-packages/oslo_vmware/api.py", line 417, in _poll_task
  2016-04-18 12:27:16.112 25009 TRACE nova.compute.manager [instance: 728b6795-2af6-4ffa-b16a-c4e8eb34cb55]     raise task_ex
  2016-04-18 12:27:16.112 25009 TRACE nova.compute.manager [instance: 728b6795-2af6-4ffa-b16a-c4e8eb34cb55] VMwareDriverException: A specified parameter was not correct: capacity
  2016-04-18 12:27:16.112 25009 TRACE nova.compute.manager [instance: 728b6795-2af6-4ffa-b16a-c4e8eb34cb55]

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


References