147 Commits

Author SHA1 Message Date
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
Rick Harris
796674c719 Adding __protected_attributes__, some PEP8 cleanups 2010-12-23 13:20:52 -06:00
jaypipes@gmail.com
33d54d9f2c review fixes 2010-12-23 12:31:47 -05:00
jaypipes@gmail.com
2406386809 Update sphinx conf to match other OpenStack projects 2010-12-22 12:52:15 -05:00
jaypipes@gmail.com
f32a2eadb0 Documentation cleanup. Splits out index.rst into multiple section docs. 2010-12-22 12:38:54 -05:00
Rick Harris
7cfe9e0904 Converting to datetime before saving image 2010-12-22 11:36:26 -06:00
jaypipes@gmail.com
faab96fda7 Enhances POST /images call to, you know, actually make it work...
Contains Rick's additions as well.
2010-12-21 16:07:03 +00:00
jaypipes@gmail.com
b1430797ec Merge Rick's additions branch and make tiny fixups 2010-12-21 10:07:16 -05:00
Rick Harris
d4bb114194 Make directory for filesystem backend 2010-12-20 23:30:04 -06:00
jaypipes@gmail.com
549c3455c9 doing the merge of this again...somehow the trunk branch never got rev26 :( 2010-12-20 19:01:53 +00:00
jaypipes@gmail.com
cff6301bc1 Adds POST /images work that saves image data to a store backend 2010-12-20 13:38:56 -05:00
jaypipes@gmail.com
c566d9b77d Update docs for adding image... 2010-12-20 12:12:46 -05:00
jaypipes@gmail.com
410aa56350 Fix Chris minor nit on docstring 2010-12-20 12:12:35 -05:00
jaypipes@gmail.com
9c2a8f25d9 Fixes binaries, updates WSGI file to more recent version from Nova, and fixes an issue in SQLAlchemy API that was being hidden by stubs and only showed up when starting up the actual binaries and testing... 2010-12-18 13:00:21 -05:00
jaypipes@gmail.com
e1aaaa8f04 Major refactoring... 2010-12-17 16:37:06 +00:00
jaypipes@gmail.com
344828cc3d Fix testing/debug left in 2010-12-16 18:19:23 -05:00