277 Commits

Author SHA1 Message Date
Erno Kuvaja
c6365cc4f5 Makes possible to enable Registry API v1 and v2
This change will make possible to enable/disable both v1 and v2 Registry APIs
either individually or together from glance-registry.conf.

DocImpact
Closes bug: #1290432
Change-Id: Ib2458b3312bdb552975b1e42485086a1c3aa6d3f
2014-03-14 13:12:04 +00:00
Jenkins
70422c4926 Merge "Document for API message localization" 2014-03-05 18:54:38 +00:00
Jenkins
6f97173061 Merge "Add the OVA container format" 2014-03-05 14:23:37 +00:00
Fei Long Wang
efb8df7f2c Document for API message localization
This patch will add document about how to use the
API message localization.

Partially implements bp i18n-messages

Change-Id: I389103574fc52feed96c592cbafbb52faccda939
2014-03-04 13:29:30 +00:00
Arnaud Legendre
965e2c3594 Add the OVA container format
An OVA package is a tar archive usually containing an OVF directory
inside it. Nova needs to be able to differentiate OVF and OVA based on
the container format in order to extract the relevant information from
it.
This patch adds the OVA container format to the Glance configuration.

Closes-Bug: #1286375

Change-Id: I5034d2943907823a9296e7a5fb41a28f2d92ec5a
2014-03-03 19:44:21 -08:00
Nikhil Komawar
97a8fe7352 Documentation for Glance tasks
Added some docs for:-
    - configuration
    - notifications
    - statuses

partially implements blueprint async-glance-workers

Change-Id: I4e33bc3be2278d6906968d1dac3aff6587eef6df
2014-03-02 16:35:01 -06:00
Dirk Mueller
69df886b76 Switch over to oslosphinx
oslosphinx is the new name of oslo.sphinx

Closes-Bug: #1277168
Change-Id: I8aa08e3e16d46209b9aeb20a70b3984b2a4ae5bb
2014-02-14 16:31:46 +01:00
Jenkins
c5588da78a Merge "Add multifilesystem store to support NFS servers as backend" 2014-01-31 09:53:10 +00:00
Jenkins
84954a8522 Merge "Retry failed image download from Swift" 2014-01-31 05:50:59 +00:00
Arnaud Legendre
f9589bd010 VMware Datastore storage backend
Customers using a VMware environment with OpenStack should be able to
store their Glance images in VMware datastores. This is a first step to solve
the problem where Nova needs to copy the bits over the network
from Glance to the datastore when spawning an instance.
Also, this give the ability to provide some optimizations for specific
image formats in the future (fast cloning for example).

This patch contains a 'glance/store/vmware/' folder with the code
to manage the connection with vCenter or an ESX(i) host.
This code will go away as soon as it is merged to Olso:
see review https://review.openstack.org/#/c/65075/

The current implementation give this ability to specify the vCenter or
ESX(i) IP. In case of a vCenter IP, there is no optimization to reduce
the datapath (no host selected).
Consequently, it is recommended to specify an ESX IP if the ESX host
API endpoint is accessible from Glance.

docImpact
Implements bp vmware-datastore-storage-backend

Change-Id: I3837912e0d1614b9c31a689f71c2e34d453e2dc3
2014-01-30 18:14:15 -08:00
Jenkins
4d8c3f1553 Merge "Update all the glance manpages" 2014-01-30 03:20:21 +00:00
Matt Fischer
8f1c1b1a3b Update all the glance manpages
Finish updating the glance manpages:
  - Update and modernize all files and references
  - Add a new manpage for glance-replicator
  - Move the common configuration options to common files for
    easier maintenance and less redundancy

Change-Id: If2cbcc30f2761b187038f39324c7698de4eb2ab9
Closes-Bug: #1238366
2014-01-26 06:48:05 -07:00
Aswad Rangnekar
7e2c16104d Add multifilesystem store to support NFS servers as backend
Currently to configure multiple nfs server as a backend
using filesystem store, you cannot mount all disks to a single directory.
Filesystem store allows administrator to configure only single directory with
filesystem_store_datadir parameter in the glance-api.conf.

With multifilesystem store, administrators can configure multiple directories
to store the glance image with help of filesystem_store_datadirs option.
Each directory can be coupled with its priority.

Format for filesystem_store_datadirs in glance-api.conf:
--------------------------------------------------------
filesystem_store_datadirs = </path/to/store>:<priority>
...
filesystem_store_datadirs = </path/to/store>:<priority>

Example:
filesystem_store_datadirs = /var/glance/store
filesystem_store_datadirs = /var/glance/store1:100
filesystem_store_datadirs = /var/glance/store2:200

Note:
-----
1. Either filesystem_store_datadir or filesystem_store_datadirs option
must be specified in glance-api.conf
2. Store with priority 200 has precedence over store with priority 100
3. If no priority is specified, default priority '0' is associated with it.
4. If two filesystem stores have same priority store with maximum free space
will be chosen to store the image.
5. If same store is specified multiple times then BadStoreConfiguration
exception will be raised.

blueprint: glance-multifilesystem-store

DocImpact: Multifilesystem support can be used by specifying multiple
directory paths to filesystem_store_datadirs param in glance-api.conf as
discussed above.

Change-Id: Ibb04ac14c472cd863c5e285b6dc6a08c69014fe8
2014-01-22 14:57:51 -08:00
Thomas Leaman
ae568d7858 Retry failed image download from Swift
If a request to Swift for an image fails before the full image is
downloaded, this will reconnect to Swift and download the remainder of
the image without having to start from scratch.

DocImpact

blueprint retry-swift-download

Change-Id: Ifde68415707506b56ffac1939c6750b216b87a87
2014-01-22 10:55:36 +00:00
Jenkins
c4a57b486b Merge "fixing typo in rst file" 2014-01-18 22:41:32 +00:00
Jenkins
016204e8c4 Merge "Update the glance-api manpage" 2014-01-17 15:33:13 +00:00
ravikumar-venkatesan
f255c3fd43 fixing typo in rst file
Change-Id: I5e8e08300abb783f2e7c1c9339e1295295526293
2014-01-15 22:48:55 +00:00
Matt Fischer
b881bc244c Update the glance-api manpage
Change-Id: I8219b29c468f094085a3182d19c3354aca091cd7
Partial-Bug: #1238366
2014-01-13 21:01:05 -07:00
Jenkins
8efd443e0d Merge "fix comments and docstrings misspelled words" 2014-01-10 09:27:23 +00:00
Jenkins
20ad8fda83 Merge "Consider @,! in properties protection rule as a configuration error" 2014-01-08 18:56:11 +00:00
Nassim Babaci
70d2c8c2d8 fix comments and docstrings misspelled words
Change-Id: I355b6fedf372b1273ceaebe22e8e890aa9c913c9
Closes-bug: #1267103
2014-01-08 17:03:44 +01:00
Yanis Guenane
5ecd5bc3db Consider @,! in properties protection rule as a configuration error
In roles based property protection, if '@' and '!' are in the same rule then the
glance api will not start considering this an Invalid Configuration.

DocImpact
Closes-bug: #1260333

Change-Id: I1d304f5c505ae9e2486ff653dda205fc2d851c2b
2014-01-07 14:06:24 +00:00
Yanis Guenane
e69ec61aa6 Adding missing copy_from policy from policy.json
The current policy.json file is missing the copy_from policy in order
to be exhaustive.

DocImpact
Change-Id: Ibc0d1fa7626629c28c514514a985a6b89db2ac69
Closes-bug: #1258999
2013-12-13 12:22:15 +00:00
Jenkins
a3a29e686f Merge "Add documentation for some API parameters" 2013-12-05 08:35:59 +00:00
Stuart McLaren
2425b93b49 Add documentation for some API parameters
Add documentation for some parameters which can
be present in glance-api.conf:

* use_user_token
* admin_user
* admin_password
* admin_tenant_name
* auth_url
* auth_region
* auth_strategy

Fix for bug 1256952.

DocImpact

Change-Id: Ia5b731cabaec961f3a4226d30abd3bca9bd87651
2013-12-02 16:27:03 +00:00
Yanis Guenane
ab7ea6baf7 Set upload_image policy to control data upload
There was no policy to control data upload.
Up until today, the add_image policy was a all or nothing, from metadata
to the actual data. Now, with the combination of add_image and upload_image
an administrator will have finer control over the whole chain.

Change-Id: I1a7966ffb5c63dd8239a54fe2963b031d9fe1f9a
Closes-bug: #1254521
2013-12-01 21:50:27 +00:00
Jenkins
c8dcacc454 Merge "Documentation for using policies for protected properties" 2013-11-26 16:53:02 +00:00
Jenkins
b889924c87 Merge "Adding an image status transition diagram for dev doc" 2013-11-26 11:54:57 +00:00
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