Hi Openstack Discuss,
I have an issue with nova not synchronizing changes between a glance image and it's local image meta information in nova.
I have updated a glance image with the property "hw_rng_model=virtio", and that successfully passes that to new instances created using the updated image. However existing instances do not receive this new property.
I have located the image metadata within the nova database, in the **instance_system_metadata** table, and can see it's not updated for the existing instances, and only adding the relevant rows for instances that are created when that property is present. The key being "image_hw_rng_model" and "virtio" being the value.
Is there a way to tell nova to update the table for existing instances, and synchronizing the two databases? Or is this the kind of thing that would need to be done *shudder* manually...?
If so, are there any experts out there who can point me to some documentation on doing this correctly before I go butcher a couple of dummy nova database?
On Mon, 2019-08-26 at 18:18 +1200, Jordan Ansell wrote: this is idealy not something you would do at all. nova create a local copy of the image metadata the instace was booted with intionally to not pick up chagne you make to the image metadata after you boot the instance. in some case those change could invalidate the host the image is on so it in general in not considerd safe to just sync them for the random number generator it should be ok but if you were to add a trait requirement of alter the numa topology then it could invalidate the host as a candiate for that instance. so if you want to do this then you need to update it manually as nova is working as intended by not syncing the data. there is no docs for doing this as it is not a supported feature. you are circumventing a safty feature we have in nova to prevent change to running instances after they are first booted by change to the flavor extra spec or image metadata.
Regards, Jordan