Commit Graph

386 Commits

Author SHA1 Message Date
Takashi Kajinami ced3a19408 Retire puppet-ec2api: Remove Project Content
Depends-on: https://review.opendev.org/c/openstack/project-config/+/912710
Change-Id: If7970a4632ff4bbe7211160f95a4c8b791cd892e
2024-03-13 16:40:36 +09:00
OpenStack Release Bot 95563a84f7 reno: Update master for unmaintained/yoga
Update the yoga release notes configuration to build from
unmaintained/yoga.

Change-Id: Ic700e8eeb8470dd933ce993c534cf0f52441c9b7
2024-02-21 16:44:32 +00:00
Zuul f0687c22e0 Merge "Drop compatibility with very old puppetlabs-inifile" 2024-01-22 17:25:02 +00:00
Takashi Kajinami b431288c78 Drop compatibility with very old puppetlabs-inifile
The logic is no longer needed since puppetlabs-inifile 0.10.0[1] and
the current minimum version is 2.0.0.

[1] 2f22483c87

Change-Id: I9ff03613d5ac5fc883cf31dad0648744d1a96ef9
2024-01-19 10:39:54 +09:00
Takashi Kajinami 1d223f97a4 Support [cache] memcache_pool_flush_on_reconnect
Depends-on: https://review.opendev.org/902861
Change-Id: I7ce7568221b59a478e5ea2b5b11ff43b0fd8b829
2023-12-14 18:02:24 +09:00
Takashi Kajinami b57927f210 Bump supported Debian version to 12 (Bookworm)
Debian 12 was released in June 2023. Recent versions of OpenStack
(actually, 2023.1 and later) no longer support Debian 11.

Change-Id: Ia3ab04b033d40efef8e1851c0ebd5a56d8e21d55
2023-11-18 18:07:32 +09:00
OpenStack Release Bot 7ab05c85ce Update master for stable/2023.2
Add file to the reno documentation build to show release notes for
stable/2023.2.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/2023.2.

Sem-Ver: feature
Change-Id: I0ac26bfb2b0fc362effaf83e347547738771c4e4
2023-10-16 15:15:58 +00:00
Takashi Kajinami 308d969e68 Remove usage of deleted manifest_dir
Recent update in rspec-puppet removed some of the config interfaces for
old puppet versions[1]. This drops usage of these interfaces to resolve
the following error in unit tests.

```
An error occurred while loading ./spec/unit/provider/manila_spec.rb.
Failure/Error: c.manifest_dir = File.join(fixture_path, 'manifests')

NoMethodError:
  undefined method `manifest_dir='...
```

[1] 316d95923c

Change-Id: I0a3be947704009a723bfc3181c5277afa12ec933
2023-10-11 11:58:45 +09:00
Zuul 2fbf6bda65 Merge "Prepare 2023.2 release" 2023-10-03 17:17:52 +00:00
Takashi Kajinami b4655e8337 Prepare 2023.2 release
Change-Id: I95d9839be6eefcbc9e33df5d81918cd44d5e16d9
2023-10-03 17:01:18 +09:00
Takashi Kajinami 3129f1a09a Bump upper version of stdlib
... because we are currently using v9.0.0 in CI. Lower version may be
bumped after 2023.2 release.

Change-Id: Ibb4fb7312f5b5b16234e016870fa4c802fd905f4
2023-10-03 13:07:40 +09:00
Takashi Kajinami 8e5598f740 Do not restart services after policy file changes
The oslo.policy library has implementations to detect change in policy
rules and reload the new rules without service restart.

Change-Id: I0f91c24b97703cc0388e2aa89511b329928aff84
2023-09-11 12:27:32 +09:00
Takashi Kajinami 3b0543c0e2 Exclude release note files
The directory contains the source files to generate the release note
document, so is not required.

Change-Id: Icb781734ed8c0a0423df0231cac32d9e97e2d86a
2023-08-11 17:50:11 +09:00
Takashi Kajinami 3c1952cf7f Add .pdkignore to exclude some files from tar ball
We've seen release job failures caused by too large tarball, which
contains irrelevant files like git history.

Let's exclude these files to reduce size of the archive.

The file is copied from the puppetlabs repositories with some files
specific to OpenStack projects added.

Change-Id: Id75afbccc3ab9a06abc489126e7f1167aaa71185
2023-08-11 00:43:19 +09:00
Takashi Kajinami 149988ed64 Ensure purge_config takes a boolean value
The purge_config parameters only accept boolean values. This enforces
that using the typed parameters.

Change-Id: Iba76019586c96cdbc1330ecec7852a7d51c6df13
2023-07-18 00:51:45 +09:00
Tobias Urdin 8d522ae1f2 Add per module policy service refresh
Updating the policies for this project should only
refresh the services that reads it.

Change-Id: I306233bb64b1070f722d7897063a700050be0058
2023-06-26 00:04:10 +02:00
Takashi Kajinami 6adf5af558 replace validate_legacy with proper data types
the validate_legacy function is marked for deprecation in
v9.0.0 from puppetlabs-stdlib.

Change-Id: Ic6aff0a3cfd27a7c2f005656c7b1d5a2cb07a199
2023-06-19 16:01:11 +09:00
Takashi Kajinami 40f1403bbc Remove support for Puppet 6
... because Puppet 6 reached its EOL in February 2023.

Change-Id: I523fc53e593cbdd575029c78d9c10bca7c34c55e
2023-05-22 12:21:31 +09:00
Zuul 452ed94837 Merge "Bump upper version of puppetlabs-inifile" 2023-04-14 07:24:18 +00:00
Takashi Kajinami b2b4d92ba7 Bump upper version of puppetlabs-inifile
... because now we use v6.0.0 in CI jobs.

Depends-on: https://review.opendev.org/880118
Change-Id: I607bec1d99086f39acd7af401d1bf603f292e2e8
2023-04-14 11:47:39 +09:00
Takashi Kajinami b65d25120c Remove cleanup of old configurations
The cleanup resources were added before 2023.1 release[1] so these
configurations should be removed when a deployment is upgraded to
2023.1.

[1] d5ffaf4cec

Change-Id: I7e2f08fc30cebf7f326ef3d5a3955956b79f11f3
2023-04-07 01:43:29 +00:00
OpenStack Release Bot 4e9d79f60c Update master for stable/2023.1
Add file to the reno documentation build to show release notes for
stable/2023.1.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/2023.1.

Sem-Ver: feature
Change-Id: Iff80ab9f3efeeb31a089ef7f57d8d7f71ab44591
2023-04-05 15:29:40 +00:00
Takashi Kajinami ed9ed82d19 Prepare 2023.1 release
Change-Id: I127f830b26a459c198c9d75f4e1f98165f16cd7b
2023-03-23 21:54:42 +09:00
Takashi Kajinami d5ffaf4cec Revert "Replace deprecated [DEFAULT] ssl_* parameters"
This reverts commit e3f44b4ef5.

Reason for revert:
The original change was wrong because ec2api uses own ssl options
instead of ones imported by oslo.service.

Conflicts:
	manifests/api.pp

Closes-Bug: #2011569
Change-Id: I592fc1da6b364f017a7892a30ff42a61d86f4d9f
2023-03-14 11:15:31 +00:00
Takashi Kajinami 1d11686c5b Replace legacy facts and use fact hash
... because the latest lint no longer allows usage of legacy facts and
top scope fact.

Change-Id: I35dced2e96a4aa3ba29a385b4c81062be4feb48c
2023-03-01 16:09:32 +09:00
Takashi Kajinami f5c271ae44 Expose policy_default_rule
The option has been managed by the underlying puppet-oslo module but
has not been configurable. This introduces the parameter to customize
the option.

Change-Id: I2382514189617edb9454c3d9e8b5f15de9c96237
2023-01-23 14:28:55 +09:00
Zuul af01001c62 Merge "Switch to Ubuntu Jammy (22.04)" 2023-01-16 00:27:09 +00:00
Takashi Kajinami 1d99f20d42 Switch to Ubuntu Jammy (22.04)
... because Focal no longer supports the recent releases such as Zed.

Change-Id: I0b0350fe368d6cd67975ac8cf241dd7dd6135a58
2023-01-15 22:20:14 +09:00
Takashi Kajinami f9be89d0b9 Drop deprecated ssl_insecure parameter
This parameter was deprecated during the previous cycle by [1] because
the actual parameter no longer exists.

[1] a72e6fe949

Change-Id: Ieb53368b269f3323f54a0d14caf00dcf9b136831
2023-01-05 18:21:44 +09:00
OpenStack Release Bot 79128e48e6 Update master for stable/zed
Add file to the reno documentation build to show release notes for
stable/zed.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/zed.

Sem-Ver: feature
Change-Id: I72fda0b8ec85f75fdf06d4760ed00e2f8bb2bd67
2022-10-20 11:03:33 +00:00
Takashi Kajinami 45515d1909 Prepare Zed RC1
Change-Id: I977eb56eae0a6ee7f5dcc41b8b76a4b14084c2d7
2022-10-05 18:13:01 +09:00
Takashi Kajinami d38a9a5e60 Enable memcached in acceptance tests
... because it is required as cache backend.

Change-Id: I7d0adaf26b63109d341b5dff35510b64805b858c
2022-09-07 01:07:57 +09:00
Takashi Kajinami d57cc885f1 Ensure [DEFAULT] ssl_insecure is removed by default
... instead of leaving the parameter unmanaged.

Change-Id: Ic549c6f05e55d4b1249a2c068935b26cae81401b
2022-07-27 16:14:54 +09:00
Takashi Kajinami 7b2f0656a4 Revert "CentOS 9: Disable unit tests dependent on puppet-postgresql"
This reverts commit c12186f850.

Reason for revert:
puppet-postgresql 8.1.0 was released and now the module supports RHEL 9
(and CentOS 9 effectively).

Note:
This change adds the service_provider fact in test fact data because
it is required by puppet-postgresql.

Depends-on: https://review.opendev.org/850705
Change-Id: I3f4b076bcd4754adfce0fba4117cf1bf26a1649f
2022-07-24 01:07:09 +09:00
Zuul 088f49c2ca Merge "Add acceptance tests for config management resources" 2022-07-15 19:43:07 +00:00
Takashi Kajinami 87e3112204 Fix wrong test description
The value with a white space should be accepted instead of being
rejected. This change fixes the wrong test case description and makes
sure the description explains what is actually tested.

Change-Id: I773e1982437b8d3e0fb8cda26bf35f0e48521481
2022-07-15 11:41:03 +09:00
Takashi Kajinami 99c68313a7 Add acceptance tests for config management resources
Change-Id: I42660216f00544e5df19e29d8f602e8184bf7b25
2022-07-10 12:50:56 +09:00
Rajesh Tailor 1a1b899275 Fix typos in parameter descriptions
Change-Id: I145c1230a44e352d180a0286865ee1e81ef00c7d
2022-06-21 12:49:04 +05:30
Zuul 788fdf2bc2 Merge "Remove support for CentOS 8 Stream" 2022-06-01 04:58:40 +00:00
Takashi Kajinami 9df17c9d6b Remove support for CentOS 8 Stream
... because RDO will provide packages for only CentOS Stream 9 for Zed
release. This change removes RHEL 8 as well.

Depends-on: https://review.opendev.org/843503
Change-Id: I4cc7720542e6e636158e4d6e9b2b4af369f0d51e
2022-05-27 02:18:51 +09:00
Takashi Kajinami c1b264f37e Remove deprecated use_tpool parameter
... because it was deprecated during Yoga cycle[1].

[1] 1b1e2eb809

Change-Id: I51c0e0f0519a3802adecc8473640bbb5219d87b6
2022-05-17 11:46:06 +09:00
Takashi Kajinami e3f44b4ef5 Replace deprecated [DEFAULT] ssl_* parameters
The ssl_* parameters in the [DEFAULT] sections were deprecated and
the [ssl] parameters should be used instead[1].

[1] 2e2940d1e17706b9d6367ff1783bde9d41891bfa

Change-Id: If5ee27626b778bda4d8cb47162691f3cced35955
2022-04-07 11:28:40 +09:00
Takashi Kajinami a72e6fe949 Deprecate support for [DEFAULT] ssl_insecure
... because the parameter was already removed[1].

The ssl_ca_file parameter is left because it is still used by
the oslo_service library.

[1] 5fc752ca6fd1588cc04f3073d1c300d985581041

Change-Id: Ia1035589c68790239c6619f4f3f9b33d7b5ae66a
2022-04-07 11:28:31 +09:00
OpenStack Release Bot c551ede0d1 Update master for stable/yoga
Add file to the reno documentation build to show release notes for
stable/yoga.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/yoga.

Sem-Ver: feature
Change-Id: I637150a68e07791ca37ad798a912902ef291ee72
2022-04-05 09:09:57 +00:00
Jiri Podivin c1ee6f9507 setuptools: Disable auto discovery
The latest release of setuptools 61.0 made a breaking change[1] and
because of this change 'pip install' fails with the following error.

~~~
error: Multiple top-level packages discovered in a flat-layout:
['lib', 'spec', 'manifests', 'releasenotes'].
~~~

Users that don't set 'packages', 'py_modules', or configuration'
are still likely to observe the auto-discovery behavior, which may
halt the build if the project contains multiple directories and/or
multiple Python files directly under the project root.

To disable auto discovery, one can do below in setup.py

~~~
setuptools.setup(..,packages=[],..)
~~~

or

~~~
setuptools.setup(..,py_modules=[],..)
~~~

[1] https://github.com/pypa/setuptools/issues/3197

Note setup.py is not used to install puppet modules. However it is used
to generate a release note, thus should be fixed.

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: I1849d008833a689d8fb17efc815dadb3ec8e2d22
2022-03-29 10:38:16 +02:00
Takashi Kajinami 919816a0dc Prepare Yoga RC1
Change-Id: I537a4810ed79de41f9c92dd3d8c9b78b6b21bc46
2022-03-11 21:43:44 +09:00
Takashi Kajinami b33590874d remove unicode literal from code
All strings are considered as unicode string from Python 3.

This patch drops the explicit unicode literal (u'...')
appearances from the unicode strings.

Change-Id: I3a7857f93490669878af76928bdf2e13991bb977
Co-Authored-By: LiZekun <2954674728@qq.com>
2022-03-08 09:10:17 +09:00
Zuul 7abad2bd64 Merge "Deprecate use_tpool parameter" 2022-03-01 23:57:18 +00:00
ZhongShengping fd6e6d6eac Prepare Yoga M3
Update the version metadata for Yoga milestone M3

Change-Id: I5bd48300d39e4aa7b6968f9794da79cc339b918d
2022-02-27 13:22:02 +00:00
Zuul 7ccf2ba1a0 Merge "Add CentOS/RHEL 9 to supported operating systems" 2022-02-24 15:27:20 +00:00