Commit Graph

47 Commits

Author SHA1 Message Date
Takashi Kajinami 11599ba429 Remove support for glance-registry service
This patch removes support for glance-registry service, because it has
been removed from glance [1].
 [1] https://review.opendev.org/#/c/738671/

Change-Id: Id05f736dbbddaff2cb90aa6678c777b9a0318e40
2020-07-28 19:41:10 +09:00
Takashi Kajinami 0b973b4648 Add support for the interface parameter in authtoken middleware
This patch adds support for [keystone_authtoken] interface parameter,
so that operators can define which endpoint should be used by authtoken
middleware.

Change-Id: I380868884abe92b35e93c3bf22d877838d0eac55
2020-07-08 11:19:04 +09:00
ZhongShengping ca939e9732 Deprecate min_pool_size option
min_pool_size option is not used,see:

https://review.opendev.org/#/c/565090/

Change-Id: I67e5c96a70ae4ebb6934129286516a24c5a22fbf
Closes-Bug: #1868511
2020-03-25 14:53:40 +08:00
ZhongShengping 16d279e21e Remove idle_timeout option
The idle_timeout parameter has been deprecated for two releases.
We can remove it.

Change-Id: Iaed980290c707463652c36928ec24f603301a183
2020-03-23 14:45:48 +08:00
Tobias Urdin ed9298e996 Convert all class usage to relative names
Change-Id: I9ff8d888e367a46ab89e3668bf4ba76c4c7c127c
2019-12-08 23:06:03 +01:00
Takashi Kajinami df5ad970cd Add support to configure service_token_roles in authtoken middleware
Change-Id: Ia198c96c30226e1ddaa5b68919d471014d5edfd0
2019-09-21 10:21:02 +09:00
ZhongShengping e82d93c1c0 Remove deprecated pki related options
The deprecated pki related options check_revocations_for_cached and
hash_algorithms option has been removed.

Change-Id: Ib692f55fa267e9fbe17d94c5116f244be02b2107
2019-08-15 11:51:36 +08:00
ZhongShengping 677a307b06 Deprecate idle_timeout option
The idle_timeout parameter is deprecated, use connection_recycle_time
instead[1].

[1]https://review.opendev.org/#/c/334182/

Change-Id: I02536803fad90dbf6edf27a85786f6e94d53d2f1
Depends-On: https://review.opendev.org/656106/
Closes-Bug: #1826692
2019-04-29 11:59:29 +08:00
Zuul c0fabacc57 Merge "Use validate_legacy" 2019-02-25 19:20:03 +00:00
Tobias Urdin 4b558f6f00 Use validate_legacy
This changes all the puppet 3 validate_* functions
to use the validate_legacy function.

The validate_legacy function has been available since
about three years but require Puppet >= 4.4.0 and since
there is Puppet 4.10.12 as latest we should assume people
are running a fairly new Puppet 4 version.

This is the first step to then remove all validate function
calls and use proper types for parameter as described in spec [1].

[1] https://review.openstack.org/#/c/568929/

Change-Id: Ib21fef57404d63579743270be4080d248a4ca8cc
2019-02-23 17:19:29 +01:00
ZhongShengping ec00aca117 Service_token_roles_required missing in the server config file
Service_token_roles_required missing in the server config file which
allows backwards compatibility to ensure that the service tokens are
compared against a list of possible roles for validity.

Change-Id: I49828052bdf33391edcd962fc6c4208c715e377a
Closes-Bug: 1778198
2019-02-15 10:03:02 +08:00
Tobias Urdin f09800121b Remove deprecated logging
Change-Id: Id33a11d8eb74bc4685b7c1e88de9f73df1404e03
2019-01-05 22:12:27 +01:00
ZhongShengping d07c62fe8f Cleanup documentation
Make sure documentation is the same and follow
the standard which we are trying to enforce on
all modules.

Change-Id: I1b54aefa27a929946aaf91c6f863466df8b13107
2018-12-13 17:11:07 +08:00
ZhongShengping f8692c4d7c Deprecate pki related options
check_revocations_for_cached and hash_algorithms are deprecated for
removel because of PKI token format is no longer supported.
Update warning message and add a release note.

Change-Id: Ic25814ff5d8a3134de59876c38da2c245c50d7ca
Closes-Bug: #1804562
Closes-Bug: #1804720
2018-12-06 08:35:28 +08:00
Tobias Urdin 779162c884 Remove auth_uri
Change-Id: Id89177db73608736f5cea0e8146ed4dd12c199b3
2018-11-29 00:12:07 +01:00
qiaomin 774a89ce0c Replace port 35357 with 5000
Now that the v2.0 API has been removed, we don't have a reason to
include deployment instructions for two separate applications on
different ports.

Change-Id: Ieb132483803085c0e97a3572fc035af3817467af
2018-05-13 00:35:56 +08:00
zhubingbing a4325bd80f neat: missing : in $::os_service_default
Change-Id: I795fe98d9b0c1eaa92d53a127cbddacc7d86e48b
2018-05-11 14:02:39 +08:00
ZhongShengping 6b0c3d4855 Deprecate auth_uri option
Option auth_uri from group keystone_authtoken is deprecated[1].
Use option www_authenticate_uri from group keystone_authtoken.

[1]https://review.openstack.org/#/c/508522/

Change-Id: I081c6f8c791ef7d4dc1d5bf8dfc2676c73e66734
Depends-On: I4c82a63baabd6b9304b302c97cd751a0103d8316
Closes-Bug: #1759098
2018-04-05 10:09:05 +08:00
Zuul 80c58df276 Merge "Remove deprecated keystone authtoken revocation_cache_time option" 2018-03-28 18:26:07 +00:00
ZhongShengping f7771d8ff6 Remove deprecated keystone authtoken revocation_cache_time option
Change-Id: I9ddf7c50051e24283656107a70ad596765e15e5c
2018-03-27 10:33:25 +08:00
ZhongShengping 7b4078bdd9 Add pool_timeout option
Add pool_timeout option to configure this value for pool_timeout with
SQLAlchemy.

Change-Id: I724f0b24b6f7ffb846f8bdf44156dcebeeaa7cae
Closes-Bug: #1757581
2018-03-22 11:09:50 +08:00
ZhongShengping 939a58346e Add use_journal option for logging configuration
This enables oslo.log to pass logging records to journald.

Change-Id: I11ad2c8557fb2e6793c5ca368d21cf08833e2f32
2018-01-15 15:45:52 +08:00
Juan Antonio Osorio Robles 03dd353f34 Expose use_json logging option
It enables JSON-formatted logging from oslo.log.

Change-Id: I11d3084fa679c8cf400f1215d098c7a1c90db602
2017-11-27 14:42:27 +02:00
Jenkins 30c3db36c2 Merge "Configure *_domain_name to Default by default" 2017-10-08 16:49:59 +00:00
Harry Rybacki 384891ba49 Configure *_domain_name to Default by default
Keystone v2.0 API was removed so we have no choice but configuring
user_domain_name and project_domain_name otherwise it fallbacks to
Keystone v2.0 and it fails. This patch sets the default value so we make
sure Keystone v3 will be used out of the box for our users.

Change-Id: If0a614520c4737e489147e18b1e9028e1f671f88
2017-10-06 09:57:30 -04:00
Juan Antonio Osorio Robles 72ed4084c0 Accept empty strings for log_dir
An empty string is an acceptable value of this entry, and it forces
logging to stdout/stderr, which is useful when running on containers.

Change-Id: Idd27daadfd1294d7f83777f851a1f39a7f860308
2017-10-06 13:00:14 +03:00
Jenkins 860c2f9815 Merge "Deprecate revocation_cache_time option" 2017-09-21 00:03:25 +00:00
Benedikt Trefzer 5712faf7f3 fix comment about registry configuration
Change-Id: I11ba7eb9225e02ca34e0912de6b77a10972aa28c
2017-09-20 16:15:00 +02:00
ZhongShengping 9ce30c3f55 Deprecate revocation_cache_time option
The revocation_cache_time is deprecated for removel because of PKI
token format is no longer supported.
Update warning message and add a release note.

Change-Id: Ia607af51a784113541ac576b9293700dbafba31d
Closes-Bug: #1717144
2017-09-14 11:25:40 +08:00
ZhongShengping 0adfc3d495 Remove deprecated keystone authtoken signing_dir option
Change-Id: I6e6cca651a8b157491cb1c2bde063c56e7c72dcd
2017-07-07 10:08:12 +08:00
Matthew J. Black a964f9f925 Allow python-memcache install from authtoken class
The python-memcache package is required if using memcached. By
default the package is not installed and the define has it set to
false. This change allows managing the python-memcache package
install from the authtoken class.

Change-Id: I7de3338061bad949f26ed0d84782124c7b61eb70
2017-01-11 11:44:55 -05:00
ZhongShengping e6a6df773b Deprecate signing_dir option
The signing_dir is deprecated for removel because of PKI token format
is no longer supported.
Update warning message and release note.

Change-Id: Ifaad2dffab360df2790dac8d9ad8c9a87f719f6b
Closes-Bug: #1652700
2016-12-28 09:03:30 +08:00
ZhongShengping 54f6ba25f7 Add deps to authtoken
The authtoken class needs to include the ::glance::deps class.

Change-Id: I554f17cd2c5ef47eeb72df8e9a116493389e11e3
2016-11-24 11:58:21 +08:00
Iury Gregory Melo Ferreira ddfd2150b9 Remove old authtoken options
Since we are in ocata lets remove all old parameters in api
to configure the keystone_authtoken section

Change-Id: I4dc0bd544f91fd52ad437b4c3ebbd16a43895726
2016-11-15 23:40:36 -03:00
Iury Gregory Melo Ferreira 8684c85d12 Remove verbose
Since we are in Ocata we should remove the
verbose option that was deprecated

Change-Id: I454aa625c5b0c4139309962dd4c1088dd52ef749
2016-10-25 20:01:14 -03:00
Mykyta Karpin 88713c96f7 Fix documentation for log_dir parameter
Change-Id: I280409ece958a0b2c5e25cc6ad511834b8cec47c
Partial-Bug: #1600294
2016-10-18 17:23:55 +03:00
Alex Schultz ffa154c77a Update log_file documentation
log_file should be set to $::os_service_default and not to the boolean
false because the boolean false gets interpreted as a file name.

Change-Id: I2b7f3ad6f04b24e357948bd23782b89764e632e5
2016-09-08 17:52:59 -06:00
Denis Egorenko 1e09e553ed Move Glance to new authtoken scheme
Use glance::<service>::authtoken to configure keystone_authtoken
section in glance configs, with all parameters required
to configure keystonemiddleware.

Also changed auth_type to auth_strategy, because auth_type is
related to keystone authentication.

Change-Id: I722a1e41b2cee0b3040c37f07adfd13c33edaa5c
Closes-bug: #1604463
2016-08-05 13:46:22 +03:00
Clayton O'Neill 18b010975c Add hooks for external install & svc management
This adds defined anchor points for external modules to hook into the
software install, config and service dependency chain.  This allows
external modules to manage software installation (virtualenv,
containers, etc) and service management (pacemaker) without needing rely
on resources that may change or be renamed.

Change-Id: If683fbd098e701a3c4da91941cf818b18b41b209
2016-06-17 13:17:34 +00:00
Iury Gregory Melo Ferreira cf604fc6a6 Deprecate verbose option in logging
Option "verbose" from group "DEFAULT" is deprecated for removal.
The parameter has no effect.
-Deprecated verbose for logging and init
-Remove verbose in README
-Remove verbose from tests.

If this option is not set explicitly, there is no such warning

Change-Id: I7e58412fe26962337845b3cb9d67679bac0709d8
2016-05-18 01:12:46 -03:00
Carlos Camacho 283e33c00b Add support for db_max_retries param
The db_max_retries parameter regulates the number of reconnection
attempts performed after an error raised rather than at startup.

Change-Id: Ic1192deded14f9640aa02fe00f5339d3a878de70
Closes-Bug: 1579718
Co-Authored-By: Giulio Fidende <gfidente@redhat.com>
2016-05-12 20:40:35 +00:00
Denis Egorenko af8da24358 Totally drop Qpid support
Qpid was removed in Mitaka from Oslo Messaging, so now we can
drop it in manifests.

Change-Id: I336c99b7709f061734ca09128a366361f13a934e
2016-04-18 14:15:28 +03:00
iberezovskiy 558fa4d212 Configure oslo related parameters using puppet-oslo module
Database, logging and policy parameters for api, registry
and glare services are configured from oslo defines now.

Change-Id: Iee5ee3adfaf9cef1dd3f634806d47c3c52c648fb
2016-04-14 14:20:18 +03:00
Mykyta Karpin 037545fb3e Switch glance to os_service_default facts
Change-Id: If860858e2bdfe0387b6a3260b81a97625d05b9fe
2016-04-06 18:56:34 +03:00
iberezovskiy b6a9a2fd93 Support of PyMySQL driver for MySQL backend
Add ability to use python-pymysql library
as backend for MySQL connections.
Update acceptance tests to use pyMySQL.
Docs: https://wiki.openstack.org/wiki/PyMySQL_evaluation
The same implementation as it's done for keystone:
https://review.openstack.org/#/c/242134/

Change-Id: If7a19e4c5492ea2464358144e706c62ee2c8a78a
2015-12-03 13:04:57 +03:00
Denis Egorenko d6d4ddbe8f Introduce glance::db class
Another modules already implement a <component>::db class that
is not implemented in Glance. This commit aims to apply here the same logic.

Change-Id: Icd65a3303ccd512d5e34598d3e3a78bc924f8128
2015-12-01 19:12:34 +03:00
Yanis Guenane 3231e35320 Put all the logging related parameters to the logging class
Currently logging configuration is splitted in two distinct classes, the init.pp
and the logging.pp classes.

This review aims to centralize all logging related parameters in a single class,
the logging.pp one.

The impacted parameters are :

  * use_syslog
  * use_stderr
  * log_facility
  * verbose
  * debug
  * log_dir
  * log_file

This change remains backward compatible with what is currently in place

Change-Id: Ic268104fd9bc77bc142fc635285b0459f3d4314f
2015-10-01 10:18:55 +02:00