100 Commits

Author SHA1 Message Date
Stuart McLaren
d3e57489d8 Fix for bug 900258 -- add documentation for '--url' glance cli option.
Change-Id: If6e72c159209c073a4941b90c4a31fa054c84cd2
2011-12-05 12:24:25 +00:00
Lorin Hochstein
6bf61e8ce1 Added some examples for "glance add"
Fixed some warnings.

Change-Id: I9658c7458f3073b4bab93d0105d6ba174a4d0ca1
2011-11-29 13:10:50 -05:00
Jenkins
0be6359d28 Merge "Bug#894027: use correct module when building docs" 2011-11-28 03:47:41 +00:00
Jenkins
bf2b9d01b3 Merge "Fixes LP Bug#837817 - bin/glance cache disabled" 2011-11-23 17:08:17 +00:00
Pádraig Brady
03372c77aa Bug#894027: use correct module when building docs
Currently the wrong directory is searched for the
glance module, requiring glance to be installed
in the default system path, for docs to be buildable.
Also the path was appended, so the default system version
which may be completely different is referenced.
This ensures that only local glance files are referenced.

Change-Id: Ia226c90bbd24d7804401a7c9e444387c78a0f542
2011-11-23 15:24:52 +00:00
Paul Bourke
49d67bd505 Adds option to set custom data buffer dir
Implements blueprint custom-disk-buffer

When pushing an image large enough to be chunked into either a Swift
or S3 backend, the chunks are buffered to /tmp.

This change allows a user to define an alternate directory via the
configuration files.

Change-Id: I2660b6e5a76cbfd43834384b129550b66bb9afce
2011-11-22 17:08:32 +00:00
Jay Pipes
8878046089 Fixes LP Bug#837817 - bin/glance cache disabled
This patch removes the cache management commands
from the main bin/glance client and puts them in
a bin/glance-cache-manage program. It also adds
a number of cache management calls to manage the
cache queue via the HTTP API.

The reason I moved the cache management commands
into a separate utility is that I'm thinking towards
the future, where we have a separate admin API, and
having a separate management utility seemed like the
best way to go.

Change-Id: Ic916a72f39516a06be27ea6c8ef69eb9e1a70936
2011-11-15 07:02:02 -05:00
Rick Harris
94dcf3acd0 Using Keystone's new port number 35357.
Fixes bug 888753

Change-Id: I22894a31ee54edd6d00ac3458ea4a2f8842aa4a0
2011-11-10 23:33:45 +00:00
Jay Pipes
2a5a0e9a35 Fixes LP Bug#878411 - No docs for image cache
Adds documentation on managing the image cache

Adds a simple CLI program to queue an image for
caching.

Change-Id: I2b4c9708c521fdcfaf1c6b8f07505e130923c4b7
2011-11-09 13:40:49 -05:00
Jay Pipes
2418efd7b7 Fixes LP Bug#882185 - Document Swift HTTPS default
Documentation should mention Swift auth address
HTTPS by default.

Change-Id: Ibe0fc1c3590961eb4e025a2fc86b54ac82d9d63d
2011-11-01 12:32:53 -04:00
Jay Pipes
dcc884708a Fixes LP Bug#884297 - Install docs should have git
Updated installation docs to reference Git, not Bzr/LP

Change-Id: I166e10efafd8d0941e5239671668841e863718e9
2011-11-01 12:30:14 -04:00
Brian Waldon
ceab6b3ed4 Convert image id value to a uuid
This just changes the value of image.id, leaving the key name alone. We also
enforce image ids provided on an image create be a uuid. Implements
blueprint uuid-image-identifiers

Change-Id: I22ba69550ccbc04a24d680748d60414d2d0f1a99
2011-10-26 21:16:12 -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
Jay Pipes
ad9e9ca3f7 Overhauls the image cache to be truly optional
Fixes LP Bug#874580 - keyerror 'location' when fetch errors
Fixes LP Bug#817570 - Make new image cache a true extension
Fixes LP Bug#872372 - Image cache has virtually no unit test coverage

* Adds unit tests for the image cache (coverage goes from 26% to 100%)
* Removes caching logic from the images controller and places it into
  a removeable transparent caching middleware
* Adds a functional test case that verifies caching of an image
  and subsequent cache hits
* Removes the image_cache_enabled configuration variable, since it's
  now enabled by simply including the cache in the application
  pipeline
* Adds a singular glance-cache.conf to etc/ that replaces the
  multiple glance-pruner.conf, glance-reaper.conf and
  glance-prefetcher.conf files
* Adds documentation on enabling and configuring the image cache

TODO: Add documentation on the image cache utilities, like reaper,
      prefetcher, etc.

Change-Id: I58845871deee26f81ffabe1750adc472ce5b3797
2011-10-19 16:35:35 -04:00
Jenkins
d3a31b372e Merge "Adds SSL configuration params to the client" 2011-10-18 14:48:01 +00:00
Kevin L. Mitchell
5b27c663b9 Better document using Glance with Keystone.
Addresses bug 871803 by expounding on what configuration should
look like.  Also fixes the example config files, which generally
had the authentication setup completely wrong.

Change-Id: I44b2b8bd340ca95b5a2c2e9408797b0308000a65
2011-10-13 17:03:39 +00:00
Jay Pipes
eec5c1afa1 Adds SSL configuration params to the client
* Adds SSL configuration params to all client classes
* Adds unit test for bad SSL client configuration
* Refactors the registry methods to no longer need
  configuration options passed, and to configure the
  registry client once, on images.Controller.__init__
* Adds glance-api.conf options for SSL support in
  registry client connections.
* Adds SSL CA file socket wrappers via a client auth
  HTTPS connection class
* Adds server SSL support, but not functional tests
  for SSL support yet. Still need to research self-signed
  cert generation for tests...
* Updates documentation for bind and startup options
* Adds functional test case for secure communication
  with API server stood up with SSL supprt. Note it is
  not very DRY. There is some DRY cleanup to do in the
  future...

TODO: Integrate options with bin/glance CLI tool

Change-Id: Ie9fcd36337cc93fd5beeabb9186ad5e93ae2a0f0
2011-10-11 16:40:06 -04:00
Josh Durgin
42300518ea Add RBD store backend.
To use this you'll need the latest version of Ceph from git,
which will become version 0.37.

Change-Id: Ia2126395525759eb8c11df055bdc6f286dea97b9
2011-09-29 13:54:19 -07:00
Rick Harris
e7d06e409e Documenting nova_to_os_env.sh tool
Change-Id: I4a416e01e4333b43a75944ace01e8b0abe3ec2a3
2011-09-20 18:06:48 -05:00
Alex Meade
20b7c69758 Added min_disk and min_ram properties to images
Fixes LP Bug#849368

Change-Id: I3e17370537144d117d99af5fa5a21df830b7c7ed
2011-09-20 14:43:35 -04:00
Jay Pipes
e7ec4a1d02 Fixes LP Bug#755916 - Location field shows creds
Removes the Location field from the return of the
API server's GET /images/detail and GET /images/<ID>
calls. The Registry server API was unchanged, as the API
server needs to call the Registry server in order to
find location information...

Change-Id: I914456ad3879f19fa0b55c8a89b8217c193193d8
2011-09-19 14:42:11 -04:00
Brian Waldon
ee8c8ba8f5 Updating image status docs
Fixes lp bug#844932

Change-Id: Iee4571a2ebdd295f4324e02cde65a96fb53aceb9
2011-09-12 20:50:47 -04:00
Adam Gandelman
706a53396c Remove PWD from possible config_file_dirs.
Resolves bug #828719, which can potentially cause problems depending on
what $PWD commands are executed in.

Amendment: Also update documentation accordingly.

Change-Id: Ib2ec4bb07222e51c86b7d8f8ce1dd0e6bb342a64
2011-09-02 13:29:15 -07:00
Jay Pipes
501b14bf94 Fixes LP Bug #827660 - Swift driver fail 5G upload
Fixes LP Bug #827660 - Swift driver fails to
upload image files greater than 5GB. The swift
store driver was not using the large object
manifest methods required to upload objects
greater than 5GB into Swift.

Adds configuration options to specify the
size in MB that an image file should be considered
for large object manifest, and a configurable
chunk size. We use a disk buffer of this size,
adding chunks of the image file into Swift and
then after all chunks are saved, add the manifest
to Swift.

Change-Id: I4b4421aa1bba584ab242016a041e864ef19d0214
2011-08-24 14:38:43 -04:00
Jenkins
4fa35070ce Merge "Add support for shared images" 2011-08-15 21:37:40 +00:00
Kevin L. Mitchell
1e4be06cb2 Add support for shared images
Change-Id: I3822a3841e1c10717c180052f929688b9f21a841
2011-08-15 16:20:49 -05:00
Johannes Erdfelt
091aae8a6d Add notifications for uploads, updates and deletes
Change-Id: I372f77fe2d1a575f2108c9b8d1f69301c0d5eb5e
2011-08-15 19:58:57 +00:00
Brian Waldon
336ec70c67 adding sort_key/sort_dir to details 2011-08-01 20:23:06 -04:00
Brian Waldon
06b9130cdb updating documentation 2011-08-01 04:18:09 -04:00
Brian Waldon
328f978a0f merging trunk 2011-08-01 02:29:09 -04:00
jaypipes@gmail.com
dfc71f44f2 Typo in error condition for create_bucket_on_put, make body seekable in req object, and remove +glance from docs and configs 2011-07-26 10:26:19 -04:00
jaypipes@gmail.com
684d89117e Fixed review stuff from Brian 2011-07-25 13:45:35 -04:00
Brian Waldon
d55c2a3d97 updating client docs 2011-06-21 09:41:06 -04:00
Brian Waldon
3ebfff8ba8 updating docs 2011-06-20 23:52:25 -04:00
Brian Waldon
b9b980cb0a updating docs; adding support for status filter 2011-06-19 14:15:06 -04:00
Donal Lafferty
c54e7bf264 Sync with trunk. 2011-05-26 13:53:48 +01:00
jaypipes@gmail.com
24625ffb74 Fix tiny typo 2011-05-25 16:03:00 -04:00
jaypipes@gmail.com
37b1c2901e Documentation for new results filtering in the API and client. 2011-05-25 11:03:16 -04:00
Donal Lafferty
491c6aab2c Updated doc with 'iso' disk_format. 2011-05-19 10:24:59 +01:00
Donal Lafferty
2ce002b38b Update documentation. 2011-05-19 10:20:54 +01:00
jaypipes@gmail.com
94b9c19c40 Fix merge conflict... 2011-05-11 19:52:06 -04:00
jaypipes@gmail.com
1dc867207f Improve logging configuration docs... 2011-05-11 17:17:50 +00:00
jaypipes@gmail.com
7f6944c816 Doc and docstring fixes from Dan's review 2011-05-10 12:26:29 -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
4db9df77d0 Improve logging configuration docs... 2011-04-26 16:10:33 -07:00
jaypipes@gmail.com
c9a22eeb6c Documentation updates to make glance add command clearer, hopefully :) 2011-04-22 14:54:24 -04:00
Joseph Suh
8b7927c287 chnaged output 2011-04-18 16:30:44 -04:00
jaypipes@gmail.com
6703ba193e OK, fix docs to make it clear that only the string 'true' is allowed for boolean headers. Add False-hood unit tests as well. 2011-04-12 17:45:16 -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
0d7b3bb668 Merge trunk and resolve conflicts 2011-03-23 10:16:10 -04:00