← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1218861] Re: Nova compute throws an exception if ephemeral is passed wiithout size.

 

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

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

Title:
  Nova compute throws an exception if ephemeral is passed wiithout size.

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  Alex Xu reports on a related code review
  https://review.openstack.org/#/c/41647/

  """
  Xavier, When create vm as below, i got some error from nova-compute side:

  '{"server": {"name": "vm3", "image_ref": "b8cd5faa-a65f-
  4e47-bfc8-68061574b428", "flavor_ref": "1", "max_count": 1,
  "min_count": 1, "os-block-device-mapping:block_device_mapping":
  [{"device_name": "/dev/vdc", "source_type": "blank",
  "destination_type": "local", "boot_index": 0}], "networks": [{"uuid":
  "b6ba34f1-5504-4aca-825b-04511c104802"}]}}'

  2013-08-30 11:01:32.500 TRACE nova.compute.manager [instance: bc919048
  -049b-445a-a676-e037d7b1fe31] Traceback (most recent call last):
  2013-08-30 11:01:32.500 TRACE nova.compute.manager [instance: bc919048
  -049b-445a-a676-e037d7b1fe31] File
  "/opt/stack/nova/nova/compute/manager.py", line 1018, in
  _build_instance 2013-08-30 11:01:32.500 TRACE nova.compute.manager
  [instance: bc919048-049b-445a-a676-e037d7b1fe31]
  set_access_ip=set_access_ip) 2013-08-30 11:01:32.500 TRACE
  nova.compute.manager [instance: bc919048-049b-445a-a676-e037d7b1fe31]
  File "/opt/stack/nova/nova/compute/manager.py", line 1392, in _spawn
  2013-08-30 11:01:32.500 TRACE nova.compute.manager [instance: bc919048
  -049b-445a-a676-e037d7b1fe31] LOG.exception(_('Instance failed to
  spawn'), instance=instance) 2013-08-30 11:01:32.500 TRACE
  nova.compute.manager [instance: bc919048-049b-445a-a676-e037d7b1fe31]
  File "/opt/stack/nova/nova/compute/manager.py", line 1388, in _spawn
  2013-08-30 11:01:32.500 TRACE nova.compute.manager [instance: bc919048
  -049b-445a-a676-e037d7b1fe31] block_device_info) 2013-08-30
  11:01:32.500 TRACE nova.compute.manager [instance: bc919048-049b-
  445a-a676-e037d7b1fe31] File
  "/opt/stack/nova/nova/virt/libvirt/driver.py", line 1689, in spawn
  2013-08-30 11:01:32.500 TRACE nova.compute.manager [instance: bc919048
  -049b-445a-a676-e037d7b1fe31] admin_pass=admin_password) 2013-08-30
  11:01:32.500 TRACE nova.compute.manager [instance: bc919048-049b-
  445a-a676-e037d7b1fe31] File
  "/opt/stack/nova/nova/virt/libvirt/driver.py", line 2002, in
  _create_image 2013-08-30 11:01:32.500 TRACE nova.compute.manager
  [instance: bc919048-049b-445a-a676-e037d7b1fe31] size = eph['size'] *
  1024 * 1024 * 1024 2013-08-30 11:01:32.500 TRACE nova.compute.manager
  [instance: bc919048-049b-445a-a676-e037d7b1fe31] TypeError:
  unsupported operand type(s) for *: 'NoneType' and 'int'

  That because I miss 'volume_size' in the request.
  """

  I was also able to reproduce on devstack with latest master.

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