← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1367540] Re: VMware: Failed to launch instance from volume

 

** Also affects: nova/juno
   Importance: Undecided
       Status: New

** Changed in: nova/juno
    Milestone: None => 2014.2.2

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

Title:
  VMware: Failed to launch instance from volume

Status in OpenStack Compute (Nova):
  Fix Released
Status in OpenStack Compute (nova) juno series:
  New

Bug description:
  If you create a volume from an image and launch an instance from it,
  the instance fails to be created.

  To recreate this bug:
  1. Create a volume from an image
  2. Launch an instance from the volume

  The following error is thrown in n-cpu.log:

  2014-09-09 22:33:47.037 ERROR nova.compute.manager [req-e17654a6-a58b-4760-a383-643dd054c691 demo demo] [instance: 5ed921e8-c4d8-45a1-964a-93d09a43f2ea] Instance failed to spawn
  2014-09-09 22:33:47.037 32639 TRACE nova.compute.manager [instance: 5ed921e8-c4d8-45a1-964a-93d09a43f2ea] Traceback (most recent call last):
  2014-09-09 22:33:47.037 32639 TRACE nova.compute.manager [instance: 5ed921e8-c4d8-45a1-964a-93d09a43f2ea]   File "/opt/stack/nova/nova/compute/manager.py", line 2171, in _build_resources
  2014-09-09 22:33:47.037 32639 TRACE nova.compute.manager [instance: 5ed921e8-c4d8-45a1-964a-93d09a43f2ea]     yield resources
  2014-09-09 22:33:47.037 32639 TRACE nova.compute.manager [instance: 5ed921e8-c4d8-45a1-964a-93d09a43f2ea]   File "/opt/stack/nova/nova/compute/manager.py", line 2050, in _build_and_run_instance
  2014-09-09 22:33:47.037 32639 TRACE nova.compute.manager [instance: 5ed921e8-c4d8-45a1-964a-93d09a43f2ea]     block_device_info=block_device_info)
  2014-09-09 22:33:47.037 32639 TRACE nova.compute.manager [instance: 5ed921e8-c4d8-45a1-964a-93d09a43f2ea]   File "/opt/stack/nova/nova/virt/vmwareapi/driver.py", line 446, in spawn
  2014-09-09 22:33:47.037 32639 TRACE nova.compute.manager [instance: 5ed921e8-c4d8-45a1-964a-93d09a43f2ea]     admin_password, network_info, block_device_info)
  2014-09-09 22:33:47.037 32639 TRACE nova.compute.manager [instance: 5ed921e8-c4d8-45a1-964a-93d09a43f2ea]   File "/opt/stack/nova/nova/virt/vmwareapi/vmops.py", line 298, in spawn
  2014-09-09 22:33:47.037 32639 TRACE nova.compute.manager [instance: 5ed921e8-c4d8-45a1-964a-93d09a43f2ea]     vi = self._get_vm_config_info(instance, image_info, instance_name)
  2014-09-09 22:33:47.037 32639 TRACE nova.compute.manager [instance: 5ed921e8-c4d8-45a1-964a-93d09a43f2ea]   File "/opt/stack/nova/nova/virt/vmwareapi/vmops.py", line 276, in _get_vm_config_info
  2014-09-09 22:33:47.037 32639 TRACE nova.compute.manager [instance: 5ed921e8-c4d8-45a1-964a-93d09a43f2ea]     image_info.file_size_in_gb > instance.root_gb):
  2014-09-09 22:33:47.037 32639 TRACE nova.compute.manager [instance: 5ed921e8-c4d8-45a1-964a-93d09a43f2ea]   File "/opt/stack/nova/nova/virt/vmwareapi/vmware_images.py", line 92, in file_size_in_gb
  2014-09-09 22:33:47.037 32639 TRACE nova.compute.manager [instance: 5ed921e8-c4d8-45a1-964a-93d09a43f2ea]     return self.file_size / units.Gi
  2014-09-09 22:33:47.037 32639 TRACE nova.compute.manager [instance: 5ed921e8-c4d8-45a1-964a-93d09a43f2ea] TypeError: unsupported operand type(s) for /: 'unicode' and 'int'

  It appears that a simple conversion of the file_size to an int in
  vmware_images.py should fix this.

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


References