add-volume-re-image-api

Registered by Yikun Jiang on 2018-09-26

Currently, users can create a volume with a specific image, but once this
volume is created, the image of this volume can't be changed anymore. If users
want to re-image a specific volume, they can only create a new volume with new
image, and then delete the old volume, which is not very convenient.

In addition, as mentioned in nova bp "volume-backend-server-rebuild" `[1]`_,
if users want to rebuild a volume-backed server, they can complete it by using
re-image api, this way there is no new volume with new volume id, we don't
have to worry about types, quota problem.

So, we need a API to re-image a volume more conveniently.

_`[1]` http://review.openstack.org/#/c/532407

Blueprint information

Status:
Not started
Approver:
Jay Bryant
Priority:
Medium
Drafter:
Yikun Jiang
Direction:
Approved
Assignee:
None
Definition:
Approved
Series goal:
Accepted for stein
Implementation:
Unknown
Milestone target:
None

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/proposes,n,z

Addressed by: https://review.openstack.org/605317
    Add volume re-image api

Gerrit topic: https://review.openstack.org/#q,topic:bp/add-volume-re-image-api,n,z

Addressed by: https://review.openstack.org/606345
    Extra _get_image_metadata into volume utils

Addressed by: https://review.openstack.org/606346
    WIP: volume reimage

Addressed by: https://review.openstack.org/609697
    Extract volume image metadata into volume utils

Addressed by: https://review.openstack.org/610950
    Raise the ImageTooBig exception when found it

Addressed by: https://review.openstack.org/613280
    Extract copy_image_to_volume into volume utils

Addressed by: https://review.openstack.org/639757
    Raise the ImageTooBig exception when found it

(?)

Work Items

Dependency tree

* Blueprints in grey have been implemented.

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.