376 Commits

Author SHA1 Message Date
Doug Hellmann
1502a78282 do not indent include directives
Indenting the include directives for the snippet files means the
headings in those files are "under" or "inside" the sections defined by
the headings in the parent file, but that's not something rst supports.

Change-Id: I70cb5b7f4d5051595a8e057ecf3b23a372ee21ca
2015-10-01 15:46:19 +00:00
Doug Hellmann
533747c669 add missing document to toctree
Change-Id: Idc9ffdd6d3d9bbdfd18702dd2fb1302ec7dc70b1
2015-10-01 15:46:19 +00:00
Doug Hellmann
ba146e4eeb fix restructuredtext formatting errors
Change-Id: I5693f2aa1670bf0e782f231bdaba2bc342bbe9ff
2015-10-01 15:46:15 +00:00
Jenkins
240e8d8a37 Merge "Setting default max_request_id_length to 64" 2015-09-23 18:51:54 +00:00
Olena Logvinova
edd51e289a [Glance Developer Guide] Grammar edits
This patch:
- addresses grammar comments from commit
  https://review.openstack.org/207510
- fixes small grammar/syntax errors in Using Glance’s
  Image Public APIs section of the guide.

Change-Id: I6b5339a7680c3ccd3ce9bb156f10acad9f47daa3
2015-09-18 17:55:22 +03:00
Jenkins
c4ef8f979a Merge "Domain model section" 2015-09-16 14:37:50 +00:00
Olena Logvinova
18b82868f9 Domain model section
Adds a domain model description section
to the Glance Developer guide.

Change-Id: I87a0cc4e97f2bbd44dd33917dbf74c93e580e43b
Co-Authored-By: Mike Fedosin <mfedosin@mirantis.com>
Co-Authored-By: Olena Logvinova <ologvinova@mirantis.com>
2015-09-10 21:58:15 +03:00
Jenkins
90addb24da Merge "Corrected hyperlink in metadefs documentation" 2015-09-09 15:48:28 +00:00
venkatamahesh
40277b7b59 Corrected hyperlink in metadefs documentation
Updated the reference to the Nova "Virt driver guest
vCPU topology configuration" spec to its current
location among the implemented Juno specs.


Change-Id: I4832a73444a6372c0ecede11fa437f14c90fc76a
Closes-Bug: #1488924
2015-09-09 13:22:55 +00:00
Jenkins
8fa349ce63 Merge "Disable v3 API by default" 2015-09-04 16:03:22 +00:00
Jenkins
032daa9cae Merge "Add mechanism to limit Request ID size" 2015-09-04 00:29:41 +00:00
Mike Fedosin
6fe3626bb5 Disable v3 API by default
Since v3 is still unstable and has experimental status it's
better to disable it by default for security reasons. This
commit does it by setting 'enable_v3_api=False'.

Also all required documentation was added to related sections.

DocImpact

Change-Id: I412d0645d667400333532123008a24966aa23880
2015-09-03 23:02:26 +03:00
Jenkins
be8d6a7dba Merge "Use stevedore directive to document plugins." 2015-08-30 02:55:14 +00:00
Jenkins
440da0c512 Merge "Adds a rados_connect_timeout description" 2015-08-29 14:28:22 +00:00
Cory Benfield
b45bd50265 Use stevedore directive to document plugins.
Add directives to the documentation to bring in docstrings from the
plugins used by glance.

Change-Id: I06df808446c749588b719001e172721db6d43660
2015-08-27 13:48:32 +01:00
Erno Kuvaja
bd593ddbe6 Setting default max_request_id_length to 64
Setting sensible maximum size for Request ID. 64 should be enough for
normal use cases but limited enough from current 16384 to not flood
the logs by malicious requests.

DocImpact
SecurityImpact

Related-to-bug: #1482301
Change-Id: I52ebf810f4699826baa2bdf91d28e24d902cf950
2015-08-11 08:52:33 +00:00
Erno Kuvaja
9fdc92b57b Add mechanism to limit Request ID size
Adding 'max_request_id_length' defaulting to 0 for backportability.

DocImpact
SecurityImpact

Closes-Bug: #1482301
Change-Id: Ie68afe7610a414bbcc42ff3bee33a9779303c115
2015-08-11 08:52:13 +00:00
Jenkins
05670df90e Merge "add annotation of param" 2015-07-16 22:53:46 +00:00
dangming
240a23da70 add annotation of param
Change-Id: I4b53222b1188312c468c0b720ea297c4192ac50b
2015-07-16 14:54:39 +08:00
Jenkins
ad3c053a2c Merge "Fix the document bug in part of digest_algorithm" 2015-07-16 00:23:52 +00:00
Olena Logvinova
a4946b5125 Adds a rados_connect_timeout description
This patch adds a new parameter rados_connect_timeout
and its description to the Configuring the RBD Storage Backend
sub-section in the Basic Configuration section.

Change-Id: Ib909519e46902a2f8888625951c6e761de15d48d
Depends-On: Ib44f74063d5a8332c6b5f3e15bcfa044c86bef9b
2015-07-15 21:27:48 +00:00
Desmond Sponsor
0374c1c560 Fix the document bug in part of digest_algorithm
This commit updates the developer docs to reflect
the change in default digest algorithm to sha256
made by https://review.openstack.org/#/c/197372/

Closes-Bug: #1471938

Change-Id: I1b1044a506d7e3657ec360489fb236c6e5214688
2015-07-16 05:13:08 +08:00
Erno Kuvaja
562cb0429f Healthcheck Middleware
Provide healthcheck middleware from oslo_middleware to be able to
disable given nodes from loadbalancer. It's achieved by adding a new
pipeline which depending on existing of the
/etc/glance/healthcheck_disable file can return one of the following
results:

- 200 OK (if file does not exist)
- 503 DISABLED BY FILE (if file exist)

The healthcheck is available under /healthcheck URL, and the whole
mechanism behave similar to the Swift healthcheck system.

implements bp: healthcheck-middleware

Co-Authored-By: Erno Kuvaja <jokke@usr.fi>
Co-Authored-By: Kamil Rykowski <kamil.rykowski@intel.com>

DocImpact

Change-Id: I45f6a8c59ec3040aaf06f8bab46d8001c44dac7a
2015-07-07 11:55:21 +02:00
Andreas Jaeger
80e9b19448 Fix broken URL to docs.openstack.org
We do not publish anymore to docs.openstack.org/trunk. Only a few
redirects exist.

 http://docs.openstack.org/trunk/openstack-compute/admin/content/adding-images.html
redirects to
http://docs.openstack.org/cli-reference/content/chapter_cli-glance-property.html,
so let's use that URL.

Change-Id: I3069175b61d4624d95f8809601c33b4b8322a15a
Closes-Bug: #1468973
2015-06-26 08:11:25 +02:00
Jenkins
5769444666 Merge "Add client_socket_timeout option" 2015-06-18 17:01:42 +00:00
Stuart McLaren
19bba346ba Add client_socket_timeout option
Add a parameter to take advantage of the new(ish) eventlet socket timeout
behaviour.  Allows closing idle client connections after a period of
time, eg:

$ time nc localhost 9292
real    1m0.063s

Setting 'client_socket_timeout = 0' means do not timeout.

DocImpact
Closes-bug: 1371022
Change-Id: I9e7edcbf25ece61dc16b8cd5a8bef5ed9a14e3d6
2015-06-18 14:50:00 +00:00
Mingda Sun
ef334a6584 Fix grammar in installation documentation
following -> follow

Change-Id: Ied6a53e0bffc66eb9229d83d994a9f4d97766326
2015-06-17 12:05:05 +00:00
Olena Logvinova
ec1b187544 Add info how to avoid issues with token expiration
This commit adds strings that describe how to prevent situations
related to the issues with token expiration during big file upload.

DocImpact

Change-Id: Iddc78a8ce32b78aefe5b702d35b30c13935117bf
Co-Authored-By: Mike Fedosin <mfedosin@mirantis.com>
2015-06-12 10:58:10 +00:00
Brian Rosmaita
d5ed711390 Correct bad documentation merge
Was looking for something else and noticed that the documentation for
the swift_store_cacert option was merged into the middle of the doc
for the swift_store_ssl_compression option.  This patch corrects that.

DocImpact

Change-Id: I86c7a9d045cb7784cb68020a13b7682b3ea8c94d
2015-06-10 12:37:08 +00:00
tobe
00947431fc Fix typo in documentation
Change "configuation" to "configuration".

Change-Id: I87df3405dcf2538b2db6f0443519cc85bd4139f5
Closes-Bug: #1455314
2015-05-15 13:48:13 +00:00
Jenkins
2968118b08 Merge "Glance database architecture section" 2015-04-28 17:30:45 +00:00
Olena Logvinova
351e5f1ad7 Glance database architecture section
Adds a database architecture description section
to the Glance Developer guide.

Change-Id: Ice951ecc344a1172d5bffc4f5d0dc329b75e9483
Co-Authored-By: Mike Fedosin <mfedosin@mirantis.com>
Co-Authored-By: Olena Logvinova <ologvinova@mirantis.com>
2015-04-17 19:39:10 +03:00
Mitsuhiro SHIGEMATSU
ecf464cad7 Remove non-ascii characters in glance/doc/source/architecture.rst
"Basic architecture" section has non-ascii (utf-8) characters.

Change-Id: Ib601b4b7232ec174227ebc801d3d663a5542f50e
Closes-Bug: #1443464
2015-04-13 23:01:06 +09:00
Mitsuhiro SHIGEMATSU
bd04638cec Fix typos in glance/doc/source/configuring.rst
Change-Id: I351e309c10d26cd15a6a7f38b68d93d477d69e93
2015-04-13 22:47:00 +09:00
Stuart McLaren
0c7f172117 Zero downtime config reload (glance-control)
Update glance-control to send a SIGHUP rather than
perform a start/stop for the 'reload' operation.

This allows picking up new configuration values without
interrupting the service.

Closes-bug: 1436275
Change-Id: I5a653daa3e582b665c0a2c402cf2d7c9e47e1c38
2015-04-07 10:45:29 +00:00
Jenkins
e7d94536fb Merge "Fix common misspellings" 2015-04-02 02:44:20 +00:00
Ashish Jain
d0de5af957 Update documentation for glance-manage
Currently the documentation of glance-manage is missing the commands
to handle the glance metadata defnition. This patch provides details
on following commands:

db_load_metadefs
db_unload_metadefs
db_export_metadefs

Closes-Bug: #1414725

Change-Id: I90865831d38478f76e7379ca447ed99c17387710
2015-03-23 16:37:50 +00:00
Martin Kletzander
ab8ddcdadd Fix common misspellings
Wikipedia's list of common misspellings [1] has a machine-readable
version.  This patch fixes those misspellings mentioned in the list
which don't have multiple right variants (as e.g. "accension", which can
be both "accession" and "ascension"), such misspellings are left
untouched.  The list of changes was manually re-checked for false
positives.

[1] https://en.wikipedia.org/wiki/Wikipedia:Lists_of_common_misspellings/For_machines

Change-Id: I6f549eb78998ead9b2f1a04e196e65b3f08f1be7
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
2015-03-20 15:21:33 +01:00
Jenkins
8608ab1399 Merge "Pass a real image target to the policy enforcer" 2015-03-19 18:07:43 +00:00
Eddie Sheffield
b000c85b7f Add ability to deactivate an image
This patch provides the ability to 'deactivate' an image by
providing two new API calls and a new image status 'deactivated'.
Attempting to download a deactivated image will result in a
403 'Forbidden' return code. Also, image locations won't be visible
for deactivated images unless the user is admin.
All other image operations should remain unaffected.

The two new API calls are:
    - POST /images/{image_id}/actions/deactivate
    - POST /images/{image_id}/actions/reactivate

DocImpact
UpgradeImpact

Change-Id: I32b7cc7ce8404457a87c8c05041aa2a30152b930
Implements: bp deactivate-image
2015-03-13 14:21:11 -04:00
Jenkins
f8e0567fe5 Merge "Glance basic architecture section" 2015-03-12 22:30:02 +00:00
Ian Cordasco
b159aa8b64 Pass a real image target to the policy enforcer
Previously, every call to policy.enforce passed an empty dictionary as
the target. This prevents operators from using tenant specific
restrictions in their policy.json files since the target will always be
an empty dictionary.

If you try to restrict some actions so an image owner (users with the
correct tenant id) can perform actions, the check categorically fails
because the target is okay is an empty dictionary. By passing the
ImageTarget instance wrapping an Image, we can properly grant access to
the image owner(s) based on tenant (e.g., owner:%(tenant)). Without this
fix, the only check that actually works in glance is a RoleCheck (e.g.,
role:admin).

Partial-bug: 1346648
Implements: blueprint pass-targets-to-policy-enforcer
Change-Id: Id914c478ca7c4dfde3f08028d8b70c623f26b6e9
2015-03-12 01:16:44 +00:00
Jenkins
3e7b0a0bbc Merge "Update config and docs for multiple datastores support" 2015-03-11 19:16:38 +00:00
Olena Logvinova
1eb3f584dc Glance basic architecture section
Adds a basic architecture description section
to the Glance Developer guide.

Change-Id: I782490bb8757cd67d83057176f8e3eeffa007b84
Co-Authored-By: Mike Fedosin <mfedosin@mirantis.com>
Co-Authored-By: Olena Logvinova <ologvinova@mirantis.com>
Co-Authored-By: Alexander Adamov <aadamov@mirantis.com>
2015-03-11 19:46:14 +02:00
Kamil Rykowski
fd547e3717 Notifications for metadefinition resources
Metadefinition resources - namespaces, objects, properties, tags and
resource types - don't provide any notification events when certain
operations are performed on them. This patch includes following events
that will be triggered when necessary:

* metadef_namespace.create - namespace has been created
* metadef_namespace.update - namespace has been updated
* metadef_namespace.delete - namespace has been deleted
* metadef_namespace.delete_properties - all properties have been removed
from namespace
* metadef_namespace.delete_objects - all objects have been removed from
namespace
* metadef_namespace.delete_tags - all tags have been removed from
namespace

* metadef_object.create - object has been created
* metadef_object.update - object has been updated
* metadef_object.delete - object has been deleted

* metadef_property.create - property has been created
* metadef_property.update - property has been updated
* metadef_property.delete - property has been deleted

* metadef_tag.create - tag has been created
* metadef_tag.update - tag has been updated
* metadef_tag.delete - tag has been deleted

* metadef_resource_type.create - resource type has been added to
namespace
* metadef_resource_type.delete - resource type has been removed from
namespace

Additionally new configuration option has been added to allow for
disabling either individual or group of notifications.

DocImpact
UpgradeImpact
Depends-On: Iaa771ead0114e3941667b1e07ff32472d2f77afd

Change-Id: Ie1635793d80188f8f7a07aea91b9f0842900ffa6
Implements: blueprint metadefs-notifications
2015-03-11 11:14:57 +01:00
Sabari Kumar Murugesan
96fb31d745 Update config and docs for multiple datastores support
The patch adds the necessary configuration options defined in the
multiple datastore spec for VMware Store backend.

Approved Spec:
I16229da839ab7f147c36d5857e2269999e8215d7

Implementation:
I176f1143cd2d9b0a01a0f4f4256e7ac7d9b09afd

blueprint vmware-store-multiple-datastores

Depends-On: I4a52347cdbc238a3cb36a67d453591d0f8576a39

UpgradeImpact
DocImpact

Change-Id: Ic459b3b579d2b02e9abd9655ea2eb3e99fddcfcd
2015-03-10 20:04:41 +00:00
Jenkins
e8cf6321a6 Merge "Adds openSUSE in the installing documentation" 2015-03-09 22:36:16 +00:00
Jenkins
72aa63553b Merge "Eventlet green threads not released back to pool" 2015-03-09 22:35:21 +00:00
Flavio Percoco
ae3135e1d6 Remove the eventlet executor
We added the eventlet executor waiting for taskflow to land and be ready
for us to consume it. Now that we have it, it's time to remove the
eventlet executor in favor of taskflow's parallel executors.

DocImpact
UpgradeImpact

Partially-implements blueprint: new-upload-workflow

Change-Id: I220a14b2a92949772d5322c9947c42e892cfdbfa
2015-03-06 17:33:56 -04:30
Matt Riedemann
87e5647018 Remove boto from requirements.txt
There are no boto imports in glance anymore since the s3 driver moved
out with glance_store, so remove the boto requirement from glance.

Also cleans up an old install reference for RPMs.

Change-Id: Iea294c4416630e441f8a183b32b2f1c9b7b88821
2015-02-24 21:10:17 -08:00