Commit Graph

630 Commits

Author SHA1 Message Date
Takashi Kajinami 50b3fc6ac7 Retire puppet-sahara: Remove Project Content
Depends-on: https://review.opendev.org/c/openstack/project-config/+/910452
Change-Id: Ifbcdf71f515ab24da67c9350b958cb987b1badc8
2024-02-28 10:55:28 +09:00
OpenStack Release Bot 23a403b211 reno: Update master for unmaintained/yoga
Update the yoga release notes configuration to build from
unmaintained/yoga.

Change-Id: I6bae9b9c4e41989dfe457905d47b92bafef55795
2024-02-21 16:51:41 +00:00
Zuul 385f457344 Merge "Use new openstackclient tag" 2023-11-20 18:30:24 +00:00
Takashi Kajinami 52c37b82fc Use new openstackclient tag
This looses dependency using the new openstackclient tag, which
requires only packages actually related to openstack CLI.

Depends-on: https://review.opendev.org/899594
Change-Id: I512e1ca72004c5265806d342f5a6f101682c85a8
2023-11-20 00:39:54 +09:00
Takashi Kajinami fb68f971b3 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: I829999c12f52c0c826cfc7ffd87e748eacde5fee
2023-11-18 09:25:15 +00:00
Zuul bf28727072 Merge "Stop reading keystone_authtoken options" 2023-11-17 18:21:10 +00:00
Takashi Kajinami 6da1886edc Stop reading keystone_authtoken options
Using credentials in keystone_authtoken options for sahara_* resources
was deprecated some cycles ago[1].

[1] 67d927581e

Change-Id: I1d0e5bd29034daf70b8fc8ec531f071e8b640475
2023-11-16 17:38:31 +09:00
Zuul 9aa46d3292 Merge "Add defined type to manage plugin packages" 2023-11-15 16:46:47 +00:00
Takashi Kajinami 1445e3aca7 Add defined type to manage plugin packages
Sahara has separate plugin packages according to the software used in
the data processing cluster, and in Ubuntu we have to install
the required plugin packages additionally.

This introduces the defined resource type which can be used to manage
plugin packages.

Change-Id: I224a5e32bd20aa86e14d738efd80d88ff9505a39
2023-11-10 22:31:00 +09:00
OpenStack Release Bot c0e1c9cd52 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: I10e81c841725410b3fe649ffda12ba2a9bf81f53
2023-10-16 15:20:05 +00:00
Takashi Kajinami 743331c9f4 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='...
```

This also removes explicit setting of mock module. The definition is
no longer required since we bumped puppetlabs_spec_helper to v 5.0.0.

[1] 316d95923c

Change-Id: I026d047d4b11be70b871dea18d39f58ab09bd2e0
2023-10-11 12:09:20 +09:00
Zuul 2728b1fcf3 Merge "Prepare 2023.2 release" 2023-10-03 17:19:32 +00:00
Takashi Kajinami 1662f5e28f Prepare 2023.2 release
Change-Id: Id3acad1ca22aef8077e0427ab130d866317bb0e8
2023-10-03 17:14:07 +09:00
Takashi Kajinami 235704682f 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: I568241b35fd7b98c7203e78e227c962c0a38204a
2023-10-03 13:26:04 +09:00
Zuul 6e56f2fa0d Merge "RabbitMQ: Add support for quorum queue options" 2023-09-15 16:02:27 +00:00
Takashi Kajinami 62a49a7b3c RabbitMQ: Add support for quorum queue options
Depends-on: https://review.opendev.org/894866
Change-Id: I096fb482c769f94538d1d09c4d0d729ea5aaf180
2023-09-15 14:11:31 +09:00
Zuul ad7c1b7966 Merge "Updated links in documentation to be safe links" 2023-09-11 08:05:19 +00:00
Takashi Kajinami bda6a45bd4 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: Iea046f3261afed60078f5b23df649cb4303d4595
2023-09-11 12:32:46 +09:00
guolimin.lc fdbe333446 Updated links in documentation to be safe links
Change-Id: I76c8ea6379189f894543cce8af8eb91777aba756
2023-09-08 16:21:13 +08:00
Zuul 26a0220249 Merge "Ensure openstackclient is installed at the right timing" 2023-08-11 15:36:45 +00:00
Takashi Kajinami 825e8cc5cf Ensure openstackclient is installed at the right timing
This adds the order enforcement to make sure that openstackclient
package is installed before completing the service phase, so that
openstack CLI is available when neutron resources are created.

Change-Id: Ie92d92969360203c44e7651e9f5ed9b9518d1c85
2023-08-11 11:35:49 +00:00
Takashi Kajinami 942d2c1c68 Exclude release note files
The directory contains the source files to generate the release note
document, so is not required.

Change-Id: If2976a6dda4462b6859093f225cdbd07a8f01ad2
2023-08-11 17:59:26 +09:00
Takashi Kajinami ee04822d41 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: Ibc1ce7fdc78f592deac5b1e5bac1508c6790c549
2023-08-11 00:51:57 +09:00
Takashi Kajinami 2ed0dce1a7 Ensure purge_config takes a boolean value
The purge_config parameters only accept boolean values. This enforces
that using the typed parameters.

Change-Id: I899bcf4b9cd0d8c49a39c3aba4c5e94db9864a2f
2023-07-22 23:52:22 +09:00
Takashi Kajinami 71b0fca354 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: I366ee11502901d749e8439f37d780eae19501d95
2023-07-12 22:06:58 +09:00
Tobias Urdin e2b1d99501 Add per module policy service refresh
Updating the policies for this project should only
refresh the services that reads it.

Change-Id: I72b2d29962e82e9c254c2254663865da2b747e3b
2023-06-26 00:06:22 +02:00
Takashi Kajinami cf3c3f6dbe replace validate_legacy with proper data types
the validate_legacy function is marked for deprecation in
v9.0.0 from puppetlabs-stdlib.

This also adds validations about some boolean parameters.

Change-Id: Icc48a21778809dd84447b9b797503143d5ca88bf
2023-06-21 13:43:10 +09:00
Takashi Kajinami 9aff8372ae Remove support for Puppet 6
... because Puppet 6 reached its EOL in February 2023.

Change-Id: I0ccbeda2594913910ff22209fbde0d503e2fdefc
2023-05-22 12:30:15 +09:00
Takashi Kajinami f5c8e217f1 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: I1e5521e5eb2a42ab1dbe4fd80f422d07a97bab20
2023-04-14 11:54:35 +09:00
OpenStack Release Bot ed92c81081 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: If65b1521edeef6fcf4f8fc97123cf42e4bb988aa
2023-04-05 15:35:59 +00:00
Takashi Kajinami 6f10388b81 Prepare 2023.1 release
Change-Id: Id92f7ef8a6b5a993cf97ea7fef4b856b788a952b
2023-03-23 15:51:06 +00:00
Zuul f175b9b2c6 Merge "Ubuntu: Check TCP port in acceptance tests" 2023-03-23 14:54:31 +00:00
Takashi Kajinami 139519db55 Ubuntu: Check TCP port in acceptance tests
Now we deploy sahara in both CentOS and Ubuntu thus we can validate
the tcp port in Ubuntu as well.

Change-Id: Ib771f21664059bc11bd1503cff7f55fb9ce42d17
2023-03-22 16:34:56 +09:00
Takashi Kajinami b82c6813c1 [DEFAULT] periodic_coordinator_backend_url should be secret
This option can sometimes contain secrets.

For example when redis coordination backend is used and authentication
is enabled in redis, the plain redis password is put as an URL element.

[DEFAULT]
periodic_coordinator_backend_url=redis://:password@127.0.0.1:6379

Closes-Bug: #2012246
Change-Id: I514dbead158c72c43c8e077aad2a4935b3b99040
2023-03-20 21:13:03 +09:00
Takashi Kajinami bced4f3e03 Replace legacy facts and use fact hash
... because the latest lint no longer allows usage of legacy facts and
top scope fact.

Change-Id: I8dc98b5988ae84df176c3baff520ad3e8d8bd390
2023-03-02 13:30:31 +09:00
Zuul c530c74482 Merge "Replace mocha by rspec-mocks" 2023-01-31 15:59:14 +00:00
Takashi Kajinami aee89870e6 Replace mocha by rspec-mocks
puppetlabs_spec_helper recommends rspec-mocks instead of mocha[1] and
it uses rspec-mocks by default instead of mocha since v 5.0.0[2]

This is the prep work to adapt to that migration.

[1] https://github.com/puppetlabs/puppetlabs_spec_helper/#mock_with
[2] 493f0cbc1c

Closes-Bug: #2004135
Change-Id: I6336a8fbf1a2ca5036740086d9a5ac13a5a28113
2023-01-30 13:26:51 +09:00
Takashi Kajinami d0ed2d9ffb 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: If738d191a661ee78a6494dc7c05640da3758bb5e
2023-01-23 14:41:33 +09:00
Takashi Kajinami fc55f3068f Switch to Ubuntu Jammy (22.04)
... because Focal no longer supports the recent releases such as Zed.

Change-Id: Ib662a7dd9b09c2bc71b526341168b87df76c15bb
2023-01-15 22:31:35 +09:00
OpenStack Release Bot 81a64d9168 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: I86049db34b197a15d825cef1893ec72056582c0e
2022-10-20 11:11:53 +00:00
Takashi Kajinami 5b9f473c44 Prepare Zed RC1
Change-Id: I7a7adc74592173285caf8dfd42b66cb2cdce2382
2022-10-05 18:32:02 +09:00
Takashi Kajinami f92533696c Enable memcached in acceptance tests
... because it is required as cache backend.

Change-Id: Ibb9ef40fc3649fc0b31074258e46c01450b1d817
2022-09-07 01:01:02 +09:00
Takashi Kajinami d3700691e3 Add Apache WSGI logging parameters for pipe/syslog
Add parameters for advanced logging configurations in Apache to
support piped logging and support for syslog (via mod_syslog
available in Apache >= 2.5.0)

Co-Authored-By: Andy Botting <andy@andybotting.com>
Change-Id: If4d8e52c05cb94336318f45fe4a53eaf91a5c880
2022-08-26 17:45:13 +09:00
Takashi Kajinami 960499168f Adapt to new type validation in puppetlabs-apache
The puppetlabs-apache module is enforcing more strict data type
validation[1].

This change updates the default values to adapt to that change.

[1] f41251e336

Closes-Bug: #1983300
Depends-on: https://review.opendev.org/851652
Change-Id: I043ced8b30b1fc8e2176d201e38bb8b241701641
2022-08-02 23:11:36 +09:00
Zuul c00d15899b Merge "Expose headers option of apache::vhost" 2022-07-30 14:58:41 +00:00
Takashi Kajinami b8230c0616 Revert "CentOS 9: Disable unit tests dependent on puppet-postgresql"
This reverts commit 8b78315331.

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: Icb2b0e3772d3d5ba4893060ac36453d8ac2e5d63
2022-07-24 00:57:32 +09:00
Zuul e173a19d55 Merge "Add acceptance tests for config management resources" 2022-07-15 20:14:10 +00:00
Zuul b2041aba3e Merge "Switch provider to manage paste.ini file" 2022-07-15 20:14:09 +00:00
Takashi Kajinami a592c0b7e4 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: Ieaf604623506271f9e66fdd19923d86772e71f8e
2022-07-15 11:54:16 +09:00
Takashi Kajinami f404047fc0 Add acceptance tests for config management resources
Change-Id: Ia797bc05dec669552e06302acd46b1a3d69b59a0
2022-07-10 12:51:36 +09:00