lp://staging/~dan-prince/glance/fix_update_props
- Get this branch:
- bzr branch lp://staging/~dan-prince/glance/fix_update_props
Branch merges
- Rick Harris (community): Approve
- Jay Pipes (community): Approve
-
Diff: 71 lines (+32/-0)3 files modifiedbin/glance (+2/-0)
glance/registry/db/api.py (+1/-0)
tests/functional/test_curl_api.py (+29/-0)
Related bugs
Related blueprints
Branch information
Recent revisions
- 106. By Dan Prince
-
Update the docs in bin/glance so that help for the 'update' command states
that metadata not specified will be deleted. - 101. By Jay Pipes
-
Ensure we don't ask the backend store to delete an image if the image is in a queued or saving state, since clearly the backend state has yet to completely store the image.
- 100. By Dan Prince
-
Updates to the Registry API such that only external requests to
update image properties purge existing properties. The update_image
call now contains an extra flag to purge_props which is set to
True for external requests but False internally.This resolves with revision 99 where Glance API incidentally deleted
image metadata when uploading new images. - 99. By Dan Prince
-
Update the glance registry so that it marks properties as deleted if they are no longer exist when images are updated.
- 98. By Jay Pipes
-
Simple one.. just add back the Changelog I removed by accident in r94. Fixes bug #742353
- 97. By Jay Pipes
-
Adds checksumming to Glance.
When adding an image (or uploading an image during PUT operations),
you may now supply an optional X-Image-Meta-Checksum header. When
storing the uploaded image, the backend image stores now are required
to return a checksum of the data they just stored. The optional
X-Image-Meta-Checksum header is compared against this generated checksum
and returns a 409 Bad Request if there is a mismatch.The ETag header is now properly set to the image's checksum now
for all GET /images/<ID>, HEAD /images/<ID>, POST /images and
PUT /images/<ID> operations.Adds unit tests verifying the checksumming behaviour in the API, and
in the Swift and Filesystem backend stores.Includes migration script.
NOTE: This does not include the DB migration script. Separate bug will be filed for that.
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp://staging/~glance-coresec/glance/cactus-trunk