Commit Graph

75 Commits

Author SHA1 Message Date
gugug 110346a30f Retire the puppet-congress project - Step 2 Remove Project Content
Unfortunately Congress project has been retired already[1], so it is
useless to maintain puppet modules for it.

The annoucement can be found in the following link.
 http://lists.openstack.org/pipermail/openstack-discuss/2020-June/015555.html

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

Depends-On: https://review.opendev.org/#/c/737133/
Change-Id: I348780c0f6900f06e378ee9117d6ac51749b82e9
2020-06-21 01:42:41 +09:00
Takashi Kajinami e0336e6ced Remove password hash generation in each puppet modules
... and migrate it to openstacklib so that all logics about database
configuration are implemented in one common place.

Depends-on: https://review.opendev.org/#/c/728595/
Change-Id: I79f49b3c39283e75a2cfeb753d73dfcb642910aa
2020-05-20 09:13:48 +09:00
Zuul 4ac58afd3b Merge "Add CentOS8 to nodesets" 2020-05-11 22:25:50 +00:00
Takashi Kajinami de16936da0 Add CentOS8 to nodesets
Change-Id: I66c8852aa57919df827729acb80526c93dd2b160
2020-05-10 21:43:45 +09:00
Takashi Kajinami 7d079648ff Use anchor to require necessary packages
... so that correct packages are required without re-defining them in
resource implementations.

Change-Id: I581b2b19f0d707c74db7de055399209d221b158c
2020-05-04 14:56:14 +09:00
Takashi Kajinami eb5e55e5ef Expect python3 client package in CentOS8
In CentOS, we expect to have python3 client package in 8.x while we
expect to have python2 in 7.x .
Fix unit tests to expect the correct version according to os major
version.

Change-Id: I0d56fa9d9a323017d53062d4779dd916816fd0ef
2020-03-31 22:20:08 +09:00
ZhongShengping bbe1b14801 Deprecate min_pool_size option
min_pool_size option is not used,see:

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

Change-Id: Id297ac8406620d6c53216e7c2fd28eaefe685783
Closes-Bug: #1868511
2020-03-25 14:53:40 +08:00
Tobias Urdin dd9e20b7b6 Convert all class usage to relative names
Change-Id: I81e530a24f90452054229a65a5d32baf96b9848f
2019-12-08 23:04:00 +01:00
ZhongShengping a4b4637fc3 Introduce the new rabbit_heartbeat_in_pthread option
oslo.messaging RabbitMQ driver have now a new option that allow user to
run the RabbitMQ heartbeat over a native python thread.

These change allow user to use this new option.

Change-Id: Ie38832955897dee71ec60276fe30474ce9f4b2bf
Closes-Bug: #1840868
2019-08-21 14:23:19 +08:00
ZhongShengping 49d89d34cd Add openstackclient installation to the client class
The repo is inside the openstackclient plugin commands[1].

[1]https://docs.openstack.org/python-openstackclient/latest/cli/plugin-commands.html

Change-Id: Ifa350a8056df0b5ff75d7755df4f05ed2a187272
2019-05-17 16:31:15 +08:00
ZhongShengping 1f2c317559 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: I84c45109e8b8b6767c9ede3f5a854e99eba83b30
Depends-On: https://review.opendev.org/656106/
Closes-Bug: #1826692
2019-04-28 15:00:07 +08:00
ZhongShengping c1e3f13bd7 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: I95abaa0720ad38378dadf6d97114ee4f255d9713
Closes-Bug: 1778198
2019-02-15 10:03:01 +08:00
ZhongShengping 20ddad5bc8 Fix lint issue
Change-Id: Iccc67f6db1e23d458591dbd8d0d67c772669c72a
2019-01-25 12:23:43 +08:00
Zuul 933488794e Merge "Remove redundantly tested code" 2019-01-19 00:08:03 +00:00
Tobias Urdin b19ff77960 Remove redundantly tested code
Remove code that is redundantly tested.

This should not be tested here but in puppet-oslo
where this logic resides.

If we keep this and we do changes in puppet-oslo we
will break these unit tests, this is something we need
to sort out for all modules.

Change-Id: If3c6145f65a2d2fa63a3f9d38078b4bca021f811
2019-01-18 12:02:38 +01:00
Tobias Urdin 09672d69cc Inherit pyvers from openstacklib::defaults
Change-Id: I3c19214409a7af5925d3d018e64519605d5cb25a
2019-01-17 21:22:40 +01:00
Tobias Urdin c7ea1a1d5f Dont include logging in init by default
Change-Id: Ibbfe066da8ecdcfb281285483a9622f4695001c1
2018-11-29 10:06:27 +01:00
ZhongShengping 7936f5f50e 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: I7a5f8e21629ef8db6fec5c8050deb632a09f87c6
Closes-Bug: #1804562
Closes-Bug: #1804720
2018-11-23 10:21:33 +08:00
Tobias Urdin 0a229a7eed modulesync: sync and add nodepool-bionic for beaker
Change-Id: I8e937c94283ed04f4232583fdfda8604fcb504be
2018-07-18 16:17:31 +02:00
Zuul 9b1408ab3a Merge "Replace port 35357 with 5000" 2018-05-28 03:49:59 +00:00
Tobias Urdin aef7941268 Remove deprecated parameters
Removes deprecated parameters that has been
deprecated for one cycle or more.

Change-Id: Ic8a697525dd659dff13e91a00b573890e61a30ff
2018-05-21 23:04:13 +02:00
qiaomin 449593df6a 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: Ic1d30e49dc878f997c4d8e0eb228b2e80da578c1
2018-05-13 01:01:22 +08:00
zhubingbing db704ac195 Missing deps for config.pp unit test
Change-Id: Ib2739d8b4bbc11132be9adef3c899f1da7756d4d
2018-04-19 09:21:55 +08:00
zhubingbing 160a251f99 Fix unit test for client.pp
Missing tag for unit test.

Change-Id: Iaa851ebdc1890f6ce0fd74376acbb7c46bcd9555
2018-04-14 12:06:39 +08:00
Zuul 2454b0e79e Merge "Remove temporarily added package" 2018-04-13 15:13:25 +00:00
zhubingbing f22a4baa7a Fix lint issue
Change-Id: I968a84f19cfd44ebe39f7ff608925ed6e1745296
2018-04-13 14:47:43 +08:00
Zuul 9abdfbdf54 Merge "Debian is using python3-congressclient" 2018-04-13 03:14:59 +00:00
zhubingbing 937174c8e4 Debian is using python3-congressclient
Change-Id: I314960ec65ab05f08ec54493178603a1977af48b
2018-04-12 13:35:33 +08:00
ZhongShengping 0092fa0f95 Remove temporarily added package
The problem of package dependencies has been solved and
we can delete the temporarily added packages.

Change-Id: I04d6327b1917e42efa5d7b0a48ebcf540b51b3a3
2018-04-07 15:33:52 +08:00
ZhongShengping fc67380b90 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: I4c80914e75e341c939bd765d94eb233441cf0d61
Depends-On: I4c82a63baabd6b9304b302c97cd751a0103d8316
Closes-Bug: #1759098
2018-04-03 16:54:59 +08:00
Zuul c0c30a1944 Merge "Add pool_timeout option" 2018-03-24 14:52:47 +00:00
melissaml 96e7b6c6c2 fix a typo in documentation
Change-Id: I0a32e85242f6ce7b967f5de64452f232dda6f510
2018-03-23 08:16:00 +08:00
ZhongShengping 7f6e61f534 Add pool_timeout option
Add pool_timeout option to configure this value for pool_timeout with
SQLAlchemy.

Change-Id: I3c068e51ebc4a6dd71a53adef63f52676a0cc5ee
Closes-Bug: #1757581
2018-03-22 11:09:50 +08:00
ZhongShengping be770957ad Add 'openstack-db' tag to db-sync Exec resource
In order to make easy orchestration on all OpenStack db-sync, add this
tag so people can use this tag in composition layer.
A use case it to set some orchestration to make sure MySQL Galera is
ready before running any Exec with this tag.

Change-Id: I901de48e1a8644499a7ab60c7d632cf17eee7e20
Closes-Bug: #1755102
2018-03-12 16:33:06 +08:00
ZhongShengping 12815da5bd Add some kombu options
Adds the kombu_failover_strategy option for configuring
oslo.messaging.rabbit. This will determines how the next RabbitMQ node
is chosen in case the one we are currently connected to becomes
unavailable.

Change-Id: I6362858759b3af0e350ac52ffe4f89bba59526fb
Closes-Bug: #1748353
2018-02-09 14:17:17 +08:00
ZhongShengping 2d54e73e66 Add use_journal option for logging configuration
This enables oslo.log to pass logging records to journald.

Change-Id: Ib746f31438dc80f0ae519ee738d54b09d0153e6d
2018-01-15 15:37:11 +08:00
Emilien Macchi 83fcf0a23d Add group to policy management
The move of policy.json into code means the file may not exist. We've
added support to ensure that the file exists in the openstacklib but we
need to make sure the permissions are right for each service. This adds
the group information to the policies so it works right.

Depends-On: I26e8b1384f4f69712da9d06a4c565dfd1f17c9ed
Change-Id: Ic0b3bfee864ad58c7469e9eff2265b700ada9a50
Co-Authored-By: Alex Schultz <aschultz@redhat.com>
2018-01-10 14:22:34 -08:00
ZhongShengping 460dadee73 Expose use_json logging option
It enables JSON-formatted logging from oslo.log.

Change-Id: Idb8b76b343c604502fd5b151d92e502bbfad108b
2017-12-01 21:54:10 +00:00
ZhongShengping e5499039ce 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: Id9af211a39a59ee1dab34a800c5be2a7f50d7649
2017-10-13 14:28:52 +08:00
ZhongShengping 4dbb68ee00 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: Ic08c00b15b1fd3d50f88711a7d4057dd13d1d850
Closes-Bug: #1717144
2017-09-14 11:08:17 +08:00
ZhongShengping 714978792e Deprecate oslo.messaging rpc_backend option parameter
Oslo.messaging uses the transport_url to represent the rpc and
notification messaging driver to use and its full configuration. The
rpc_backend configuration option is deprecated for removal and
should not gate oslo.messaging driver configuration options.

This patch:
* deprecate rpc_backend
* remove conditional check
* update spec tests
* add release note

Change-Id: I0ba609ca5c311b52635efd3c3364a258fd197d5f
Closes-Bug: #1708976
2017-08-07 13:49:33 +08:00
ZhongShengping 0e5b333b88 Add api_paste type/provider for congress
Add congress_api_paste_ini type/provider for congress.
Also add the capability to configure api-paste.ini with config.pp.

Change-Id: Ifb7150fb383636efa0dc76a68bafdfd70ee623cb
Closes-Bug: #1483371
2017-07-26 11:31:56 +08:00
ZhongShengping 553dbc46fa Fix unit test
The db_backend_package name has changed in puppet-oslo[0], so fix it.

[0]: https://review.openstack.org/#/c/467582/

Change-Id: I89e6831e1cb54d3d7caa53aa18c02774a11c5904
Closes-Bug: #1693403
2017-05-25 11:11:42 +08:00
ZhongShengping 64127659ab oslo policy: check puppet resource instead of actual config in spec
Change-Id: I36fc2d21e5b026b9774365ec5a369a8bfd78af10
2017-05-23 14:02:36 +08:00
ZhongShengping b99bd3eec6 Set debug to true
In order to better view log error messages, set log debug to true.

Change-Id: I1aff61b267a33a205891101770d06495896c03f7
2017-05-05 15:08:12 +08:00
ZhongShengping 306f7ad6e7 oslo db: check puppet resource instead of actual config in spec
Change-Id: I92ec50ddc8a0f73bbe36f5f13c9cf8c1b7e31a63
2017-04-09 12:07:22 +08:00
Mykyta Karpin afc6bdff36 oslo log: check puppet resource instead of actual config in spec
Change-Id: I73ec5f00cb2ada7f4436741a5168cc5141fc18fa
2017-03-22 19:03:17 +02:00
Jenkins 156421b649 Merge "Fix typo" 2017-03-15 15:36:37 +00:00
ZhongShengping b41262157a Fix ci
The review[0] is merged, we should update other releated
puppet modules in order to fix ci.

[0]https://review.openstack.org/#/c/444248/

Change-Id: Ia1ac9a4444daaa3f386469339e4830618832f204
Closes-Bug: #1672362
2017-03-13 21:03:40 +08:00
ZhongShengping 7689812bc2 Fix typo
Change-Id: Ief0b20920a1fb78b70a48d31ba79797df963a77c
2017-03-13 20:10:41 +08:00