← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1118829] Re: libvirt driver looking for non-existent keys in diskmapping

 

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

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

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

Title:
  libvirt driver looking for non-existent keys in diskmapping

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  The refactor of libvirt disk mappings appears to have broken boot from volume and possibly some other things.
  Commit: 7be531fe9462f2b07d4a1abf6687f649d1dfbb89

  I've identified this commit as the introduction of the issue, but
  haven't looked through the patch to find exactly where the issue is
  yet.  Here's the sequence and the resultant trace:

  nova boot --flavor 1 --block-device-mapping
  vda=beb80227-a551-4b7d-a110-950cf2add29d --image
  9eb77f33-9a97-40d1-8516-8ec811e6c9a8 bfv-test

  `````````````````````````````````````````````````````````````````

  2013-02-07 16:09:20.920 ERROR nova.compute.manager [req-ce998359-cf8d-48a3-9b1e-32de65051dfa demo demo] [instance: 5b79c048-c994-4c8f-99b8-4ad25ad33a72] Instance failed to spawn
  2013-02-07 16:09:20.920 TRACE nova.compute.manager [instance: 5b79c048-c994-4c8f-99b8-4ad25ad33a72] Traceback (most recent call last):
  2013-02-07 16:09:20.920 TRACE nova.compute.manager [instance: 5b79c048-c994-4c8f-99b8-4ad25ad33a72]   File "/opt/stack/nova/nova/compute/manager.py", line 984, in _spawn
  2013-02-07 16:09:20.920 TRACE nova.compute.manager [instance: 5b79c048-c994-4c8f-99b8-4ad25ad33a72]     block_device_info)
  2013-02-07 16:09:20.920 TRACE nova.compute.manager [instance: 5b79c048-c994-4c8f-99b8-4ad25ad33a72]   File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 1177, in spawn
  2013-02-07 16:09:20.920 TRACE nova.compute.manager [instance: 5b79c048-c994-4c8f-99b8-4ad25ad33a72]     block_device_info=block_device_info)
  2013-02-07 16:09:20.920 TRACE nova.compute.manager [instance: 5b79c048-c994-4c8f-99b8-4ad25ad33a72]   File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 1959, in to_xml
  2013-02-07 16:09:20.920 TRACE nova.compute.manager [instance: 5b79c048-c994-4c8f-99b8-4ad25ad33a72]     disk_info, rescue, block_device_info)
  2013-02-07 16:09:20.920 TRACE nova.compute.manager [instance: 5b79c048-c994-4c8f-99b8-4ad25ad33a72]   File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 1790, in get_guest_config
  2013-02-07 16:09:20.920 TRACE nova.compute.manager [instance: 5b79c048-c994-4c8f-99b8-4ad25ad33a72]     {'root_device_name': '/dev/' + disk_mapping['disk']['dev']})
  2013-02-07 16:09:20.920 TRACE nova.compute.manager [instance: 5b79c048-c994-4c8f-99b8-4ad25ad33a72] KeyError: 'disk'
  2013-02-07 16:09:20.920 TRACE nova.compute.manager [instance: 5b79c048-c994-4c8f-99b8-4ad25ad33a72]

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