Ask Your Question

[Glance] Is it possible to update image content ?

asked 2013-11-06 05:05:59 -0500


i want to replace content of image with other data. I'v tried with

glance image-update 05c5b92b-f83b-4588-86cf-c058553b2209 --file cirros-0.3.0-x86_64-disk.img
but response is
Request returned failure status.
409 Conflict
There was a conflict when trying to complete your request.
 Cannot upload to an unqueued image   (HTTP 409)

Is it possible ?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2013-11-06 06:18:36 -0500

I dont think it is possible. Why don't you delete it and recreate? Or you may try to copy new image manually like this:

cp cirros-0.3.0-x86_64-disk.img /var/lib/glance/images/05c5b92b-f83b-4588-86cf-c058553b2209
edit flag offensive delete link more


I know that it's possible to replace image with cp but only for file storage and i forgot to say that my images are stored in a dedicated RBD pool. :) But, in an image service like glance, do you think that have sense to modify content of an image disk ? In case of disk with QCOW2 format, what if i change the base of the disk ? Thanks. Salvo.

salvorapi gravatar imagesalvorapi ( 2013-11-06 07:52:07 -0500 )edit

Yes that's true. Images are also stored on compute nodes in /var/lib/nova/instances/_base. You should update them too, or delete. Could you please explain why do you need to update image rather then upload new one?

laboshinl gravatar imagelaboshinl ( 2013-11-06 22:33:49 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools



Asked: 2013-11-06 05:05:59 -0500

Seen: 931 times

Last updated: Nov 06 '13