31 Commits

Author SHA1 Message Date
Jenkins
071a880f24 Merge "Adds Driver Layer to Image Cache" 2011-10-26 17:01:27 +00:00
Brian Waldon
e46c0a6206 Removing glance-upload
The glance-upload tool targets a very specific use-case that is easily
handled by simply using the standard glance client. It's not worth keeping
around. This addresses bug 767344.

Change-Id: Ie7cf42ba517b744a2a440deb15336c0ee372b2e7
2011-10-25 22:11:38 -04:00
Jay Pipes
39c8557434 Adds Driver Layer to Image Cache
Fixes LP Bug#879136 - keyerror: 'image' when doing nova image-list
Fixes LP Bug#819936 - New image cache breaks Glance on Windows

This patch refactors the image cache further by adding an
adaptable driver layer to the cache. The existing filesystem-based
driver that depended on python-xattr and conditional fstab support
has been moved to /glance/image_cache/drivers/xattr.py, and a new
default driver is now based on SQLite and has no special requirements.

The image cache now contains a simple interface for pruning the
cache. Instead of the logic being contained in
/glance/image_cache/pruner.py, now the prune logic is self-contained
within the ImageCache.prune() method, with pruning calling the
simple well-defined driver methods of get_least_recently_accessed()
and get_cache_size().

Adds a functional test case for the caching middleware and adds
documentation on how to configure the image cache drivers.

TODO: cache-manage middleware...
TODO: cache management docs

Change-Id: Id7ae73549d6bb39222eb7ac0427b0083fd1af3ec
2011-10-25 12:54:31 -04:00
Justin Shepherd
8a33e24311 Addresses glance/+spec/i18n
Added gettext.install to glance endpoints, setup.py, and run_tests.py. Wrapped all exceptions in common/exception.py with gettext.

Included fix for bug lp:823676.

Change-Id: Ied4381e1676227afea857acd01f4754e6a181106
2011-08-10 09:09:56 -05:00
Monty Taylor
8f5bd2dc1c Changed setup.py to pull version info from git.
Change-Id: Ifdbdd6b587f5e4d0c255d4ed683bc81aeb8d95e4
2011-08-04 08:51:04 -07:00
Soren Hansen
327f7525c0 Move tests under the glance namespace. 2011-08-03 00:10:52 +02:00
Thierry Carrez
4e0eb7a70f Include bin/glance-scrubber in tarball binaries 2011-07-27 14:56:08 +02:00
Rick Harris
b9dee1abbb Updating setup.py per bin/image_cache removal 2011-07-22 17:26:15 -05:00
Rick Harris
2c9c262163 Moving bin to image_cache/ 2011-07-22 10:57:53 -05:00
Rick Harris
e54deefaff Adding reaper script 2011-07-22 00:53:43 -05:00
Rick Harris
413b32ef8a Adding pruner and prefetcher to setup.py 2011-07-14 12:05:00 -05:00
Andrey Brindeyev
b892a42631 Removed glance-commit 2011-03-21 15:22:26 +03:00
jaypipes@gmail.com
4ec3e0cb1a Adds bin/glance to setup.py 2011-03-01 01:38:34 -05:00
jaypipes@gmail.com
2fcb4898cb Fixes for Rick review #2 2011-02-09 16:56:48 -05:00
Rick Harris
ccfaa82188 Adds glance-combined and glance-manage to setup.py 2011-02-08 12:07:42 -06:00
jaypipes@gmail.com
00ac0d44a6 Makes Glance's versioning non-static. Uses Nova's versioning scheme. 2011-01-27 13:59:49 -06:00
jaypipes@gmail.com
c3ed035bbf Bump version 2011-01-26 19:17:54 -06:00
Monty Taylor
0659d5a5de Make sphinx conditional. 2011-01-25 11:46:03 -08:00
jaypipes@gmail.com
4675f0618d Bump version 2011-01-25 11:02:07 -06:00
jaypipes@gmail.com
cd15f14fc8 Version bump after release 2011-01-24 09:57:49 -05:00
jaypipes@gmail.com
02781962a4 Version bump for release 2011-01-23 13:03:51 -05:00
Rick Harris
a89f94d057 Making glance-upload a first-class binary 2011-01-22 19:35:29 +00:00
jaypipes@gmail.com
9c95aa6122 Duh, it helps to import the class you are inheriting from.... 2011-01-21 13:00:15 -05:00
jaypipes@gmail.com
ea0549f73d Add in manpage installation hook. Thanks Soren :) 2011-01-20 18:49:13 -05:00
Monty Taylor
96ddcc0462 Increase version after release. 2011-01-18 09:31:40 -08:00
Monty Taylor
e1ad853246 Cut 0.1.2. 2011-01-17 14:24:50 -08:00
Cory Wright
386b42c176 More PEP8 fixes 2011-01-04 17:00:37 -05:00
Ewan Mellor
0b3bf98c9d Bug #694382: setup.py refers to parallax-server and teller-server, when these have been renamed
Fix script references, following earlier rename.
2010-12-26 00:36:47 +00:00
jaypipes@gmail.com
6b220dbea1 Packaging fixups 2010-10-21 15:51:44 -04:00
jaypipes@gmail.com
2d922a5e5c libify glance into teller and parallax modules. Make nosetests work by making tests and tests/unit/ into packages. 2010-09-27 18:43:04 -04:00
Monty Taylor
3d69f40135 Added setup.py and sphinx docs. 2010-09-26 00:25:34 -07:00