<div dir="ltr">Hi Ondrej,<div>the following spec tries to address the issue that you described.</div><div><a href="https://review.openstack.org/#/c/508133/">https://review.openstack.org/#/c/508133/</a><br></div><div><br></div><div>Let me know if you have comments/suggestions.</div><div><br></div><div>cheers,</div><div>Belmiro</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 12, 2018 at 2:31 PM, Ondrej Vaško <span dir="ltr"><<a href="mailto:ondrej.vaskoo@gmail.com" target="_blank">ondrej.vaskoo@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hello guys,</div><div><br></div><div>I am dealing with one issue and that is a question <b>What is the right approach for updating openstack glance images?</b></div><div><br></div><div>When new version of cloud image comes out, for example <a href="https://cloud-images.ubuntu.com/xenial/current/" target="_blank">Ubuntu cloud images</a>, I want to update old openstack glance image with that new cloud image (As currently urged with Spectre mitigation update). I see several possibilities:</div><div><ol><li>Create new image with different name.<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Downside is that I will have many images of same distribution and release with different updates/kernel and tenants wouldn't know which to use. Also there will be additional disk space used.<br></blockquote></li><li>Create new image with same name as old image and delete the old one (I think a lot of people is doing it like that).<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Downside is that instances which used the old image will have empty image name in horizon and rebuild or other operations may not be working. Basically the `<b>image_ref`</b> column in nova.instances is pointing to UUID of old image and all operations with this UUID will potentially fail.<br></blockquote></li><li>Create new image with different name but hide old image by making it private and with no members.<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hacky way and other issues us above.<br></blockquote></li><li>Create new image, delete the old one and change column `<b>image_ref</b>` in nova database table instances using the old one to new one.<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hacky way and possible negative impact.<br></blockquote></li></ol><div>Also notice that API function for <a href="https://developer.openstack.org/api-ref/image/v2/index.html#upload-binary-image-data" target="_blank">glance upload</a> is working only for images with status <b>queued</b> and cannot be used.<br></div><div><br></div><div>So is there a preferred way to update glance image to new or is this still an open and not addressed issue?<br></div><div><br></div></div><div>I found similar openstack mailing list conversation in <a href="https://lists.gt.net/openstack/operators/41507" target="_blank">this link</a>, but no systematic answer was there so I am asking again here after 3 years.<br></div><div><br></div><div>Thank you forward for your shared insight, advices and experiences.<br></div></div>
<br>______________________________<wbr>_________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" rel="noreferrer" target="_blank">http://lists.openstack.org/<wbr>cgi-bin/mailman/listinfo/<wbr>openstack</a><br>
Post to : <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" rel="noreferrer" target="_blank">http://lists.openstack.org/<wbr>cgi-bin/mailman/listinfo/<wbr>openstack</a><br>
<br></blockquote></div><br></div>