Commit Graph

61 Commits

Author SHA1 Message Date
Takashi Kajinami 8b3054a13f Refactor resource dependencies
This refactors resource dependencies to improve the following points.

 - Avoid unnecessary dependencies across services. For example aodh
   service does not require cinder db.

 - Restart only api service when config files like paste.ini, which
   are used only be api service is changed.

Change-Id: I6a4c65e81b97235d0ce8a142245927c92ab6e48d
2024-03-04 09:49:06 +09:00
Takashi Kajinami 6b846d600a authtoken: Make password required
The password parameter is not really optional. This makes it
a required parameter to give more sensible validation error.

Change-Id: I4fc9a34db162b6c85a5f4bcf50c3fb77b1b6640d
2023-07-12 21:57:51 +09:00
Takashi Kajinami 43735fb127 Replace legacy facts and use fact hash
... because the latest lint no longer allows usage of legacy facts and
top scope fact.

Change-Id: Iebdb33dd18a8f8d18840ff3e5f4608f021a78bfa
2023-03-02 10:54:36 +09:00
Rajesh Tailor 499a898468 Fix typos in parameter descriptions
Change-Id: Iacebc227e074da592aa0ca8ff6f8226f3e850a66
2022-06-17 16:17:30 +00:00
Takashi Kajinami 9112b1af86 Clean up deprecated database parameters
Change-Id: Ie04052b937e501f1e3d8659a773575755e8286b5
2022-01-31 21:04:11 +09:00
Takashi Kajinami 27db72f4a0 Accept system scope credentials for Keystone API request
This change is the first step to support secure RBAC and allows usage
of system scope credentials for Keystone API request.

This change covers the following three items.
 - assignment of system scope roles to system user
 - credential parameters for authtoken middleware
 - credential parameters for oslo.limit library

Note that the credential parameters for authtoken middleware are
used in some providers, and these providers still require a project
scope credential. This will be fixed by the subsequent change.

Depends-on: https://review.opendev.org/804325
Depends-on: https://review.opendev.org/823629
Change-Id: Ic7682993b341a7d45b0957f102f5c3dbd52f9043
2022-01-06 18:00:46 +09:00
ZhongShengping 3dd0c3018f Add watch_log_file option
Add support for Using logging handler designed to watch file system.

Change-Id: I73e721e28155e090585ce4513c11e0949257c6c9
Closes-Bug: #1943212
2021-09-14 16:02:08 +08:00
Takashi Kajinami 658788fd87 Use a 'params' hash for authtoken parameters
This change adds the 'params' hash in authtoken class, to implement
the same functionality as the one recently introduced into
puppet-nova[1].

[1] 5c38281e1b698f157f03bf1815733277c541c30b

Change-Id: Ic4f451cfbd0145466ae65330729e980f5567795e
2021-08-26 22:21:42 +09:00
Takashi Kajinami a608dfee41 Add support for the keystone_authtoken/service_type parameter
Change-Id: Ia64ad11c44e149a72bc0a2588ae8c6b216fd6dec
2020-10-19 09:38:07 +09:00
Zuul d96daf9256 Merge "Do not validate database_connection format" 2020-08-31 15:37:03 +00:00
Takashi Kajinami 4c943fb458 Do not validate database_connection format
Currently we validate database_connection in 2 layers, each puppet
modules and puppet-oslo, however this makes it difficult to maintain
validation pattern because we always need to fix both.
This patch removes the validation from each puppet modules so that
we need to maitain only one place, puppet-oslo to update validation
logic.

Change-Id: If13825dff529c91508ae19e48c7918cbd2b50245
2020-08-31 00:05:56 +09:00
ZhongShengping 8a44e06a30 Add mysql_enable_ndb option
Add mysql_enable_ndb parameter to select mysql storage engine.

Change-Id: Iab922500f060ad0304ee61998c4dc1ce323f22f8
Depends-On: https://review.opendev.org/#/c/748067
Closes-Bug: #1892952
2020-08-26 11:55:52 +08: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
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
Juan Antonio Osorio Robles 63709c22f0 Accept empty strings for log_file
An empty string is an acceptable value of this entry, and it forces
logging to stdout/stderr, which is useful when running on containers.

In other modules (such as puppet-keystone) log_file defaults to
$::os_service_default. This is not the case in this module, so we
need to allow an empty value in log_file here as well.

Change-Id: I3fa4a38d21f0f7e447157ab7814a547c10a4b7d3
2017-10-09 04:34:52 +00: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
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
ZhongShengping efe9727528 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: Ib3cfc7b27945389f523d7112d88462995e7416af
Releated-Bug: #1579718
2017-04-18 11:05:31 +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
Saverio Proto 5b044addf7 neat: missing : in $::os_service_default
Change-Id: I36fb6de1f9113f5ba328c7c86003c572a1465d23
2016-12-06 10:53:34 +01: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