← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1370384] [NEW] Cannot expand root volume by EC2 API

 

Public bug reported:

AWS provides a scenario to expand volumes of an instance (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-expand-volume.html). It consist of:
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://review.openstack.org/#/c/75552/ was merged it's not able to
detach root volume at all.

$ nova volume-detach inst 02f60d80-47ee-47ed-a795-cb4d05f5103e
ERROR (Forbidden): Can't detach root device volume (HTTP 403) (Request-ID: req-e25134dc-1330-4fe1-9d21-abc274e75a1d)

Before this commit it was able, but it was unable to attach the root
volume back.

** Affects: nova
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1370384

Title:
  Cannot expand root volume by EC2 API

Status in OpenStack Compute (Nova):
  New

Bug description:
  AWS provides a scenario to expand volumes of an instance (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-expand-volume.html). It consist of:
  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://review.openstack.org/#/c/75552/ was merged it's not able to
  detach root volume at all.

  $ nova volume-detach inst 02f60d80-47ee-47ed-a795-cb4d05f5103e
  ERROR (Forbidden): Can't detach root device volume (HTTP 403) (Request-ID: req-e25134dc-1330-4fe1-9d21-abc274e75a1d)

  Before this commit it was able, but it was unable to attach the root
  volume back.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1370384/+subscriptions


Follow ups

References