Failed to detach volume cause of root device attribute
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Description
===========
At first use one volume as bootable device for the instance,
then use another attached bootable volume as the instance's
bootable device.
But when detaching the first volume from the instance,
got error.
Steps to reproduce
==================
* Boot instance vm01 from volume vol01
* Create another volume vol02 from image, update 'bootable' is true
* Shutoff vm01
* Attach vol02 to vm01
* Update 'bootable' of vol01 to false
* Start vm01
* Detach vol01 from vm01
Expected result
===============
Detach successfully
Actual result
=============
Failed to detached
Environment
===========
1. Exact version of OpenStack you are running.
# dpkg -l | grep nova
ii nova-api 2:16.1.
ii nova-common 2:16.1.
ii nova-conductor 2:16.1.
ii nova-consoleauth 2:16.1.
ii nova-consoleproxy 2:16.1.
ii nova-doc 2:16.1.
ii nova-placement-api 2:16.1.
ii nova-scheduler 2:16.1.
ii python-nova 2:16.1.
ii python-novaclient 2:9.1.1-
2. Which hypervisor did you use?
Libvirt + KVM
2. Which storage type did you use?
Ceph
3. Which networking type did you use?
Neutron with OpenVSwitch
Logs & Configs
==============
Forbidden: Can't detach root device volume (HTTP 403) (Request-ID: req-c6957e61-
This isn't a bug. Detaching the root volume/device from a volume-backed server is not supported at this time. That feature is being proposed for the Stein release though:
https:/ /review. openstack. org/#/c/ 600628/