Cannot expand root volume by EC2 API
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Won't Fix
|
Medium
|
Unassigned |
Bug Description
AWS provides a scenario to expand volumes of an instance (http://
1 Stop the instance
2 Create a snapshot of the volume
3 Create a new volume from the snapshot
4 Detach the old volum
5 Attach the new volume using the same device name
6 Start the instance
In Nova this works for non-root devices, but doesn't for a root device.
Now in current version (Juno) since https:/
$ nova volume-detach inst 02f60d80-
ERROR (Forbidden): Can't detach root device volume (HTTP 403) (Request-ID: req-e25134dc-
Before this commit it was able, but it was unable to attach the root volume back.
tags: | added: ec2 |
Changed in nova: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in nova: | |
assignee: | Boden R (boden) → nobody |
My initial approximation of this issue, is that we should update the changes made under https:/ /review. openstack. org/#/c/ 75552/ (Don't detach root device volume) to take into account the server state.
That is, if the server (VM) is stopped, then permit the root device detach. If the server is running, then do not permit the root device detach.
Comments on this approach are welcome.