<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/">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">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">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>