← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1403003] [NEW] Updating an image by uploading a new file doesn't update the image

 

Public bug reported:

When modifying an image file and then updating the image by using glance  image-update --file <filename> <Image Name>
doesn't update the image 

How to reproduce
================
Download an image and upload it:

# wget http://download.fedoraproject.org/pub/fedora/linux/releases/21/Cloud/Images/x86_64/Fedora-Cloud-Base-20141203-21.x86_64.qcow2
# glance image-create --name fedora21b --disk-format qcow2  --container-format bare --is-public True --file /tmp/Fedora-Cloud-Base-20141203-21.x86_64.qcow2

Create some dummy file in /tmp/dummy and modify the image
#  virt-copy-in -a Fedora-Cloud-Base-20141203-21.x86_64.qcow2 /tmp/dummy /etc

Update the image:
#glance image-update --file Fedora-Cloud-Base-20141203-21.x86_64.qcow2  fedora21

Verify the image is not updated by comparing the checksum
# md5sum /var/lib/glance/images/bd84ac96-c2a8-4268-a19c-a0e69c703baf
# md5sum Fedora-Cloud-Base-20141203-21.x86_64.qcow2

When using --checksum the checksum in the image properties is updated but the the image itself  not:
#glance image-update --file Fedora-Cloud-Base-20141203-21.x86_64.qcow2 --checksum 2c98b17b3f27d14e2e7a840fef464cfe fedora21

** Affects: glance
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1403003

Title:
  Updating an image by uploading a new file doesn't update the image

Status in OpenStack Image Registry and Delivery Service (Glance):
  New

Bug description:
  When modifying an image file and then updating the image by using glance  image-update --file <filename> <Image Name>
  doesn't update the image 

  How to reproduce
  ================
  Download an image and upload it:

  # wget http://download.fedoraproject.org/pub/fedora/linux/releases/21/Cloud/Images/x86_64/Fedora-Cloud-Base-20141203-21.x86_64.qcow2
  # glance image-create --name fedora21b --disk-format qcow2  --container-format bare --is-public True --file /tmp/Fedora-Cloud-Base-20141203-21.x86_64.qcow2

  Create some dummy file in /tmp/dummy and modify the image
  #  virt-copy-in -a Fedora-Cloud-Base-20141203-21.x86_64.qcow2 /tmp/dummy /etc

  Update the image:
  #glance image-update --file Fedora-Cloud-Base-20141203-21.x86_64.qcow2  fedora21

  Verify the image is not updated by comparing the checksum
  # md5sum /var/lib/glance/images/bd84ac96-c2a8-4268-a19c-a0e69c703baf
  # md5sum Fedora-Cloud-Base-20141203-21.x86_64.qcow2

  When using --checksum the checksum in the image properties is updated but the the image itself  not:
  #glance image-update --file Fedora-Cloud-Base-20141203-21.x86_64.qcow2 --checksum 2c98b17b3f27d14e2e7a840fef464cfe fedora21

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1403003/+subscriptions


Follow ups

References