[Openstack-operators] [glance] how to update the contents of an image

Abel Lopez alopgeek at gmail.com
Fri Sep 26 13:43:25 UTC 2014


Glance images are immutable. In order to update it, you should do as you
are doing, but then rename the old image, then upload the updated one. Take
note of the UUID as well.

On Friday, September 26, 2014, Christian Berendt <berendt at b1-systems.de>
wrote:

> I'm trying to update the contents of an image, but it looks like it is
> not working at all.
>
> First I upload a test image:
>
> ---snip---
> # dd if=/dev/urandom of=testing.img bs=1M count=10
> # glance image-create --disk-format raw --container-format bare --name
> TESTING --file testing.img
> ---snap---
>
> Now I want to overwrite the contents of this image:
>
> ---snip---
> # dd if=/dev/urandom of=testing.img bs=1M count=20
> # glance image-update --file testing.img TESTING
> ---snap---
>
> After this call the size of the image is still the same like before
> (10485760 bytes).
>
> I do not have issues in the logfiles of glance-api and glance-registry.
>
> What am I doing wrong?
>
> Is it not possible to update the contents of an image?
>
> Christian.
>
> --
> Christian Berendt
> Cloud Solution Architect
> Mail: berendt at b1-systems.de <javascript:;>
>
> B1 Systems GmbH
> Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de
> GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537
>
> _______________________________________________
> OpenStack-operators mailing list
> OpenStack-operators at lists.openstack.org <javascript:;>
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20140926/50168199/attachment.html>


More information about the OpenStack-operators mailing list