xenapi: boot from volume is broken

Bug #1063920 reported by Mate Lakat
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Renuka Apte

Bug Description

Using exercises/boot_from_volume.sh, the test fails at:
+ local exitcode=0
+ set +o xtrace
+ timeout 500 sh -c 'while ! nova show 92ddbd18-5725-4c3b-80a4-8cbcbecadb3d | grep status | grep -q ACTIVE; do sleep 1; done'

At n-cpu, you see this:

Traceback (most recent call last):
  File "/opt/stack/nova/nova/compute/manager.py", line 747, in _spawn
    current_power_state = self._get_power_state(context, instance)
  File "/opt/stack/nova/nova/virt/xenapi/driver.py", line 179, in spawn
    admin_password, network_info, block_device_info)
  File "/opt/stack/nova/nova/virt/xenapi/vmops.py", line 381, in spawn
    undo_mgr.rollback_and_reraise(msg=msg, instance=instance)
  File "/opt/stack/nova/nova/utils.py", line 1315, in rollback_and_reraise
    self._rollback()
  File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__
    self.gen.next()
  File "/opt/stack/nova/nova/virt/xenapi/vmops.py", line 370, in spawn
    vm_ref = create_vm_step(undo_mgr, vdis, kernel_file, ramdisk_file)
  File "/opt/stack/nova/nova/virt/xenapi/vmops.py", line 135, in inner
    rv = f(*args, **kwargs)
  File "/opt/stack/nova/nova/virt/xenapi/vmops.py", line 311, in create_vm_step
    rescue=rescue)
  File "/opt/stack/nova/nova/virt/xenapi/vmops.py", line 404, in _create_vm
    vdis['root']['ref'], disk_image_type, instance['os_type'])
KeyError: 'root'

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/14419

Changed in nova:
assignee: nobody → Renuka Apte (renukaapte)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/14419
Committed: http://github.com/openstack/nova/commit/f569727491544a0cffbbaa7174234142a275082f
Submitter: Jenkins
Branch: master

commit f569727491544a0cffbbaa7174234142a275082f
Author: Renuka Apte <email address hidden>
Date: Fri Oct 12 16:23:57 2012 -0700

    xenapi: fix bfv behavior when SR is not attached

    Fixes bug 1063920
    If we try to boot from volume right after a detach volume operation
    on the xensm volume driver, the SR has been disconnected. This results
    in a failure to populate the vdis list. Introducing the SR if it
    isn't in the xapi db fixes this.

    Change-Id: I7e6b5e643ea3e20ba691141950cddfcb0ab5f3b8

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → grizzly-1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: grizzly-1 → 2013.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.