lp:~jaypipes/glance/refactor-stores
- Get this branch:
- bzr branch lp:~jaypipes/glance/refactor-stores
Branch merges
- Rick Harris (community): Approve
- Jason Kölker (community): Approve
- Brian Waldon (community): Approve
-
Diff: 1982 lines (+660/-508)17 files modifiedglance/api/v1/images.py (+11/-8)
glance/common/exception.py (+14/-0)
glance/store/__init__.py (+90/-48)
glance/store/base.py (+98/-0)
glance/store/filesystem.py (+65/-42)
glance/store/http.py (+34/-23)
glance/store/location.py (+2/-10)
glance/store/s3.py (+81/-74)
glance/store/scrubber.py (+5/-0)
glance/store/swift.py (+77/-72)
tests/functional/test_scrubber.py (+2/-2)
tests/stubs.py (+0/-66)
tests/unit/test_filesystem_store.py (+12/-12)
tests/unit/test_http_store.py (+63/-31)
tests/unit/test_s3_store.py (+44/-53)
tests/unit/test_store_location.py (+18/-14)
tests/unit/test_swift_store.py (+44/-53)
Related bugs
Related blueprints
Recent revisions
- 178. By Jay Pipes
-
Make calling delete on a store that doesn't support it raise an exception, clean up stubout of HTTP store and testing of http store
- 177. By Jay Pipes
-
Add configuration check for Filesystem store on configure(), not every call to add()
- 176. By Jay Pipes
-
Refactor S3 store to make configuration one-time at init versus every method call invocation
- 175. By Jay Pipes
-
Refactor Swift store to make configuration one-time at init versus every method call invocation
- 173. By Jay Pipes
-
Refactors stores to be stateful:
* Creates a new base Store class
* Adds code for new Store modules to "register" with Glance
and ensure that when the Controller(s) are spun up, that
the stateful store objects are all created properly and passed
configuration options. This allows us to refactor a bunch of code
out of the various store adapters that is constantly re-checking
configuration option values during each call to get/add/delete, etcWork TODO:
* Remove the now-unnecessary repetitve option-checking code in the
Swift, S3, and filesystem drivers - 172. By Justin Shepherd
-
Use of "%default" in help string does not work, have to use "%(default)s". Per the 4th example http://
docs.python. org/dev/ library/ argparse. html#prog - 171. By Justin Shepherd
-
Added nose-exclude to pip-requires.
'./run_tests.sh --unittests-only' adds '--exclude-
dir=tests/ functional' to noseargs.
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:~hudson-openstack/glance/trunk