No error/warning raised when attempting to re-upload image data
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
Low
|
Kuo-tung Kao (jelly) |
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://
# glance image-create --name fedora21b --disk-format qcow2 --container-format bare --is-public True --file /tmp/Fedora-
Create some dummy file in /tmp/dummy and modify the image
# virt-copy-in -a Fedora-
Update the image:
#glance image-update --file Fedora-
Verify the image is not updated by comparing the checksum
# md5sum /var/lib/
# md5sum Fedora-
When using --checksum the checksum in the image properties is updated but the the image itself not:
#glance image-update --file Fedora-
Changed in glance: | |
assignee: | nobody → usha veepuri (usha-veepuri) |
Changed in glance: | |
assignee: | usha veepuri (usha-veepuri) → nobody |
Changed in glance: | |
assignee: | nobody → jelly (coding1314) |
Changed in glance: | |
status: | New → Incomplete |
Images are immutable. You cannot change an existing image's bytes.
The image-update command should not be failing silently, it should be detecting that image data is already present (the image is in an active state) and that the --file input cannot be uploaded.