[nova] Support adding/changing delete_on_termination in volume attach api
Matt Riedemann
mriedemos at gmail.com
Mon Mar 4 18:04:01 UTC 2019
On 3/3/2019 9:20 PM, Brin Zhang(张百林) wrote:
> Hi all:
>
> Currently, you can set the "delete_on_termination" field to
> the rood disk when creating the server. You can delete the root disk
> when you delete the server. However, this configuration item cannot be
> updated, so here we propose a scheme that can modify the
> "delete_on_termination" configuration item, such as [1].
>
> In addition, the data volume of the instance should be allowed to be set
> whether it can be deleted when it is deleted to clean up the environment
> and free up storage space, such as [2].
>
> These are the more consistent and strongly added requirements from our
> various OpenStack users.
>
> Thank you, looking forward to your reply.
>
> [1] https://review.openstack.org/#/c/580336/
>
> [2] https://review.openstack.org/#/c/612949/
>
> Brin Zhang
>
As you know we discussed this at the Forum in Berlin (I know you were
not there but you know about the notes in the etherpad). Can you
summarize the output of those discussions and what, if anything, it
changed about the proposed specs?
The specs are targeted at Stein, and we are closed for new specs in
Stein so those will have to be re-targeted to Train.
Finally, I was thinking about this recently in regards to the root
volume attach/detach change that is proposed because that does not
change delete_on_termination when attaching a new root volume, so could
be a case for [2] above. In other words, I could boot from volume and
say delete_on_termination=True for the root volume (maybe because nova
creates it and I do not care to preserve it when the server is gone),
detach the root volume and attach a new volume, and now want that
delete_on_termination flag to be False. So that might further justify
this change.
--
Thanks,
Matt
More information about the openstack-discuss
mailing list