rbd resize revert fails

Bug #1399244 reported by Jon Bernard
32
This bug affects 6 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
High
Jon Bernard
Juno
Fix Released
Undecided
Unassigned

Bug Description

In Ceph CI, the revert-resize server test is failing. It appears that revert_resize() does not take shared storage into account and deletes the orignal volume, which causes the start of the original instance to fail.

Jon Bernard (jbernard)
Changed in nova:
assignee: nobody → Jon Bernard (jbernard)
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/139693

Changed in nova:
status: New → In Progress
Matt Riedemann (mriedem)
tags: added: ceph resize volumes
Changed in nova:
importance: Undecided → High
Revision history for this message
Jeffrey Zhang (jeffrey4l) wrote :

Is this bug a duplication for https://bugs.launchpad.net/nova/+bug/1314526 ?

Revision history for this message
Jon Bernard (jbernard) wrote :

No, it's related but not exactly the same. The fix proposed there address live migration only, not cold migrations or resizes. This patch should take care of that case.

Revision history for this message
Dmitry Borodaenko (angdraug) wrote :

In fact, bug #1314526 was reopened exactly because my live migration patch was not enough to fix this.

Changed in nova:
assignee: Jon Bernard (jbernard) → Matt Riedemann (mriedem)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/139693
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=eec0937af9d88f3c7ffacf9ce7b8955b2e4be479
Submitter: Jenkins
Branch: master

commit eec0937af9d88f3c7ffacf9ce7b8955b2e4be479
Author: Jon Bernard <email address hidden>
Date: Fri Dec 5 11:58:12 2014 -0500

    Honor shared storage on resize revert

    This patch improves the logic in resize_revert() to properly honor
    shared storage when destroying the unneeded instance. In the case of
    shared storage, the disks need not be destroyed and doing so results in
    the inability to start the original instance.

    Change-Id: I310f6b62a790e4549a2cf9ff3842655da552177a
    Closes-Bug: #1399244

Changed in nova:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (stable/juno)

Fix proposed to branch: stable/juno
Review: https://review.openstack.org/149371

Thierry Carrez (ttx)
Changed in nova:
milestone: none → kilo-2
status: Fix Committed → Fix Released
Matt Riedemann (mriedem)
Changed in nova:
assignee: Matt Riedemann (mriedem) → Jon Bernard (jbernard)
Thierry Carrez (ttx)
Changed in nova:
milestone: kilo-2 → 2015.1.0
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (stable/juno)

Reviewed: https://review.openstack.org/149371
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=b6692dd9f619de932ea9fc356da41ee1b471114c
Submitter: Jenkins
Branch: stable/juno

commit b6692dd9f619de932ea9fc356da41ee1b471114c
Author: Jon Bernard <email address hidden>
Date: Fri Dec 5 11:58:12 2014 -0500

    Honor shared storage on resize revert

    This patch improves the logic in resize_revert() to properly honor
    shared storage when destroying the unneeded instance. In the case of
    shared storage, the disks need not be destroyed and doing so results in
    the inability to start the original instance.

    Conflicts is caused by moving tests to /unit directory

    Also commit contains squash from fixed implementation of determening
    if storage is shared (get from commit fde77d49ff550b73f5f1671edc7366c9b7646200)

    Conflicts:
            nova/tests/unit/compute/test_compute.py
            nova/tests/unit/compute/test_compute_mgr.py

    Closes-Bug: #1399244
    Change-Id: I310f6b62a790e4549a2cf9ff3842655da552177a
    (cherry picked from commit eec0937af9d88f3c7ffacf9ce7b8955b2e4be479)

tags: added: in-stable-juno
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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