detach boot device volume without warning

Bug #1279300 reported by lirenke
14
This bug affects 4 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
jiang, yunhong

Bug Description

If I use block_device_mapping_v2 api to set a backend volume as boot device for instance. The instance will be launched by this remote volume successfully.
But, in such case, we can also use detach api to force this boot device being detached. So, when we do it, the guestOS of this instance would be damaged, and the whole system would not work normally if do a I/O operation. It seems can not resume.
I think we should give a warning for user at least or even forbiden this operation.

Tags: api volumes
Changed in nova:
importance: Undecided → Wishlist
Changed in nova:
assignee: nobody → jiang, yunhong (yunhong-jiang)
tags: added: volumes
tags: added: api
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/75552

Changed in nova:
status: New → In Progress
Changed in nova:
milestone: none → icehouse-rc1
importance: Wishlist → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

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

commit 7fbb42296970ee30d21bbd66b144a2ab421aa17f
Author: Yunhong Jiang <email address hidden>
Date: Fri Feb 21 18:11:03 2014 -0800

    Don't detach root device volume

    Detach a root device volume may cause various guest error. Although
    we can argue that it's user response to not detach the root device
    volume, a check in nova will be more helpful.

    We can either give a warning message, or not allow it. This patch
    forbids this operation, considering that even in real system, remove
    root device does not make much sense.

    Closes-Bug: #1279300

    DocImpact

    Change-Id: I01f086be668b35442a2f139f4d7dc96884a3bda6
    Signed-off-by: Yunhong Jiang <email address hidden>

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

Fix proposed to branch: stable/havana
Review: https://review.openstack.org/82695

Thierry Carrez (ttx)
Changed in nova:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: icehouse-rc1 → 2014.1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on nova (stable/havana)

Change abandoned by Alan Pevec (<email address hidden>) on branch: stable/havana
Review: https://review.openstack.org/82695
Reason: Final Havana release 2013.2.4 has been cut and stable/havana is going to be removed in a week.

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.