xen resize with volumes fails pv not loaded

Bug #1094351 reported by Cory Stone
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Cory Stone

Bug Description

We see this with windows guests.

When doing a resize with cinder volumes attached, the vm is first started, then the volumes are attempted to be hotplugged in. The windows guests haven't actually loaded the PV drivers yet, which causes self.driver.finish_migration() in compute/manager to fail. Xen throws a MISSING_PV_DRIVERS error when trying to attach.

Revision history for this message
Cory Stone (corystone) wrote :

The suggested fix (from ant & comstud) was to modify the xen driver to attach the volumes before vm start and not attempt to hot plug them. I'll submit a patch that does this.

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

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

Reviewed: https://review.openstack.org/18730
Committed: http://github.com/openstack/nova/commit/21ea2e6109831156592dd1e4f4f4caefdcedd04f
Submitter: Jenkins
Branch: master

commit 21ea2e6109831156592dd1e4f4f4caefdcedd04f
Author: Cory Stone <email address hidden>
Date: Fri Dec 28 15:39:54 2012 -0600

    xenapi: Avoid hotplugging volumes on resize.

    In finish_migration, instead of starting up the vm and then
    hotplugging in the volumes to it, just attach the volumes before
    starting the vm.

    This avoids the issue where the guest OS hasn't loaded the PV
    drivers for the volume yet.

    Fixes bug 1094351

    Change-Id: I51d754f8f82f1d22bc123b39777449b58b03e389

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → grizzly-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: grizzly-2 → 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.