55 Commits

Author SHA1 Message Date
Pranali Deore
02de7a7d2a Refresh Glance example configs for bobcat milestone 1
Change-Id: I4d21cbcd0b2b09b88dd73575d9f9e36bf037bded
2023-05-07 19:27:00 +00:00
Pranali Deore
1d54dddaa0 Refresh Glance example configs for antelope milestone 3
Change-Id: Id27f12aecce5a981dedf0bc3513a2f19a1e2a24d
2023-02-16 11:15:59 +00:00
Pranali Deore
f7f5389426 Refresh Glance example configs for antelope milestone 2
Change-Id: I8c9f9057f8601f31f5292450cc05819d24bf0d5c
2023-01-03 05:25:46 +00:00
Pranali Deore
5d38dbdb9c Refresh Glance example configs for zed milestone 3
Change-Id: I5febc9f4094f88caab3ed18026a8cb7b6a345d45
2022-08-29 07:29:04 +00:00
PranaliD
d4e5320ea3 Refresh Glance example configs for Zed milestone 2
Change-Id: I3a67d3b996d3dd3a5001d8bcc5c5ecf7700593e4
2022-07-12 13:29:36 +00:00
Takashi Kajinami
08a0a738b3 Remove options for oslo.db thread pool support
Thread pool support in oslo.db was already deprecated[1], and it is not
actually used by Glance.

[1] 74c6bf266e0b86ceb4726cad9268f134d423bae8

Change-Id: I79e934f34f33953c821b6529a34e44dcf2a9688c
2022-06-24 09:20:41 +09:00
Pranali Deore
416a56c492 Refresh Glance example configs for Zed milestone 1
Change-Id: If174762b20ae0ddb468757a81dbb38e01f4061e4
2022-05-18 11:21:51 +00:00
Erno Kuvaja
69a4de827f Sync example configs for Yoga
Some updates in configs, especially deprecation message for db
threading.

Change-Id: I62efa836a5e02641ac12ae7d786e1bee79ebb487
2022-03-01 16:14:41 +00:00
Abhishek Kekane
0bd3791e15 Refresh Glance example configs for Xena milestone 3
Change-Id: Ib0d69c875ed6291b0ab2b82e737d201f7041bbc8
2021-09-03 13:38:41 +00:00
Abhishek Kekane
1d8117b093 Refresh Glance example configs for Xena milestone 2
Change-Id: I034497da6cd977ad6d025bf183f51c3ff1d3df40
2021-07-09 05:06:40 +00:00
Abhishek Kekane
dbab664039 Refresh Glance example configs for Wallaby milestone 3
Change-Id: Ifc957de2bcf4d22c1b7cba31ce2b467df9d5aa85
2021-03-08 08:59:50 +00:00
Abhishek Kekane
19229d7990 Refresh Glance example configs for Victoria milestone 3
Change-Id: Ibd02882c1e42de3db7f78b50dd974b99b0d9ded1
2020-09-03 05:53:06 +00:00
Erno Kuvaja
96507d3eaf Update sample configs post deprecation removals
Change-Id: Ib3deb9361887caeea606db4955cd9d35d263de0a
2020-07-14 10:45:56 +00:00
Abhishek Kekane
68e5fa35cb Refresh Glance example configs for Ussuri milestone 3
Change-Id: I1c2c14c3e1997b1adbc28022ea03fd541554bdb6
2020-04-10 14:15:57 +00:00
Abhishek Kekane
1ec86b668c Refresh Glance example configs for Ussuri milestone 2
Change-Id: Iac910e2c0a745d53464712b8714191c4275857c2
2020-02-12 06:10:07 +00:00
Erno Kuvaja
0cefe020df Refresh Glance example configs for Train
Change-Id: I9930dc0fa1c7da883ecb1b77a52a492e2d3e7baa
2019-10-01 10:38:44 +01:00
Erno Kuvaja
d9546dce75 Images API version bump and config sync
This change contains minor version bump to Images API to
indicate latest changes to the API.

Also has config file sync for for M3 release.

These two are combined for saving some gating time due to
busy infra at Train milestone 3 deadline.

Change-Id: I13133c32734751d43cc3afed9b68d015cebd5b6b
2019-09-16 13:25:45 +01:00
Erno Kuvaja
71ea2e9afd Stein example configs refresh
Change-Id: Ifbe84399618547044df9546908045ccd6dc6fb7c
2019-03-21 16:38:32 +00:00
Erno Kuvaja
87a59ae52b Sync Rocky example configs
Change-Id: Ied1902018ded20b35bfa69200a1faee34fb3a4d6
2018-08-07 13:53:32 +01:00
Brian Rosmaita
978be1f57e Regenerate sample config files
Regenerate the config files for Rocky-2 milestone release.

Change-Id: I4d008daacd500ffcc8c0551ae085af854828b8c1
2018-06-07 09:54:09 -04:00
Brian Rosmaita
7aaa4fcff6 Regenerate sample configuration files
Regenerate the configuration files for Queens RC-1

Change-Id: I010517b2075b84bff1d0fcc2cba17b794a271bcf
2018-02-07 16:01:54 -05:00
Jesse Pretorius
e078c7e3b2 Correct related section for enable_image_import
The documentation references the section DEFUALT
instead of DEFAULT. As this is most likely a
spelling error which will cause confusion, it is
better if we fix it.

This patch corrects the config option information
and includes an updated set of sample config files
generated from the current code including the fix.

Change-Id: If3c5e334aa1fa2ff5a28f52c00330d42cb9bcf9d
2017-11-17 18:33:45 +00:00
Brian Rosmaita
3ce6c58a33 Refresh config files for Pike RC-1
Regenerated the configuration files before branching.

Change-Id: I262b00b663a6eea2b310b6dc46bb220ed7a1349d
2017-08-10 12:11:33 -04:00
lingyongxu
7c1764b85d Update the documention for doc migration
This patch is proposed according to the Direction 10 of doc
migration(https://etherpad.openstack.org/p/doc-migration-tracking).

Change-Id: I71ced5bd5a0979acf21a60c6157b0af98f061f20
2017-08-02 07:22:46 +00:00
Brian Rosmaita
f7adc0f22c Refresh config files for Ocata RC-1
Regenerated the config files before branching.

Change-Id: I0fee0f4604997ccb388dd8e25dee9d388fe21f14
2017-02-02 23:40:19 +00:00
Ian Cordasco
c3baf74f26 Update sample config files for Ocata-3
In preparation for the last Ocata beta milestone, let's update our
configuration files. This will also allow for other folks who are
updating config files to create much smaller diffs.

Change-Id: Id644879bb9e93a291c7935eaeacf664bbf46efc2
2016-12-21 07:04:03 -06:00
Jenkins
48ee8ef479 Merge "Keep consistent order for regenerated configs" 2016-09-13 20:28:53 +00:00
venkatamahesh
25b492c019 Fix a small markup typo
This typo throws error while generating tables in config-reference
of openstack-manuals

Change-Id: If0be47225fbe8c59f7e0679dbced361fda5a960e
2016-09-03 17:48:50 +05:30
Nikhil Komawar
80006b43a7 Keep consistent order for regenerated configs
There's a bug in glance_store ( bug 1619487 ) that results in a
reordering of the store related configurations everytime the tool to
autogenerate configs is used.

This commit generates the Newton config in the deterministic way by
using the suggested solution described on the bug.

For more information and background discussions see change
Iea2c538b37182191445cc5c1f8b2d9dceed06343

Related-Change: I3146b8597a5d89da49b84d6653edacc3067c2c71

Change-Id: Idbea98865ccfc14563ab4357764383e1e7021542
2016-09-01 23:50:19 +00:00
Nikhil Komawar
11cfe49b8f Regenerate config files for Newton
During the release many config options are changed or updated. The
sample config files provided in tree (under etc/*) need to be updated
using the autogeneration tool as these files are being used in different
places. Some examples are devstack gates, downstream packagers shipping
with the same (or using defaults from these files), etc.

Hence, before we cut a release we need to refresh the config files
shipped with tree to match the changes done in the source code during
the release cycle.

This commit is intended to refresh the entire set of config files for
Newton. They include:

    * glance api and registry related configs
    * scrubber, cache and manage utilities' configs
    * any other configs coming from downstream like oslo libraries,
      glance_store, etc.
    * belonging to affiliated code base like glare.

Change-Id: Iea2c538b37182191445cc5c1f8b2d9dceed06343
Co-Authored-By: Nikhil Komawar <nik.komawar@gmail.com>
Co-Authored-By: Hemanth Makkapati <hemanth.makkapati@rackspace.com>
2016-09-01 14:02:37 -04:00
Nikhil Komawar
b5f31eef57 Refresh some config files based on bug fixes
Change IDs I123be151fdda8037e62ba21600e63c45fdc90c8d and
Ie332236d6e11e0cb63114bc1c68c3a8691f1f1ae fix adding some missing config
options to be included as a part of the sample configs. We need to
refresh the configs to include those to be part of the latest sample
set. This commit refreshes some of the config for that purpose.

This change has been inspired while writing release notes here
If0b8b731c2a1a1c41fc612d506c350073d832efa . It was observed that the
bugs mentioned missing config opts in the sample files and have been
marked fixed. However, in order to make the release notes consistent
with that claim and to mention, as a part of the release notes, that
those bugs have been fixed, refreshing this has become important.

Change-Id: I534a0dc2d9f82ab70517cde12bfd40d4f5ae69e2
Related-Bug: 1568723
Related-Bug: 1568894
2016-08-02 18:32:00 -04:00
Erno Kuvaja
9ef5ed125c Remove unused enable_v3_api config option
The option was used to enable experimental Artifacts API
that was moved to glance-glare service. This config option
does not do anything and is removed to avoid confusion.

Removed apropriate sections from example config files as well.

Change-Id: Ie84f3f65ec88fd30197758ac319ef5b2f4c313e2
Closes-bug: 1556050
2016-03-11 12:00:55 +00:00
Niall Bunting
1d459fda31 Update the config files
This should be the last time reordering happening by the
configgenerator. In future we should see only actual changes but to get
there we need to do this massive change once more.

Closes-Bug: 1553330
Change-Id: Icca0a94a40ba640ca75e01b5cd0d061dacd334ff
2016-03-09 10:31:57 +00:00
Alexander Tivelkov
b974a63660 Move Glance Artifact Repository API to separate endpoint
EXPERIMENTAL Glance v3 API has been removed in favor of standalone API
(EXPERIMENTAL Artifacts API of v0.1).
This patch introduces a new process entry point to run on a different
port (9494 by default), with its own configuration file and a paste
config.

A controller stub for old /v3 api remains in the glnace.api package for
the compatibility with existing paste configuration which may reference
it. This stub returns a 301 redirects to glare endpoint if it is present
or 410 errors otherwise.

To reuse  the existing version_negotiation middleware some refactoring
has been made.

Implements blueprint: move-v3-to-glare

Change-Id: I5b7bd4cdcc5f2a40fc4a5f74bcc422fd700c4fb0
2016-02-10 18:34:55 +03:00
wangxiyuan
a378d420e0 Typo fix
Add the missing blanks.

Change-Id: I7f29575591cac1df26d6dba3f4e246bff097e149
2015-10-20 03:56:47 +00:00
Erno Kuvaja
fa30891cf6 Update Glance example configs to reflect Liberty
Adding taskflow_executor_opts into the opts so they will be included.

Closes-bug: #1496012

Depends-On: I52ebf810f4699826baa2bdf91d28e24d902cf950
Change-Id: I9c0988a70f691482258f5f3ba9a5cf5601a81ddf
2015-09-23 22:25:43 +00:00
Hemanth Makkapati
843d43355a Scrub images in parallel
Prior to this change, images were being scrubbed serially while
the image locations, if multiple, were being scrubbed parallely.
For the general case, this may not achieve much performance gain as
the number of images is likely to be more than the number of image
locations per image. Hence, this change attempts to parallelize
image scrubbing while leaving image locations to be scrubbed
serially.

Also, though eventlet greenpool was being used, greening the world
wasn't done. As is, it's unlikely to achieve the intended gains. So,
this change also monkey patches essential python modules.

Finally, this change also makes the pool size configurable. This
offers the flexibility to choose between serial or parallel
scrubbing. Also, parallel scrubbing can be regulated to a desired
level by altering the pool size.

DocImpact
Implements: blueprint scrub-images-in-parallel
Change-Id: I5f18a70cd427e2c1e19a6bddeff317a46396eecc
2015-09-15 11:49:16 -05:00
Zhi Yan Liu
7258e403df Remove scrubber cleanup logic
From Havana version glance was enhanced to be able to clean
pending-delete images up based on their location status db recorded [0].
So from the release, we don't really need two separated clean up logics
in scrubber internal any more - one logic to deal with booking file and
db, other one to handle db duplicately which I'm going to remove here.

[0]
https://wiki.openstack.org/wiki/ReleaseNotes/Havana#Multiple_Image_Locations

Change-Id: I6a1b42f4557d1822f049b2c88ce9f2c00d5c6483
Signed-off-by: Zhi Yan Liu <zhiyanl@cn.ibm.com>
2015-03-16 20:39:56 +08:00
Zhi Yan Liu
882049a613 Using oslo.concurrency lib
Replace processutils and lockutils modules of oslo-incubator with
oslo.concurrency lib.

Change-Id: Ic1af8753a70f1aada22efe8132e48cbc16e14f3f
Signed-off-by: Zhi Yan Liu <zhiyanl@cn.ibm.com>
2014-12-17 13:20:54 +08:00
Zhi Yan Liu
bdc4951d29 Update glance.openstack.common.policy and cleanup
1. Sync glance.openstack.common.policy up to latest
version from oslo-inc.

2. Clean useless modules which depended by policy
module and pinned gettextutils module there. For
latter one, we are going to use glance.i18n instead.
 * jsonutils
 * strutils

docImpact

Closes-bug: #1288178
Closes-bug: #1387973
Partial-bug: #1381870
Change-Id: I84511ab1ee600e618985448dfbfbdc26cb130370
Signed-off-by: Zhi Yan Liu <zhiyanl@cn.ibm.com>
2014-12-01 15:08:58 +08:00
Zhi Yan Liu
70e0a246f9 Adding status field to image location -- scrubber changes
Adding a status field to image's each location property, each location
status can be 'active', 'pending_delete' and 'deleted'.

Under location's status information Scrubber service can make cleanup
based on DB records also but not a dedicated queue-file for each image.

This is third part of this change which covered scrubber DB queue
enablement and double queue supporting.

Partially-Implements BP: image-location-status

Change-Id: I8ee9e9254c8371bbbce8b28d643e3d474b2361bc
Signed-off-by: Zhi Yan Liu <zhiyanl@cn.ibm.com>
2014-07-20 02:47:30 +08:00
Jon Bernard
d09e1447b2 Document default log location in config files
It's not immediately obvious where log output will go if the 'log_file' and
'use_syslog' directives are either missing or commented out.  This patch updates
the documentation in the config files to mention the stdout default.  This
should help remove any confusion when configuring logging for glance.

Change-Id: I36f2a9d30bdee1949e60f413b7f181631c564ed5
Closes-Bug: #1248292
2013-11-05 16:52:00 -05:00
Zhi Yan Liu
85075f4b11 Scrubber refactoring
* Adding multiple locations image support.
* Adding lock protection to prevent race condition between glance-api
and glance-scrubber service.
* Refactoring scrub queue code.

Implement bp: glance-scrubber-refactoring
docImpact

Change-Id: I050ff212d73ace8e84dcd800245b608210d6b29a
Signed-off-by: Zhi Yan Liu <zhiyanl@cn.ibm.com>
2013-09-04 12:36:25 +08:00
Paul Bourke
fa45e3ed51 Add missing Keystone settings to scrubber conf
The provided conf file for glance-scrubber was missing the auth settings
stanza required to make it work 'out of the box' in a Keystone environment
such as Devstack.

Also add the "Security Options" line just below for consistency with the
other configs.

Change-Id: I1182fd3a7a79c0f6aeb601d65c31e462fb3610bb
2013-06-11 10:49:48 +00:00
Jenkins
dd6ff0e53d Merge "Encrypt scrubber marker files" 2013-02-12 05:22:08 +00:00
Paul Bourke
cb272bbfc9 Encrypt scrubber marker files
Files written to scrubber_datadir can contain credentials in plain text.

Update schedule_delayed_delete_from_backend to make use of
metadata_encryption_key to encrypt the uri before writing it out.

Fixes LP Bug #1112586

Change-Id: I03ff36f6b57f58a5e5de28bf8d48e7ce0216e5b3
2013-02-01 15:27:09 +00:00
Mark McLoughlin
5e672def89 Update glance config files with log defaults
The default for the verbose config option is False and the sample config
file should reflect that.

Also, comment out the defaults of the config options so that it is clear
that the sample file is showing the default in the code rather than
overriding it.

Change-Id: I3913ea54465658d93dc56e014dfe5d911b0541d6
2013-01-21 16:58:33 +00:00
Eoghan Glynn
14593a3b96 Split out paste deployment config from the core glance
*.conf files into corresponding *-paste.ini files.

Fixes LP #815208

Change-Id: I5acb8488cc25bb3c7dd735c8c2b0fe62fcea8e5e
2012-01-17 11:40:26 +00:00
Mark McLoughlin
ba44d1c384 Add generic PasteDeploy app and filter factories
These generic factories allow us to dump the copied and pasted
app_factory and filter_factory methods in the codebase.

The main difference is the paste configuration changes from:

  [app:apiv1app]
  paste.app_factory = glance.api.v1:app_factory
  ...
  [filter:cache]
  paste.filter_factory = glance.api.middleware.cache:filter_factory

to this:

  [app:apiv1app]
  paste.app_factory = glance.common.wsgi:app_factory
  glance.app_factory = glance.api.v1:API
  ...
  [filter:cache]
  paste.filter_factory = glance.common.wsgi:filter_factory
  glance.filter_factory = glance.api.middleware.cache:CacheFilter

Apart from reducing code duplication, this will also allow us to have
the generic factories inject other data into the apps and filters.

Change-Id: I1d2be5630ab61d29b8948ff88d58e6e1b11c2e5f
2011-12-07 12:42:03 +00:00
Jason Kölker
27b3df281f * Scrubber now uses registry client to communicate with registry
* glance-api writes out to a scrubber "queue" dir on delete
* Scrubber determines images to deleted from "queue" dir not db

Change-Id: Ia5574fc75f1a9c763bdef0f5773c2c182932b68a
2011-09-12 18:29:19 -05:00