<div dir="auto">Please do not default to deleting it, otherwise someone will eventually be back here asking why an irate user has just lost data. The better scenario is that the rebuild will fail (early - before impact to the running instance) with a quota error.<div dir="auto"><br></div><div dir="auto">Cheers,</div></div><br><div class="gmail_quote"><div dir="ltr">On Thu., 15 Mar. 2018, 00:46 Matt Riedemann, <<a href="mailto:mriedemos@gmail.com">mriedemos@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 3/14/2018 3:42 AM, 李杰 wrote:<br>
><br>
>              This is the spec about  rebuild a instance booted from<br>
> volume.In the spec,there is a<br>
>        question about if we should delete the old root_volume.Anyone who<br>
> is interested in<br>
>        booted from volume can help to review this. Any suggestion is<br>
> welcome.Thank you!<br>
>        The link is here.<br>
>        Re:the rebuild spec:<a href="https://review.openstack.org/#/c/532407/" rel="noreferrer noreferrer" target="_blank">https://review.openstack.org/#/c/532407/</a><br>
<br>
Copying the operators list and giving some more context.<br>
<br>
This spec is proposing to add support for rebuild with a new image for<br>
volume-backed servers, which today is just a 400 failure in the API<br>
since the compute doesn't support that scenario.<br>
<br>
With the proposed solution, the backing root volume would be deleted and<br>
a new volume would be created from the new image, similar to how boot<br>
from volume works.<br>
<br>
The question raised in the spec is whether or not nova should delete the<br>
root volume even if its delete_on_termination flag is set to False. The<br>
semantics get a bit weird here since that flag was not meant for this<br>
scenario, it's meant to be used when deleting the server to which the<br>
volume is attached. Rebuilding a server is not deleting it, but we would<br>
need to replace the root volume, so what do we do with the volume we're<br>
replacing?<br>
<br>
Do we say that delete_on_termination only applies to deleting a server<br>
and not rebuild and therefore nova can delete the root volume during a<br>
rebuild?<br>
<br>
If we don't delete the volume during rebuild, we could end up leaving a<br>
lot of volumes lying around that the user then has to clean up,<br>
otherwise they'll eventually go over quota.<br>
<br>
We need user (and operator) feedback on this issue and what they would<br>
expect to happen.<br>
<br>
--<br>
<br>
Thanks,<br>
<br>
Matt<br>
<br>
__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</blockquote></div>