Don't detach root device volume

Bug #1293695 reported by OpenStack Infra
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
openstack-api-site
Fix Released
Medium
Diane Fleming

Bug Description

https://review.openstack.org/75552
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>

Tags: nova
Tom Fifield (fifieldt)
Changed in openstack-manuals:
status: New → Confirmed
importance: Undecided → Medium
milestone: none → icehouse
Revision history for this message
Tom Fifield (fifieldt) wrote :

This is welcome behaviour.

However, the new return codes need to be documented in api-site.

To solve this bug, add the new return codes and an explanation of when they occur to the right place in the compute api doc

Changed in openstack-manuals:
status: Confirmed → Triaged
affects: openstack-manuals → openstack-api-site
Changed in openstack-api-site:
milestone: icehouse → none
Revision history for this message
Schad (ubuntu-20-schad) wrote :

I object this being a bug. There are valid use cases where you would detach or attach a different root volume while keeping the VM.

Revision history for this message
Schad (ubuntu-20-schad) wrote :

"root device does not make much sense" is an opinion only. I am affected by the correction because I need to detach the root volume from VMs.

Changed in openstack-api-site:
status: Triaged → Opinion
Revision history for this message
Tom Fifield (fifieldt) wrote :

@Schad - this is a documentation bug, the functionality mentioned in the report has already changed in the code. If you think this was a mistake, please open a bug in https://bugs.launchpad.net/nova , referencing this link https://review.openstack.org/75552

Changed in openstack-api-site:
status: Opinion → Triaged
Changed in openstack-api-site:
status: Triaged → Confirmed
Revision history for this message
Diane Fleming (diane-fleming) wrote :
Changed in openstack-api-site:
assignee: nobody → Diane Fleming (diane-fleming)
milestone: none → liberty
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to api-site (master)

Reviewed: https://review.openstack.org/185243
Committed: https://git.openstack.org/cgit/openstack/api-site/commit/?id=a4262001bc6af1ea88ad18843a8d954d6bd9a467
Submitter: Jenkins
Branch: master

commit a4262001bc6af1ea88ad18843a8d954d6bd9a467
Author: Diane Fleming <email address hidden>
Date: Sat May 23 15:19:28 2015 -0500

    Cannot delete a root device volume

    Change-Id: I163a6409ee063ee0e7ea489372d9129cb9ff0012
    Closes-Bug: #1293695

Changed in openstack-api-site:
status: In Progress → Fix Released
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.