← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1131306] Re: Unable to boot an libvirt instance using a flavour with swap enabled

 

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

** Changed in: nova
    Milestone: None => grizzly-rc1

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

Title:
  Unable to boot an libvirt instance using a flavour with swap enabled

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  # nova flavor-create --swap 2 --ephemeral 3 demo1 6 500 10 3
  # nova boot --flavor demo1 --image f16-x86_64-openstack-sda --key_name mykey demo11
  # nova list
  +--------------------------------------+--------+--------+----------+
  | ID                                   | Name   | Status | Networks |
  +--------------------------------------+--------+--------+----------+
  | c2635620-73b5-48f9-9882-d7be214b10ea | demo11 | ERROR  |          |
  +--------------------------------------+--------+--------+----------+

  
  2013-02-21 17:22:30.021 ERROR nova.compute.manager [req-05e42a31-fe2e-4d0d-9853-90b4f9ea93de admin demo] [instance: c2635620-73b5-48f9-9882-d7be214b10ea] Instance failed to spawn
  2013-02-21 17:22:30.021 TRACE nova.compute.manager [instance: c2635620-73b5-48f9-9882-d7be214b10ea] Traceback (most recent call last):
  2013-02-21 17:22:30.021 TRACE nova.compute.manager [instance: c2635620-73b5-48f9-9882-d7be214b10ea]   File "/home/berrange/src/cloud/nova/nova/compute/manager.py", line 1040, in _spawn
  2013-02-21 17:22:30.021 TRACE nova.compute.manager [instance: c2635620-73b5-48f9-9882-d7be214b10ea]     block_device_info)
  2013-02-21 17:22:30.021 TRACE nova.compute.manager [instance: c2635620-73b5-48f9-9882-d7be214b10ea]   File "/home/berrange/src/cloud/nova/nova/virt/libvirt/driver.py", line 1480, in spawn
  2013-02-21 17:22:30.021 TRACE nova.compute.manager [instance: c2635620-73b5-48f9-9882-d7be214b10ea]     admin_pass=admin_password)
  2013-02-21 17:22:30.021 TRACE nova.compute.manager [instance: c2635620-73b5-48f9-9882-d7be214b10ea]   File "/home/berrange/src/cloud/nova/nova/virt/libvirt/driver.py", line 1790, in _create_image
  2013-02-21 17:22:30.021 TRACE nova.compute.manager [instance: c2635620-73b5-48f9-9882-d7be214b10ea]     swap['dev'], block_device_info)):
  2013-02-21 17:22:30.021 TRACE nova.compute.manager [instance: c2635620-73b5-48f9-9882-d7be214b10ea] KeyError: 'dev'
  2013-02-21 17:22:30.021 TRACE nova.compute.manager [instance: c2635620-73b5-48f9-9882-d7be214b10ea]

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