lp:~jaypipes/glance/checksum
- Get this branch:
- bzr branch lp:~jaypipes/glance/checksum
Branch merges
- Cory Wright (community): Approve
- Jay Pipes (community): Approve
- Rick Harris (community): Approve
- Thierry Carrez (community): Approve (ffe)
- Sandy Walsh (community): Approve
- Chuck Thier: Pending requested
-
Diff: 1005 lines (+351/-129)16 files modifieddoc/source/glanceapi.rst (+20/-0)
glance/client.py (+4/-1)
glance/registry/db/api.py (+1/-1)
glance/registry/db/migrate_repo/versions/004_add_checksum.py (+80/-0)
glance/registry/db/models.py (+1/-0)
glance/registry/server.py (+21/-8)
glance/server.py (+70/-40)
glance/store/__init__.py (+0/-37)
glance/store/filesystem.py (+12/-21)
glance/store/swift.py (+1/-1)
tests/functional/__init__.py (+2/-2)
tests/functional/test_curl_api.py (+2/-1)
tests/stubs.py (+6/-1)
tests/unit/test_api.py (+103/-5)
tests/unit/test_filesystem_store.py (+11/-5)
tests/unit/test_swift_store.py (+17/-6)
Related bugs
Related blueprints
Recent revisions
- 88. By Jay Pipes
-
Uhhhm, stop_servers() should stop servers, not start them! Thanks to Cory for uncovering this copy/paste fail.
- 87. By Jay Pipes
-
Fix up test case after merging in bug fixes from trunk... expected results were incorrect in curl test
- 80. 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.
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:~glance-coresec/glance/cactus-trunk