162 Commits

Author SHA1 Message Date
jaypipes@gmail.com
d0e32336aa Removes Twisted from tools/install_venv.py and zope.interface from tools/pip-requires. Shaved a full 45 seconds for me off of run_tests.sh -V -f now we're not downloading a giant Twisted tarball... 2011-01-20 14:48:11 -05:00
jaypipes@gmail.com
9f0b0a436b Remove last little vestiges of twisted. 2011-01-20 14:37:42 -05:00
Soren Hansen
ba666b06c6 Add run_tests.py to tarball. 2011-01-20 15:56:19 +00:00
Soren Hansen
51878645d1 Also include run_tests.py in tarball. 2011-01-20 11:13:46 +01:00
jaypipes@gmail.com
bd035dfd10 Fixes bug #696375: x-image-meta-size not optional despite documentation saying so. 2011-01-19 20:41:21 +00:00
jaypipes@gmail.com
96eb80f589 PEP8 fixes in /glance/store/__init__.py
Also makes run_tests.sh automatically call pep8.
Pulls in Nova's run_tests.py wrapper for prettying
up output from nosetests...
2011-01-19 14:22:41 -05:00
jaypipes@gmail.com
4d0f6da88b Fix Bug #704038: Unable to start or connect to register server on anything other than 0.0.0.0:9191 2011-01-19 19:16:19 +00:00
jaypipes@gmail.com
c9d93d2219 Fix Bug #704038: Unable to start or connect to register server on anything other than 0.0.0.0:9191 2011-01-18 16:01:49 -05:00
Monty Taylor
9767165098 upgrade version... 2011-01-18 18:41:18 +00:00
jaypipes@gmail.com
56fa9a39bf Fixes Bug#696375: x-image-meta-size is not optional, contrary to
documentation. 

The image's size is set to zero now during reservation of the image ID if the
image's size is not passed in with headers. In addition,
glance.store.Backend.add() now returns a tuple of (location, size) and
the image's size attribute in the registry is updated to this value if 
previously set to zero.

Adds a new test case that ensures the size attribute is set properly
when not included in the image meta headers.

Adds documentation for the new _reserve(), _upload(), and _activate()
methods in glance.server.Controller.
2011-01-18 12:58:23 -05:00
jaypipes@gmail.com
f73ee950a1 Merge trunk 2011-01-18 12:48:42 -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
Monty Taylor
c4815119a2 Files missing from the tarball (and you probably need to cut a 0.1.2.) 2011-01-17 22:21:20 +00:00
jaypipes@gmail.com
14cc5df1cc Cleanup of RST documentation and addition of docs on an image's status 2011-01-17 13:09:14 -05:00
Monty Taylor
bdb2f2209b Include some files that were left out. 2011-01-15 12:02:31 -08:00
jaypipes@gmail.com
0afe4cc554 Implements the S3 store to the level of the swift store.
This branch is Chris' work with a merge of trunk, fix of merge conflicts from trunk, and moving the import of boto into a conditional block so tests can run with the fakes when boto is not installed on the local machine.
2011-01-14 22:11:34 +00:00
jaypipes@gmail.com
9d107d234a Merge trunk, resolve conflicts, and move import of boto into conditional block to prevent import errors when running tests and not having boto installed. 2011-01-14 14:32:52 -05:00
jaypipes@gmail.com
18d6cf8b32 fixes bug698318.
Work done by Ewan Mellor; I just fixed a conflict after merging trunk...
2011-01-13 17:16:24 +00:00
jaypipes@gmail.com
b2cd2b0c3d Merge trunk and resolve conflict in server.py 2011-01-13 12:03:04 -05:00
Christopher MacGown
14ca119e29 Fixes suggested by JayPipes review. Did not modify docstrings in non-related files. 2011-01-12 22:03:54 +01:00
Rick Harris
1f4a644e61 This merge is in conjunction with lp:~rconradharris/nova/xs-snap-return-image-id-before-snapshot
The patch does the following:

  * Image Create (POST) is broken up into 3 steps (reserve, upload and activate); reserve is used to allow the OpenStack API to return metadata about an image where the data has not been uploaded yet
  * Image Update (PUT) now takes image data as the request body and metadata as headers (just like POST); state is enforced so that image data can only be uploaded once.
  * Image statuses were changed to match the OpenStack API (queued, saving, active, killed); NOTE: preparing is not used
  * update_image and add_image client calls now return metadata instead of just the id
2011-01-12 16:31:29 +00:00
Rick Harris
21cea9c5e6 Updating docs 2011-01-11 11:34:48 -06:00
Rick Harris
f62a676159 Merging trunk 2011-01-11 11:04:14 -06:00
Cory Wright
5048e3fc48 Clean up the rest of Glance's PEP8 problems. 2011-01-10 16:57:03 +00:00
Rick Harris
6880a7a764 PEP-8 Fixes 2011-01-07 00:13:33 -06:00
Rick Harris
19e411bc48 Fixing eventlet-raise issue 2011-01-06 19:14:53 -06:00
Ewan Mellor
4b924c9618 Bug #698316: Glance reads the whole image into memory when handling a POST
/images request

Change the store API so that add takes a file-like object, not a string.
This avoids loading the whole request body into memory before writing it out,
and allows us to stream it instead.
2011-01-06 21:24:17 +00:00
Rick Harris
0465f1810f Merging trunk 2011-01-05 11:47:18 -06:00
Christopher MacGown
3095add3b4 Merge in upstream to avoid merge conflict. 2011-01-05 11:02:36 +01:00
Christopher MacGown
71650ebbba Fixed pylint/pep8 for glance.store.s3 2011-01-05 10:56:58 +01:00
Christopher MacGown
786f000b39 Implement S3 to the level of swift 2011-01-05 10:47:21 +01:00
Rick Harris
cb5d4fd2e8 removing old methods 2011-01-04 18:16:53 -06:00
Rick Harris
b09e9c9600 refactoring so update can take image_data 2011-01-04 18:06:31 -06:00
Cory Wright
386b42c176 More PEP8 fixes 2011-01-04 17:00:37 -05:00
Ewan Mellor
eff29fca5d Fix all Glance's pep8 problems. 2011-01-04 20:32:07 +00:00
Ewan Mellor
87432b2ecd Remove incorrect doccomments about there being a default for the host
parameter, fix misdocumented default port, and remove handling of missing
parameters in BaseClient, because the values are always specified by the
subclass's __init__.
2011-01-04 16:27:06 +00:00
Ewan Mellor
f11c8c4c07 Bug #696385: Glance is not pep8-clean
Fix all Glance's pep8 problems.
2011-01-02 02:47:59 +00:00
Ewan Mellor
30e66f20ae Bug #696382: Glance client parameter defaults misdocumented
Remove incorrect doccomments about there being a default for the host
parameter, fix misdocumented default port, and remove handling of missing
parameters in BaseClient, because the values are always specified by the
subclass's __init__.
2011-01-02 02:26:58 +00:00
jaypipes@gmail.com
39e1a3cc44 Fixes a number of things that came up during initial
coding of the admin tool:

    * Fix client constructor to behave like httplib.HTTPConnection
      instead of accepting a URL, it now accepts host, port, and
      use_ssl boolean switch that turns on HTTPSConnection
    * Adds headers properly to the request in client.do_request().
      Previously, was erroneously calling httplib.HTTPConnection.putheader
      after calling httplib.HTTPConnection.request, which was incorrect
    * Now returns type and size of images in index
    * Webob.Response and httplib.HTTPResponse have slightly different
      ways of accessing headers. Fixed an attribute error that was coming
      up because the tests assume webob.
2010-12-28 02:11:57 +00:00
jaypipes@gmail.com
e47ac364b7 Made review changes from Rick. 2010-12-27 15:03:03 -05:00
jaypipes@gmail.com
dd53fa3d05 Duh, use_ssl should not use HTTPConnection... 2010-12-26 00:38:17 -05:00
jaypipes@gmail.com
07c4d00ed3 Remove final debugging statement 2010-12-26 00:02:58 -05:00
jaypipes@gmail.com
7cf673e746 merge trunk 2010-12-25 23:57:40 -05:00
jaypipes@gmail.com
b88d69f504 Remove debugging statements 2010-12-25 23:56:10 -05:00
jaypipes@gmail.com
91bdb5e18d Fixes a number of things that came up during initial
coding of the admin tool:

* Fix client constructor to behave like httplib.HTTPConnection
  instead of accepting a URL, it now accepts host, port, and
  use_ssl boolean switch that turns on HTTPSConnection
* Adds headers properly to the request in client.do_request().
  Previously, was erroneously calling httplib.HTTPConnection.putheader
  after calling httplib.HTTPConnection.request, which was incorrect
* Now returns type and size of images in index
* Webob.Response and httplib.HTTPResponse have slightly different
  ways of accessing headers.  Fixed an attribute error that was coming
  up because the tests assume webob.
2010-12-25 23:50:01 -05:00
Ewan Mellor
a7fb5e7d6c fix bug 694382 2010-12-26 04:11:54 +00: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
25d073136e documentation cleanup and matching to other OpenStack projects. Glance is no longer the red-headed documentation stepchild in OpenStack... 2010-12-23 19:57:00 +00:00
Rick Harris
812ef4e99f Converts timestamp attributes to datetime objects before persisting.
Refactors image_update and image_create to use the same basic code.
2010-12-23 19:41:59 +00:00