419 Commits

Author SHA1 Message Date
Jason Kölker
f8d10a4bdf all delayed deletes will be going through a new service, if delayed_delete is False, then delete it right away, otherwise set it to pending_delete 2011-06-09 11:50:35 -05:00
Jason Kölker
24d17c1f13 add in delayed delete options 2011-06-08 13:45:31 -05:00
jaypipes@gmail.com
6cedb4c4b2 Add ability to create missing s3 bucket on first post, similar to Swift driver. 2011-06-01 00:08:41 -04:00
jaypipes@gmail.com
799e92ec22 * Adds functional test that works with Amazon S3
* Fixes parsing of "S3 URLs" which urlparse utterly barfs on because
  Amazon stupidly allows forward slashes in their secret keys
* Update /etc/glance-api.conf for S3 settings

Future refactoring:

* Make the cURL API functional test a base test class and
  extend it to allow setting the default store and store settings. There's
  a bit of duplicate code between this new test case and the cURL test
  case, but we can rework it later.
* Document the S3 store (need to do this better with Swift, too)
2011-05-27 19:49:55 -04:00
jaypipes@gmail.com
77054d402c Changes versioned URIs to be /v1/ instead of /v1.0/
Adds middleware that detects versioned URIs and also
detects media types in the Accept: header and attempts
to determine the API controller to return for the
client request.

Adds a bunch of functional test cases for variations
of calling the versioned and unversioned URIs with and
without Accept: headers.
2011-05-11 19:03:51 -04:00
jaypipes@gmail.com
bb13fe4c4a Removed some test config files that slipped in... 2011-05-09 15:01:24 -04:00
jaypipes@gmail.com
1359d6e2cc Fix up find_config_file() to accept an app_name arg. Update all documentation referencing config files. 2011-05-09 14:55:46 -04:00
jaypipes@gmail.com
efa78881eb Adds versioning to Glance's API.
Important notes:

* Split API and Registry configuration files out into 2 files
  Therefore, we need to update the packaging/upstart scripts
  and documentation
* The paste.deploy stuff is now ready to go for pipeline-style
  middleware that is coming with authentication
* /images -> /v1.0/images
* /versions endpoint added
* Split out the starting/stopping of servers into a Server class
  in tests.functional.FunctionalTestCase. This was really useful
  to get different configuration files working well.
2011-05-05 19:12:21 -04:00
jaypipes@gmail.com
5ae168752c Add log_file to example glance.conf 2011-04-19 15:07:07 -04:00
jaypipes@gmail.com
4eaf065305 Updates glance-manage to use configuration files as well
as command line options.

Completes documentation on configuring Glance's servers
and CLI tools.
2011-04-04 13:00:26 -04:00
jaypipes@gmail.com
ee74c26dbd Put account in glance.conf.sample's swift_store_auth_address, use real swift.common.client.ClientException, ensure tests work with older installed versions of Swift (which do not have, for example, swift.common.client.Connection.get_auth method) 2011-03-04 19:02:26 -05:00
jaypipes@gmail.com
a6dcd64d69 Fixes from Rick's review #1 2011-03-01 01:33:26 -05:00
jaypipes@gmail.com
2cf64655da Adds ability for Swift to be used as a full-fledged backend.
Adds POST/PUT capabilities to the SwiftBackend
Adds lots of unit tests for both FilesystemBackend and SwiftBackend
Removes now-unused tests.unit.fakeswifthttp module
2011-02-27 15:54:29 -05:00
Rick Harris
f134884714 Add sql_idle_timeout 2011-02-11 00:12:51 +00:00
jaypipes@gmail.com
2fcb4898cb Fixes for Rick review #2 2011-02-09 16:56:48 -05:00
jaypipes@gmail.com
610499b5ff Changes the server daemon programs to be configured only via
paste.deploy configuration files. Removed ability to configure
server options from CLI options when starting the servers with
the exception of --verbose and --debug, which are useful during
debugging.

Updated the documentation controllingservers.rst.
2011-02-09 15:02:13 -05:00
jaypipes@gmail.com
294228aacb Removes lockfile and custom python-daemon server initialization
in favour of paste.deploy.

We use a solution that is a hybrid of the code in Nova and Swift:

* We continue to use the object-based WSGI Server/Router objects
  in glance.common.wsgi.
* We load options from a configuration file like Swift does, merging
  in the typed options returned from glance.common.config.parse_options()

NOTE: Due to http://trac.pythonpaste.org/pythonpaste/ticket/379, we
removed the CLI option --log-format and use a hard-coded DEFAULT_LOG_FORMAT.
You are still able to adjust the log format using the --log-config-file
option, however, and setting the format string in the log config file.
2011-02-03 10:23:48 -05:00
jaypipes@gmail.com
9b95532069 Adds facilities for configuring Glance's servers via
configuration files.

glance-api, glance-registry, and glance-combined now process
a set of configuration files in order, with options read from
later files overriding values in earlier files:

/etc/glance.cnf
/etc/glance/glance.conf
~/glance.cnf
~/.glance/glance.cnf
./glance.cnf

The new glance.common.config.get_config_file_options() function
processes these config files into a mapping of key/value
option pairs. This mapping can now be passed to the
glance.common.config.parse_options() function as default values

Adds a sample glance.cnf to the etc/ directory
2011-02-02 21:17:38 -05:00
jaypipes@gmail.com
61711e0378 First round of logging functionality:
* Adds option group for logging-only configuration settings
* Adds /etc and /etc/logging.cnf.sample as an example of setting
  up logging configuration directly with a config file
* Adds to glance.common.config a couple function useful in
  adding logging options and setting up the logger(s)

Next round will include the addition of a --debug option and
lots more debugging output to the loggers.
2011-02-01 13:18:40 -05:00