Ask Your Question

How to update an image using glance?

asked 2014-10-14 14:06:17 -0500

cnkcb gravatar image

updated 2014-10-15 08:48:37 -0500

I have a rather old image of precise, and would like to update it from so dist-upgrade on a new VM won't be so painful. I downloaded the image, and tried to update it using this command line;

glance image-update --file precise-server-cloudimg-amd64-disk1.img precise-server-cloudimg-amd64

The command completes immediately and dumps the image details, but neither the size or checksum have changed. Also, an immediate;

glance image-list

shows the Status as 'active'. So it seems the image-update really doesn't do what I'm expecting. I found a bug in launchpad that describes this as well.

I'm basing this on the docs, which say;

--file FILE            Local file that contains the disk image to be uploaded during the update.

I've checked /var/log/glance/api.log and there is no information there. The file is empty, and does not change when I run this command.

Am I doing something wrong, or is there a workaround?

edit retag flag offensive close merge delete


Found a similar, but not identical question and it has no real answer.

cnkcb gravatar imagecnkcb ( 2014-10-15 08:43:58 -0500 )edit

These othertwo indicate images are immutable.

cnkcb gravatar imagecnkcb ( 2014-10-15 08:45:33 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2014-10-15 12:50:30 -0500

larsks gravatar image

To the best of my knowledge, you can't "update" the contents of an image. It is likely a number of problems would crop up if that were possible -- such as a "known good" configuration suddenly running into problems because the underlying image was changed in an unexpected fashion.

The normal process for providing a new version of an image is to simply delete or rename the existing one, and then upload a new one with the desired image name.

edit flag offensive delete link more


Actually with the v2 api you can have an abstraction layer on an image. You can update the backing image file without having image id's change

Its actually pretty cool, but i see very little documentation on it.

SamYaple gravatar imageSamYaple ( 2014-10-15 12:54:47 -0500 )edit

Is this the members functionality, or something else?

larsks gravatar imagelarsks ( 2014-10-15 13:04:38 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-10-14 14:06:17 -0500

Seen: 4,247 times

Last updated: Oct 15 '14