Commit Graph

512 Commits

Author SHA1 Message Date
Takashi Kajinami 04efdf7e67 Retire puppet-murano: Remove Project Content
Depends-on: https://review.opendev.org/c/openstack/project-config/+/913292
Change-Id: I594aeaafc4f4b40978b7a9c9676bd5d5ee6e373e
2024-03-15 18:12:32 +09:00
OpenStack Release Bot 3afa562700 reno: Update master for unmaintained/yoga
Update the yoga release notes configuration to build from
unmaintained/yoga.

Change-Id: Ib4d32bd01a6a752a5146f819fbced70c40aa3696
2024-02-21 16:47:30 +00:00
Zuul 8b6c6e9868 Merge "Use new openstackclient tag" 2023-11-20 17:45:42 +00:00
Takashi Kajinami 520b8d3ecb Use new openstackclient tag
This looses dependency using the new openstackclient tag, which
requires only packages actually related to openstack CLI.

This also fixes the existing wrong tag (murano-package's' instead of
murano-package).

Depends-on: https://review.opendev.org/899594
Change-Id: I83483123e4d900112ba409c282d7607ed382e31c
2023-11-20 02:03:10 +09:00
Takashi Kajinami a08da27721 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: Ib409aed65dc909ad7bca4ce262bce065b88b3a71
2023-11-18 09:16:21 +00:00
OpenStack Release Bot ddbcaf3ddf 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: I9c6f013a0d5c8beb766b8064a4d5d990bb340cdc
2023-10-16 15:17:58 +00:00
Takashi Kajinami b5b3082b18 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: Ia6a88e962b0a0b1f47ed4369054d73f7d03e098a
2023-10-11 12:03:37 +09:00
Zuul 12614264dc Merge "Prepare 2023.2 release" 2023-10-03 17:17:53 +00:00
Takashi Kajinami 9c5bcae270 Prepare 2023.2 release
Change-Id: I363d107f61dd9bf64106b69a6186a771041db018
2023-10-03 17:11:09 +09:00
Takashi Kajinami 09dc133552 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: Iff74b93fc437722cdf18cbaea496ffe45bd45b73
2023-10-03 13:16:17 +09:00
Zuul 819b610197 Merge "[rabbit] password should be secret" 2023-09-11 16:07:20 +00:00
Zuul 821a289ccb Merge "Deprecate database options of the murano class" 2023-09-11 16:07:19 +00:00
Zuul 9c572dff50 Merge "Fix undefined variables detected in unit tests" 2023-09-11 16:07:17 +00:00
Takashi Kajinami de6d0ba604 Deprecate database options of the murano class
... because these are redundant.

Change-Id: Idbb434c68e10ffe66662f28f47aea79575ab482f
2023-09-11 14:38:33 +09:00
Takashi Kajinami b93b0cac80 [rabbit] password should be secret
... because the option accepts a password string used to connect
a RabbitMQ server.

Change-Id: I3da360119a9dc347fc90affc445256866f421741
2023-09-11 13:32:51 +09:00
Takashi Kajinami cb74a2d242 Fix undefined variables detected in unit tests
... because these cause hard-failure in Puppet 8.

Change-Id: I634af25ea7076b7462fba49f956fbe5042a14c62
2023-09-11 04:25:28 +00:00
Takashi Kajinami ea95a1b182 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: Id8970f67c8b9dc7cbf4026db28f5715f7e025fb7
2023-09-11 04:25:23 +00:00
Takashi Kajinami 840927a91c Enable memcached in acceptance tests
Now memcached is used as cache backend for some services and authtoken
middleware.

Change-Id: I2aad959b7e044a1af58874236c1736756330c2d1
2023-09-11 04:25:14 +00:00
Takashi Kajinami c2e58e36d3 Exclude release note files
The directory contains the source files to generate the release note
document, so is not required.

Change-Id: Ia430823d644287d961a2bcd51e91cc9935ebedcc
2023-08-11 17:56:23 +09:00
Takashi Kajinami 0f7730c8f4 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: I8139fecb7de25c898927691800b3d7daf4cec6a6
2023-08-11 00:47:04 +09:00
Zuul e6dc863243 Merge "dashboard: Make sure apache::params class is loaded" 2023-07-28 15:02:13 +00:00
Takashi Kajinami 1317aafcdc dashboard: Make sure apache::params class is loaded
... to avoid the unknown variables when accessing its parameters.

Change-Id: Ic44492fbad925c7508ccb05f707aa9f4e204b07a
2023-07-28 14:29:22 +09:00
Takashi Kajinami 63904655f1 Add strict validation about boolean parameters
This ensures the parameters used by if-else logic accept only boolean
values because non-boolean can result in unexpected behavior.

Change-Id: I9f98a8c3d470a45f62d1165f32a783a840aa7bdb
2023-07-26 17:32:02 +09:00
Takashi Kajinami e0f4b775dc Ensure purge_config takes a boolean value
The purge_config parameters only accept boolean values. This enforces
that using the typed parameters.

Change-Id: Ia930dbcf99653d8f7b53c2243eee838e3e3f0a67
2023-07-22 23:53:54 +09:00
Takashi Kajinami cf2c78cb44 authtoken: Ensure correct type for password
Change-Id: I1e68abb8238fff032867ca46ece6fecbbbe9268b
2023-07-12 22:02:50 +09:00
Zuul 4d4f3d50fb Merge "Do not define service resource when service management is disabled" 2023-06-26 14:48:56 +00:00
Takashi Kajinami 2d30b5673d Do not define service resource when service management is disabled
Change-Id: Id7e2b1389ff2e5fe77b6087b521922a0241c706f
2023-06-26 11:29:45 +09:00
Tobias Urdin 652f721f37 Add per module policy service refresh
Updating the policies for this project should only
refresh the services that reads it.

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

Change-Id: I61801a0dcebd2d09e45c0a96195e244fad8c0906
2023-06-20 22:25:59 +09:00
Zuul b83fda006e Merge "Remove support for Puppet 6" 2023-05-22 14:32:45 +00:00
Takashi Kajinami dfde6b441b Remove support for Puppet 6
... because Puppet 6 reached its EOL in February 2023.

Change-Id: I630a12a8bedc5290530c1e9c7fae70129b582433
2023-05-22 12:25:42 +09:00
Takashi Kajinami 3d6cfc4218 Remove deprecated database_idle_timeout parameter
This parameter has had no effect and was formally deprecated during
the previous cycle[1].

[1] bfe5a82b50

Change-Id: I83216be38873c39a34a5b324cc07e947dffe7ff7
2023-05-15 16:30:47 +09:00
Takashi Kajinami e60ebc04b4 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: I14844e8ece57555cd78d40644b8fffe2d394b695
2023-04-14 11:51:04 +09:00
OpenStack Release Bot d1970999da 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: I140c90d5d1867bb3c35c4b7c6bfc49da6524f7c5
2023-04-05 15:32:10 +00:00
Takashi Kajinami 40e3d77db0 Prepare 2023.1 release
Change-Id: Ie4bc19d837e501722f6c325627518a8474fc3ab8
2023-03-23 22:31:45 +09:00
Takashi Kajinami 316737837a Replace legacy facts and use fact hash
... because the latest lint no longer allows usage of legacy facts and
top scope fact.

Change-Id: Iddd4eef6e644b94d7a59cd3f85a43ee6d288fc49
2023-03-02 11:33:41 +09:00
Takashi Kajinami 7ddca05c7b Deprecate redundant defined type
The murano::application defined type is just a wrapper of
the murano_application resource type and does not contain quite useful
logic. We can deprecate the defined type and let users us the raw
resource type instead.

Change-Id: I63e90ce95c80f4f2f39ead858996e0545bb1f2c7
2023-02-15 17:12:01 +09:00
Zuul fdd971ec5d Merge "CentOS: Enable murano in acceptance tests" 2023-01-31 15:46:53 +00:00
Zuul 2349a0abeb Merge "Make sure services are up before creating an application" 2023-01-31 15:44:59 +00:00
Zuul 293f89ee02 Merge "Replace mocha by rspec-mocks" 2023-01-31 15:44:57 +00:00
Takashi Kajinami 9566c770c0 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: I48ce7e9537589cf15e600faa119160d003f23964
2023-01-31 15:22:53 +09:00
Takashi Kajinami 648966adf9 CentOS: Enable murano in acceptance tests
murano is already available in RDO. Let's enable it to test actual
deployment. Note that we still lack functional test coverage because
the component is not tested in integration tests.

Change-Id: I8fecacd859810fb92d5eb2a915554b959a0eb09c
2023-01-30 19:00:04 +09:00
Takashi Kajinami b502a45732 Make sure services are up before creating an application
... otherwise the murano_application resource fails because of
incomplete service configurations.

Change-Id: I5726e42d293b85819735f53511ef032b524c60f6
2023-01-30 19:00:04 +09:00
Zuul d34ded9df4 Merge "Expose policy_default_rule" 2023-01-24 10:15:36 +00:00
Zuul 366adb79b8 Merge "Remove deprecated authtoken parameters of the base class" 2023-01-24 09:59:53 +00:00
Zuul 0bd1aafd00 Merge "Do not validate optional admin_password" 2023-01-24 09:57:04 +00:00
Takashi Kajinami 859ea03fe9 Remove deprecated authtoken parameters of the base class
These parameters were deprecated in favor of the separate class added
during Yoga cycle[1].

[1] 183e14ab35

Change-Id: Idf2da530a4fefabae350ff0d67a5c8770ab22ed9
2023-01-23 18:05:23 +09:00
Takashi Kajinami 153dcef0fa Do not validate optional admin_password
The murano::admin_password parameter is now optional. Thus we should
avoid validating the parameter unless it is explicitly set.

Change-Id: I5d7cc7d5de1543bba07e358cbfe15507f11ee194
2023-01-23 18:04:24 +09:00
Takashi Kajinami 0e285d0677 Support authtoken options for cfapi
This change introduces the new class to configure the authtoken options
in murano-cfapi.conf. This is required to configure the middleware in
cfapi.

Change-Id: I8171a1dc5a14a76e4b24d832371f3b09d0a743d9
2023-01-23 09:00:28 +00:00
Takashi Kajinami ed9f173ded Fix missing order/notification for some config files
This ensures the all config files are updated during the config phase
and services are restarted when any of the files are updated.

Change-Id: Ia8d4cd4326cd3070b3bd5f1fb590bea13a5dedf4
2023-01-23 17:59:54 +09:00