299 Commits

Author SHA1 Message Date
iccha.sethi
d35bcee6ab Add upload policy for glance v2 api
Related to bug 1250918

There currently exists no check in set_data function for glance
api v2 in the policy layer. This patch adds upload_image policy.

DocImpact

Change-Id: Ibccc78f8bccff3baa5aca574cf17bd14c5403ca2
2013-11-25 12:42:44 +00:00
Fei Long Wang
5ebf2e0b9b Adding an image status transition diagram for dev doc
Now there is no image status transition diagram in the dev
doc, this patch will add one and keep the image source as
a dot file so that it can be updated easily in the future.
See http://www.graphviz.org to get more info about .dot file.

Fixes bug 1244995

Change-Id: I076c461f688be93eab8d3d1fa541990d7b79da5e
2013-11-25 13:13:56 +08:00
Jenkins
94aad9ec7d Merge "glance-manage should work like nova-manage" 2013-11-15 00:53:13 +00:00
AmalaBasha
7e6319d955 glance-manage should work like nova-manage
nova-manage supports subcommands of db, for nova-manage,
eg) 'nova-manage db sync',
glance manage however has individual commands like db_sync, db_version
etc. This patch aims at adding the db operations as subcommands to db in
glance-manage similar to nova and refactoring this bit of code in
cmd/manage.py

Fixes: bug 1213197
Change-Id: I6fad31766bc1cec2a666a7ebc8df5c732007c5f1
2013-11-06 14:59:33 +05:30
Jenkins
c0e3602940 Merge "Replace qpid_host with qpid_hostname" 2013-10-29 11:15:47 +00:00
Flavio Percoco
21ea5f6535 Replace qpid_host with qpid_hostname
This patch replaces `qpid_host` with `qpid_hostname` in both the
documentation and the config file sample. `qpid_host` has been shipped
as the parameter to specify qpid's hostname, although the correct one is
`qpid_hostname`.

DocImpact
Closes-bug 1242715

Change-Id: I25f2d0e505560e1762f7f059728c33c47a23439e
2013-10-28 15:35:33 +01:00
eos2102
cdd39e0495 Addition of third example for Property Protections
Includes an example to limit all property interactions to admin only using policy rule
context_is_admin defined in policy.json

Change-Id: I22dddc06a84312b3b1cbd195cb84839e0321a9f0
Closes-Bug: #1243945
2013-10-24 12:02:38 -07:00
iccha.sethi
3e388988fe Documentation for using policies for protected properties
Add documentation for using policies to describe
property protections.

Related to bp api-v2-property-protection

Change-Id: Ic1fc4d3d69dee7ba65462a5bda6cdbe1a266077e
2013-10-18 18:34:55 +00:00
iccha.sethi
1b81289484 Correct documentation related to protected properties
Fixes bug 1233303

Specified conditions under which glance api will not start
successfully.

DocImpact

Change-Id: I8498e9e51f5c7e0d411379c0574c0b8e300f77c2
2013-10-07 17:59:08 +00:00
Jenkins
43748fd296 Merge "Corrected v2 image sharing documentation." 2013-10-01 08:13:09 +00:00
Jenkins
f4f2a82728 Merge "Add documentation for property protections" 2013-09-30 16:13:54 +00:00
Jenkins
2791c16fe1 Merge "Fixes typos of v1 meta data in glanceapi.rst" 2013-09-29 21:42:13 +00:00
Thomas Leaman
c8b6fa1ad1 Add documentation for property protections
Related to bp api-v2-property-protection

DocImpact

Change-Id: Ia1bd44accfd95fa3b96f462a77b202ff4dddde3b
2013-09-27 13:22:02 +00:00
Brian Rosmaita
63fbdd9a5a Corrected v2 image sharing documentation.
corrected request body for POST to /v2/.../members
removed GET /v2/images/{imageId}/members/{memberId} (call not implemented)

Change-Id: Iafbba48c7d5e8b8b38e77b7ead216d0e7e235cb2
Closes-Bug: #1229351
2013-09-23 18:49:31 +00:00
Stuart McLaren
8a85be099e Add swift_store_ssl_compression param
Add a new glance-api.conf parameter 'swift_store_ssl_compression',
which allows disabling SSL layer compression for https swift requests.

This can increase performance when transferring compressed images (eg
qcow2) to/from swift.

Addresses bug 1190666.

DocImpact.

Change-Id: Ic26dba9dce5ea7e5c09fdd531746b93cec54fc5c
2013-09-23 14:55:54 +00:00
Fei Long Wang
849eba3b2d Fixes typos of v1 meta data in glanceapi.rst
Fixes bug 1226701

Change-Id: Ie5547f5020d0dad3a2d9a9a96db0b5dd1d2dc34e
2013-09-18 00:41:39 +08:00
Jenkins
2cb68ac6d6 Merge "Fix Sphinx warning" 2013-09-01 00:34:08 +00:00
John Bresnahan
e3e4f4d927 Add a storage quota
This patch adds a storage quota that is applied against the sum total
of a users storage consumption against all configured storage systems.
A single quota is applied to all users via the configuration option
'total_storage_quota'.  Most of the patch is about enforcement so
when a separate service for quota management emerges in OpenStack the
per user value to enforce can be obtained from that service but the
enforcement code will remain the same.

blueprint glance-basic-quotas
docImpact
Change-Id: I251832f7372c70942be6f0c6aa12285145dd7c18
2013-08-28 17:12:34 -10:00
Dirk Mueller
9e4232d76e Fix Sphinx warning
Title underline was too short.

Change-Id: I2915f9d3ad0b208286d447ef2375e51f51b7e35d
2013-08-26 10:30:19 +02:00
Jenkins
f9ea0ac3b2 Merge "Remove glance CLI man page." 2013-08-22 05:37:28 +00:00
Jenkins
b0f5f041dc Merge "Make disk and container formats configurable" 2013-08-21 10:10:55 +00:00
Brian Waldon
830f27ba34 Make disk and container formats configurable
* Add disk_formats config attribute
* Add container_formats config attribute
* Implement bp configurable-formats

Change-Id: Ic52ffb46df9438c247ba063748cadd69b9c90bcd
2013-08-19 04:23:07 +00:00
Jakub Ruzicka
07d06ebfc4 Remove glance CLI man page.
glanceclient CLI man page is provided by glanceclient.

Fixes bug 1212300

Change-Id: I61f61b50cb74d71331fadb89659a3cee2b13a359
2013-08-14 17:04:44 +02:00
Kun Huang
485274433f Text formatting changes
These are some text fixes in document, scripts and functions,
including variable usage, text aligning, adding new store class in
document

Change-Id: I98e226969d86698972870a7b3a042cb00c2206e9
2013-08-07 13:15:27 +08:00
Jenkins
c13692f27d Merge "Fix list formatting in docs" 2013-07-22 21:51:43 +00:00
Jenkins
58fd5ed585 Merge "Fix doc formatting issue" 2013-07-22 21:51:42 +00:00
Jenkins
54ab0ce0f4 Merge "Remove references to clean arg from cache-manage" 2013-07-22 21:50:16 +00:00
Jenkins
ef22c4f745 Merge "Use oslo.sphinx and remove local copy of doc theme" 2013-07-19 23:56:16 +00:00
Zhi Yan Liu
d13493be80 Adding Cinder backend storage driver to Glance
This change allows Glance drive Cinder as a block storage backend to
store image data.
Before this we already use swift as an object storage backend to save
image.

Currently the patch is a partial implementation, after Cinder expose
'brick' library, 'host-volume-attaching' and 'multiple-attaching'
enhancement ready, the store will support ADD/GET/DELETE interface
finally.

blueprint: glance-cinder-driver

Change-Id: I4cdeccdb518972c0280e59c984ed6b001dafe243
Signed-off-by: Zhi Yan Liu <zhiyanl@cn.ibm.com>
2013-07-17 06:27:59 +08:00
Paul Bourke
84bf7e057a Remove references to clean arg from cache-manage
The usage message for glance-cache-manage lists "clean" as an available
command, but this functionality is part of a separate tool,
glance-cache-cleaner.

Remove any references to this to avoid confusion.

DocImpact
Fixes bug 1189451

Change-Id: I2aba8164ab9ef0c3bef31870cb3771233a722d27
2013-07-15 16:12:43 +00:00
Doug Hellmann
cc5a348de4 Fix list formatting in docs
Fix the way the notification payload is documented
so it uses proper rst syntax and doesn't produce a
warning in the sphinx build.

Change-Id: I0d2adf36c7f5262770f5a3bda05c9ddd21efc17d
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
2013-07-05 16:10:21 -04:00
Doug Hellmann
d6e51d9ab4 Fix doc formatting issue
Fix the underline length to remove a warning from
the documentation build.

Change-Id: Icc1569cbeaa6c964d608a254095f7a778ff0c74e
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
2013-07-05 16:10:21 -04:00
Doug Hellmann
670b07eb56 Use oslo.sphinx and remove local copy of doc theme
Use the new oslo.sphinx version of the OpenStack doc
theme instead of copying it into this repo.

blueprint oslo.sphinx

Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
Change-Id: I0bd91f7bb43f97b99051fed65b75fc05d5149cc8
2013-07-05 16:10:20 -04:00
Liu Yuan
1757e7e0ae Add Sheepdog store
Sheepdog is a distributed block storage. This patch enables Sheepdog cluster
as a backend store for glance.

Test:

You can set up a simulated 3 node cluster on the local machine with
following script:

 $ sudo apt-get install liburcu-dev
 $ git clone git://github.com/collie/sheepdog.git
 $ cd sheepdog
 $ ./autogen.sh; ./configure --disable-corosync
 $ make; sudo make install
 $ for i in 0 1 2; do sheep /tmp/store$i -n -c local -z $i -p 700$i;done
 $ collie cluster format

Then change the default store in glance-api.conf as sheepdog

blueprint: add-sheepdog-support

Change-Id: I99907bbfc2e131146de9dd1a39f94a73cd2585e9
2013-07-04 12:41:05 +08:00
Brian Rosmaita
b412869fa8 Updated documentation to include notifications introduced in Grizzly.
Change-Id: I326bb7dff3c0d047a7ed66886619e176edf08800
2013-06-21 14:20:29 +00:00
Jenkins
500b86da0d Merge "Add a policy layer for membership APIs" 2013-06-13 21:44:41 +00:00
annegentle
6163022e7c Patch changes Fedora 16 to 18 on install page.
Change-Id: Ia38ae70cb64462460c3ee64a05cf19b6a819f54b
2013-06-06 20:28:54 -05:00
James Li
c2d3f3c802 Add a policy layer for membership APIs
Added a policy layer for the membership APIs of the domain
model.

Added following policies for membership APIs:

v1: 'get_members', 'delete_member' and 'modify_member'.

v2: 'add_member', 'get_member', 'modify_member',
'get_members' and 'delete_member'.

Implements blueprint membership-policy

Change-Id: I0d5782d1d9b7b8a563a689fcb192958ab3fea0f4
2013-05-30 21:08:18 +00:00
Paul Bourke
02fc5ba589 Add documentation on reserving a Glance image
This lets us refer to the fact that some optional headers are in fact
required unless reserving an image.

Fixes bug 1124224

Change-Id: I5646d4dc130efecf991573b363eb1a665012b7df
2013-05-28 13:38:09 +00:00
Jenkins
a9cb0d4bce Merge "Small change to 'is_public' documentation" 2013-05-22 22:39:24 +00:00
Stuart McLaren
bba2f5c4d0 Add documentation for query parameters
Add documenation for 'marker', 'limit' and 'is_public' query
paramters.

Addresses bug 1177739.

Change-Id: I429ec7a54c132a6eee64846932ff72b35acfbfb2
2013-05-08 16:07:12 +00:00
Stuart McLaren
bd8cfcb247 Small change to 'is_public' documentation
Update the documentation for 'is_public' in authentication.rst
to be more accurate.

Addresses bug 1177732.

Change-Id: I9889826d4019ff33d9be343e79324862d9fde8e9
2013-05-08 15:25:25 +00:00
John Bresnahan
039f3d8a59 Convert scripts to entry points
The executable programs used by Glance have historically been scripts
in the ./bin directory.  This patch converts all of the scripts to
entry_points.  This change makes these programs python modules.  Thus
they can be imported and methods in them can be called just like any
other module.  This will allow the tests to call into these programs
directly instead of having to fork out a process.

The conf.py file in the doc tree was causing a name collision with
the python module cmd.  The glance/glance directory was being added
to sys.path which made glance.cmd import with the name cmd.  This
patch also fixes that problem.

blueprint: refactoring-better-faster-stronger-functional-tests
Change-Id: I67ae14b7403af31a5944befcd2ec27a690e81f15
2013-04-29 14:08:29 -10:00
Stuart McLaren
40f477bd6c Add image_size_cap documentation
Add documentation for the 'image_size_cap' parameter.

Addresses bug 1158723.

Change-Id: If6d28a3837dc875b7c8e3e18dd5058eb07b40638
2013-03-22 11:42:31 +00:00
Mark J. Washenberger
11c738b728 Document the os options config for swift store
Several configuration options were added to the swift store. These
options help python-swiftclient and sometimes glance itself to determine
which swift service to use if multiple services appear in a keystone
catalog. This change adds documentation for the additional options.

Last fix for bug 1037708

Change-Id: Id06d263b73705b06295b730ff68460b22f117e63
2013-03-14 18:15:37 -07:00
Brian Rosmaita
fb4cb999d0 Update documentation to reflect API v2 image sharing
Related to bp glance-api-v2-image-sharing

Change-Id: Ida2f530ef2c8474ec29f8870c2218c291a9e449c
2013-03-04 15:39:32 +00:00
Brian Rosmaita
e0aa3f8079 Removed controversial common image property 'os_libosinfo_shortid'
Change-Id: I3a0247b5547d5735aeb0bcbd3e9b4a74ea85208f
2013-02-26 20:55:58 +00:00
Jenkins
5947246353 Merge "Document db_auto_create in default config files" 2013-02-22 19:40:25 +00:00
Paul Bourke
fe0c2d2a1d Document db_auto_create in default config files
Change-Id: I933952b672254b32928762e0a4beba2b2b107810
2013-02-22 11:25:30 +00:00
Brian Rosmaita
d706143781 Adding new common image properties
Revised schema and glance sphinx docs, renamed 'os_arch' to
'architecture' for backwards compatibility, renamed 'os_shortid'
to 'os_libosinfo_shortid'.

Partially implements blueprint glance-common-image-properties

Change-Id: I23d8ba82015f1f53bff65b4fa08463d905eeadd8
2013-02-20 17:36:34 +00:00