How to force nova to boot an updated glance image?

Asked by Vangelis Tasoulas

I have an image, on which I make some modifications (adding some files and packages) and eventually I run the following command to update it:

glance image-update --size <the new size as taken from stat output> <UUID>

This will update the size and the updated_at properties of the image, but the next time I try to boot a VM based on the updated image, it will still boot from the base image cached in the common storage (the previous one which is not updated).

How can I force nova to re-download the latest image from the glance server?

Question information

Language:
English Edit question
Status:
Solved
For:
Glance Edit question
Assignee:
No assignee Edit question
Solved by:
Stuart McLaren
Solved:
Last query:
Last reply:
Revision history for this message
Best Stuart McLaren (stuart-mclaren) said :
#1

I don't think that functionality is supported. Images are immutable.
The latest code (should) prevent updating the size parameter.
You'll need to upload a new image.

Revision history for this message
Vangelis Tasoulas (cyberang3l) said :
#2

Well, it's good to know then :)

Thanks for the reply!

Revision history for this message
Vangelis Tasoulas (cyberang3l) said :
#3

Thanks Stuart McLaren, that solved my question.