358 Commits

Author SHA1 Message Date
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
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
abhishekkekane
16a821e00d Eventlet green threads not released back to pool
Presently, the wsgi server allows persist connections. Hence even after
the response is sent to the client, it doesn't close the client socket
connection. Because of this problem, the green thread is not released
back to the pool.

In order to close the client socket connection explicitly after the
response is sent and read successfully by the client, you simply have to
set keepalive to False when you create a wsgi server.

DocImpact:
Added http_keepalive option (default=True).

SecurityImpact

Closes-Bug: #1361360
Change-Id: I93aaca24935a4f3096210233097dd6b8c5440176
2015-02-20 11:37:00 +00:00
Jenkins
cd60a24a7d Merge "Add swift_store_cacert to config files and docs" 2015-02-12 13:54:39 +00:00
Jenkins
803c54051b Merge "Add detail description of image_cache_max_size" 2015-02-12 11:35:45 +00:00
Brian Rosmaita
a6b4b8f042 Clarified doc of public_endpoint config option
Rewrote description of the public_endpoint configuration option
to make the purpose of the setting more explicit.

Change-Id: Ic4d5ce9884b6641eed076e5b6fad71ec0e6659a4
Closes-Bug: #1419328
2015-02-07 20:33:01 +00:00
Yusuke Ide
4f64c00547 Add detail description of image_cache_max_size
The description of 'image_cache_max_size' was ambiguous. There was not
the certainty that the 'image_cache_max_size' parameter was about the
aggregate size of the cache or a per image limit.
The 'image_cache_max_size' is an upper limit beyond which pruner,
if running, starts cleaning the images cache.
Hence added detail description of 'image_cache_max_size' in document
and configuration file.

Bug: #1411813
Change-Id: Ide8e087db544aeea1990bac92c97cb9ca9f0b522
2015-02-07 09:00:47 +09:00
Jenkins
5a1ddb4044 Merge "Add Support for TaskFlow Executor" 2015-02-06 07:58:09 +00:00
Arnaud Legendre
a39debfd55 Add Support for TaskFlow Executor
This patch adds support for a new task executor. This executor
leverages the taskflow library which is responsible for dispatching
the tasks.

The taskflow executor provides basic serial execution of the
tasks and uses eventlet by default. The execution mode is configurable
to have parallel execution in which case it is possible to also
configure the number of workers running at the same time.

TaskFlow wiki: https://wiki.openstack.org/wiki/TaskFlow

partially implements bp async-glance-workers
partially implements bp taskflow-integration

DocImpact
UpgradeImpact

Co-Authored by: Arnaud Legendre <arnaudleg@gmail.com>
Co-Authored by: Flavio Percoco <flaper87@gmail.com>
Co-Authored by: Nikhil Komawar <nikhil.komawar@rackspace.com>

Change-Id: Ie31e64f8fee7f9fe7336cde50d5db89577c4f76d
2015-02-05 15:29:39 -05:00
Jesse J. Cook
41a9a06553 Replace snet config with endpoint config
The snet option forces the deployer to name the desired endpoint after
the public endpoint. In order to switch between multiple internal
networks, names have to be changed. Instead of constructing a URL with a
prefix from what is returned by auth, specify the URL via configuration.

DocImpact
UpgradeImpact

bp replace-snet-config-with-endpoint-config

Change-Id: I7b7e14d7da082ae37a9737d2078017b04c19b87b
2015-02-02 12:08:59 -06:00
Fei Long Wang
82194e0c42 Make digest algorithm configurable
It would be great to enhance Glance to use minimum of SHA2
to do digital signature for FIPS compliance. Since in
FIPS(FEDERAL INFORMATION PROCESSING STANDARDS) says the
SHA-1 is not suitable for general-purpose digital signature
applications (as specified in FIPS 186-3) that require 112
bits of security. In the case of digital signatures, SHA-1
does not provide the 112 bits of collision resistance needed
to achieve the security strength.

Now we're using hardcode 'sha1'. So this patch will make it
configurable firstly and set the default value as sha1 in
Kilo for smooth upgrade, which will be changed with sha256
in next release(L).

DocImpact
UpgradeImapact
SecurityImpact

Closes-Bug: #1288545

Change-Id: I9236cc85f4e9881ac1aa35d69bc6761a59c1b6c8
2015-01-27 09:04:27 +13:00
Matt Fischer
f4674e04a3 Improve documentation for glance_stores
The documentation for glance_stores was missing any mention of the
stores option which is required to make a default_store work if it's
non-default.

Closes-Bug: #1406182

Change-Id: I89e8fe2d8b31cd66609fd4132cb263eecb3db4c3
2015-01-12 00:28:32 +00:00
Jenkins
a9fc7e1d0f Merge "Fix spelling typo" 2015-01-08 04:47:29 +00:00
Steve Lewis
1b2c1b1a1b Fix spelling typo
Fixing a typo in documentation

Change-Id: I2e36bac15878ccd5a4285462af8689c7d188ac7b
2015-01-07 14:26:33 -08:00
Ian Cordasco
4a78e85426 Add swift_store_cacert to config files and docs
Change I5b356170ec82d033204e22f79c862201400a0a31 introduced a new
swift_store configuration option. Prior to accepting that, it was
determined that we needed to add it to the relevant configuration files
and document the option.

DocImpact

Closes-bug: 1375857
Change-Id: I4cbfae3c1ac84d6c85875d34a58dd2a87ae85d6f
2015-01-06 16:34:43 -06:00
Jenkins
9e55118515 Merge "Removed obsolete db_auto_create configuration option" 2015-01-06 04:58:02 +00:00
Jenkins
0f1ff62564 Merge "Fix document issue of image recover status" 2015-01-06 04:57:18 +00:00
Fei Long Wang
47ee547018 Fix document issue of image recover status
Based on current implementation, image in pending_delete
status can't be recovered. This patch will fix the
document issue.

Change-Id: If4fe75cfb759ae0288f378cee77a71be4a306456
2015-01-05 15:41:36 +13:00
Pawel Koniszewski
a4d50b01a0 Removed obsolete db_auto_create configuration option
When this part of 'Use common db code from oslo' blueprint was merged
into master: https://review.openstack.org/#/c/36207/ some code related
to db_auto_create was removed but some still remained in tempest tests,
documentation and configuration samples.
This fix removes every reference to db_auto_create option.

Closes-Bug: #1343907
Change-Id: Ibca3f633e61574d77339fc98fdf73340c9d9b8dc
2014-12-24 08:09:30 +00:00
Chris Buccella
99124f627f Move default_store option in glance-api.conf
[DEFAULT] default_store was deprecated in Juno and moved into the
[glance_store] section. Yet it remains in the old place in the sample
glance-api.conf. Additionally, some comments still refer to the
known_stores option, which is now simply stores.

DocImpact

Change-Id: I7215e35534fd9a77730d39b96f9ba3bf6c3ea065
2014-12-24 06:10:06 +00:00