205 Commits

Author SHA1 Message Date
Cyril Roelandt
7839ab0925 Remove unused option "owner_is_tenant"
This option has been deprecated since Rocky.

Change-Id: I8edc957ad50ec28d80a06e76912f4226cea53562
2021-02-11 16:17:10 +01:00
Abhishek Kekane
19229d7990 Refresh Glance example configs for Victoria milestone 3
Change-Id: Ibd02882c1e42de3db7f78b50dd974b99b0d9ded1
2020-09-03 05:53:06 +00:00
Abhishek Kekane
5071a60c97 Refresh Glance example configs for Victoria milestone 2
Change-Id: Ie8b8e8557098e756399b106bafc03bbcb39c29b0
2020-07-28 16:07:08 +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
Cyril Roelandt
772bae36ea Remove all references to sheepdog
The sheepdog driver has recently been removed from glance_store.

Change-Id: I58f0d20cadfae7a7df8b5dce6d8d4c66eaa2a148
2020-04-02 15:39:57 -05:00
Abhishek Kekane
1ec86b668c Refresh Glance example configs for Ussuri milestone 2
Change-Id: Iac910e2c0a745d53464712b8714191c4275857c2
2020-02-12 06:10:07 +00:00
Abhishek Kekane
0eacf2da18 Refresh Glance example configs for Ussuri milestone 1
Change-Id: Iaac5c65f10f39027dd191b2397d8e5141bc9e12d
2019-12-19 16:30:17 +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
1f3d56fdcc Deprecate owner_is_tenant
Mark the owner_is_tenant configuration option as deprecated.
Includes a release note and regenerated configuration file.

Change-Id: I10c354aa82d269136eb743195d07411da231bfda
Implements: blueprint spec-lite-deprecate-owner-is-tenant
2018-03-13 13:50:34 -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
Maxim Nestratov
ab7152ea28 Add ploop to supported disk_formats
Lite-Spec-Id:Ib45de5ff2fe7fc4e1c2d6f8cb6772e017ef891c2
Change-Id: Ice74c4bf9ed2efae519930f33b2fa2b3c162e8c4
2016-12-22 21:14:14 +03: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
Stuart McLaren
fc0b47beb6 Add 'vhdx' disk format.
This patch adds the Hyper-V 'vhdx' disk format to the Glance
configuration. This allows users to upload 'vhdx' images by default.

'vhdx' disks can have much larger storage capacity than the older 'vhd'
format [1].  (Plus, anything with 'x' in the name is awesome.)

DocImpact: Docs will need to be updated to indicate that the 'vhdx'
disk_format is now one of the default disk formats supported by Glance.

UpgradeImpact: Adds 'vhdx' to the default list of disk_formats.  Operators
will no longer need to configure specifically to use 'vhdx' disks.

[1] https://technet.microsoft.com/en-us/library/hh831446(v=ws.11).aspx

Spec-Lite: https://review.openstack.org/#/c/347626
Change-Id: I4e172c78d7afeb8be5a0123238efe3d8e4b044c9
2016-07-28 16:34:00 +00:00
Jamie Lennox
b0d0b1d0ba Use http-proxy-to-wsgi middleware from oslo.middleware
The HTTP_X_FORWARDED_PROTO handling fails to handle the case of
redirecting the /v1 request to /v1/ because it is handled purely by
routes and does not enter the glance wsgi code. This means a https
request is redirect to http and fails.

oslo.middleware has middleware for handling the X-Forwarded-Proto header
in a standard way so that services don't have to and so we should use
that instead of our own mechanism.

Leaving the existing header handling around until removal should not be
a problem as the worst that will happen is it overwrites an existing
'https' header value set by the middleware.

Closes-Bug: #1558683
Closes-Bug: #1590608
Change-Id: I481d88020b6e8420ce4b9072dd30ec82fe3fb4f7
2016-06-09 09:52:04 +10: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
Jenkins
1f6ff26863 Merge "Deprecate use_user_token parameter" 2016-03-07 19:31:12 +00:00
Mike Fedosin
80fef06497 Deprecate use_user_token parameter
Parameter 'use_user_token' in glance-api.conf
was considered as harmful and not acceptable
for real deployments, because if it's disabled,
it changes system behaviour and allows any regular
user to perform requests with admin credentials.

In functional tests the default value was set
to True to prevent possible failures in the future.

Besides, several admin authN parameters were
deprecated as well, because they are useless without
'use_user_token'.

All required information was added to related
documentation sections, sample config file was
updated as well.

https://wiki.openstack.org/wiki/OSSN/OSSN-0060

Change-Id: Icfef49d787fa58e2af2e60e4fdc96633c5f0c010
Related-bug: #1493448
2016-03-07 17:06:04 +03: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
Boris Pavlovic
ca5cdb59e1 Fix the wrong options in glance-api and glance-registry confs
OSprofiler arguments do not have "profiler" group which makes
these config files wrong.

However they are used by DevStack, so this patch updates them
using:

   tox -e genconfig

Change-Id: Ia18ec3e7b2e94d0a0ba6cb8562a0b457fb5ef406
2016-01-12 16:54:29 -08:00
Michael Krotscheck
761751064b Added CORS support to Glance
This adds the CORS support middleware to Glance, allowing a deployer
to optionally configure rules under which a javascript client may
break the single-origin policy and access the API directly.

For Glance, the paste.ini method of deploying the middleware was
chosen, because it needs to be able to annotate responses created
by keystonemiddleware. If the middleware were explicitly included
as in the previous patch, keystone would reject the request before
the cross-domain headers could be annotated, resulting in an
error response that was unreadable by the user agent.

A special consideration has been made to accomodate Glance's
nonstandard configuration files, by using 'glance-api' as the
value of oslo_config_project in paste.ini. This is to trigger
automatic oslo configuration loading for paste-loaded middleware,
in order to ensure that it finds glance-api.conf rather than
glance.conf.

DocImpact: Add link to CORS configuration in Admin Guide
OpenStack CrossProject Spec:
   http://specs.openstack.org/openstack/openstack-specs/specs/cors-support.html
Oslo_Middleware Docs:
   http://docs.openstack.org/developer/oslo.middleware/cors.html
OpenStack Cloud Admin Guide:
   http://docs.openstack.org/admin-guide-cloud/cross_project_cors.html

Change-Id: Icf5fb91a0b9e6736e70314c72c1c99c5f170ba53
2015-12-04 08:41:20 -08:00
Dave McNally
f666e5f5e6 Add the Docker container format
A Docker image is a tar archive typically containing a container
filesystem. In order to use the nova-docker compute driver nova and boot
docker instances glance support of the docker container format is
required.

This patch adds the Docker container format to the Glance configuration.

DocImpact: Docs will need to be updated to indicate that the docker
container_format is now one of the default container formats supported
by Glance.

UpgradeImpact: Adds 'docker' to the default list of container_formats.
Operators will no longer need to configure specifically to use docker
containers.

Closes-Bug: #1519402
Change-Id: Ifa206686086232a5599e7bc27a852bc5f3186ebc
2015-12-01 16:42:51 +00:00
wangxiyuan
a378d420e0 Typo fix
Add the missing blanks.

Change-Id: I7f29575591cac1df26d6dba3f4e246bff097e149
2015-10-20 03:56:47 +00:00
Erno Kuvaja
b1d2d938d2 Return missing authtoken options
Example configs were missing keystone_authtoken section after moving
to generated config files. This change returns that to generation.

Closes-Bug: #1500361

Change-Id: I6ee82c38061d483cea7254d155d9a72436880e84
2015-09-28 12:08:06 +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
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
makocchi
f703b6037c Keeping the configuration file with convention
Add whitespace into "key=val" string in the conf file.

Change-Id: I22e0310862eec344c85c2f0bfe617f4bbdfeb1e1
Closes-Bug: #1477305
Closes-Bug: #1477302
2015-07-27 17:08:23 +09:00
Ian Cordasco
6ca3951454 Change default digest_algorithm value to sha256
In I9236cc85f4e9881ac1aa35d69bc6761a59c1b6c8 it was promised that the
default for digest_algorithm would change from sha1 to sha256. The sole
purpose of this commit is to upgrade the default to sha256 as promised.

DocImpact
SecurityImpact
Change-Id: I12be91db7b86e335a84c9ebed86dac3ba09051cb
2015-07-02 16:26:56 +00: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
Sabari Kumar Murugesan
5d7bfcb325 Taskflow engine mode should be parallel in sample conf
The default for taskflow engine mode is parallel and the sample
conf needs to be fixed.

Change-Id: I3ef5322473eeb1ca7606ea8bdb4948b86c118e2c
2015-05-12 11:28:43 -07: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
Ian Cordasco
cb7d5a4795 Use graduated oslo.policy
This change:

- Adds oslo.policy to the requirements list
- Accounts for changes in Enforcer initialization
- Accounts for changes to config options
- Removes incubated version of oslo.policy
- Updates the in-tree etc/config files

UpgradeImpact

Partially Implements Blueprint: graduate-policy
Change-Id: I5acb1e0f809098991f05ca3b6d78d4d88d98f2db
2015-03-17 23:50:02 -05:00
Jenkins
f5360bbd6e Merge "Fix typo in configuration file" 2015-03-11 21:46:37 +00:00
Jenkins
3e7b0a0bbc Merge "Update config and docs for multiple datastores support" 2015-03-11 19:16:38 +00:00
Cindy Pallares
077094292e Fix typo in configuration file
Change-Id: Ie654857994901089eaad542631ef3378a6cb1d9d
2015-03-11 11:06:18 -05:00