Commit Graph

571 Commits

Author SHA1 Message Date
Zuul 029a6266e5 Merge "Revert "Fix wrong wsgi script path"" 2024-03-18 15:48:34 +00:00
Takashi Kajinami fb05772b3f Revert "Fix wrong wsgi script path"
This reverts commit 8588e30b39.

Reason for revert:
The wsgi script generated by setuptools was restored by [1].

[1] https://review.opendev.org/c/openstack/mistral/+/912085

Change-Id: Iaccdd9db4c9ae8a9ed59bbf782ddd8f39a90a1bc
2024-03-18 16:13:48 +09:00
Zuul ace4e1f837 Merge "Expose rabbit_transient_quorum_queue" 2024-03-14 18:10:20 +00:00
Takashi Kajinami 7a25ce6626 Expose rabbit_transient_quorum_queue
Depends-on: https://review.opendev.org/911021
Change-Id: Ifa8f02117e70c46bb2140e2e4f9196c110a556a0
2024-03-14 09:44:56 +09:00
Takashi Kajinami 7d966c22fa Refactor resource dependencies
This refactors resource dependencies to avoid unnecessary dependencies
across services. For example zaqar service does not require cinder db.

Change-Id: I46c28803dd2eb0e88a25d165c768f61f565fd8e6
2024-03-13 00:33:39 +09:00
Takashi Kajinami 572fb50018 Stop hard-coding config file for db sync
The mistral-db-manage command by default loads
/etc/mistral/mistral.conf. Removing the override allows us to use
additional paths such as mistral.conf.d in the future.

Change-Id: Ia7e988df093e16dd6ad53ce2d2f8e6b340daf887
2024-03-05 12:34:29 +09:00
Takashi Kajinami f5d1ba9844 healthcheck: Expose ignore_proxied_requests parameter
Depends-on: https://review.opendev.org/909807
Change-Id: Iccfc9100684e07d25750a95e238b73de9f70ccf3
2024-02-26 01:51:46 +09:00
Takashi Kajinami 8c6cb4c5e4 healthcheck: Expose allowed_source_ranges
... which was added to puppet-oslo recently.

Depends-on: https://review.opendev.org/905557
Change-Id: Ie589f60a70768bb3e08b1df916215c25be9e59d9
2024-02-26 01:49:01 +09:00
OpenStack Release Bot 1702276f82 reno: Update master for unmaintained/yoga
Update the yoga release notes configuration to build from
unmaintained/yoga.

Change-Id: I9da3630c1e2dd959c5d6af68cd64578698f2f73f
2024-02-21 16:47:13 +00:00
Zuul 6e115b44d7 Merge "authtoken: Make password required" 2023-12-18 23:25:30 +00:00
Takashi Kajinami 10df882aaf 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: I4b770f07a249fadd44d8bafc15219f4503d10778
2023-12-18 10:26:41 +09:00
Takashi Kajinami a2ec0e36d3 Add support for healthcheck middleware options
Depends-on: https://review.opendev.org/772202
Depends-on: https://review.opendev.org/800405
Change-Id: I7b20aa48cb16927211a862e264bb51ae4bb50f42
2023-12-14 14:35:35 +09:00
Joel Capitao 8588e30b39 Fix wrong wsgi script path
Since [1] the wsgi script is not generated with PBR anymore.

[1] https://review.opendev.org/c/openstack/mistral/+/900566

Closes-Bug: #2045782
Change-Id: I15ce5ed4f607b0df9b386bb67326db3f790a3d37
2023-12-07 11:48:19 +01:00
Zuul 60d5294c9b Merge "Use new openstackclient tag" 2023-11-20 18:27:43 +00:00
Takashi Kajinami 8cbc3c6e78 Use new openstackclient tag
This looses dependency using the new openstackclient tag, which
requires only packages actually related to openstack CLI.

Also, mistralclient is not required by mistral itself so the service
package tag can be removed.

Depends-on: https://review.opendev.org/899594
Change-Id: I9752cc53f02fbe78afc286aadf91c6aa55d4116b
2023-11-20 00:43:08 +09:00
Takashi Kajinami b88a333040 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: Ia941fd4fb82f13ecf571adf36dd4c8178cbcae0e
2023-11-18 09:16:14 +00:00
OpenStack Release Bot b9652f717b 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: I3c3fdd96429b59231f47440e22d205559c762e54
2023-10-16 15:17:47 +00:00
Takashi Kajinami 29899b8bda 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: I57c3a3cad3b19804c9e29058c7a9db8ab4ae1692
2023-10-11 12:03:12 +09:00
Zuul 324cb59276 Merge "Prepare 2023.2 release" 2023-10-03 17:13:14 +00:00
Takashi Kajinami 5f7af12cd3 Prepare 2023.2 release
Change-Id: Ib1aabf5a53eecf5bf9e30fc59f7c4f0cff2e19b6
2023-10-03 17:10:35 +09:00
Takashi Kajinami 8364f77402 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: I1b059a3503edae44b249266ec7f26ca888de727e
2023-10-03 13:15:31 +09:00
Zuul 95d9f4e6e9 Merge "RabbitMQ: Add support for quorum queue options" 2023-09-15 15:48:55 +00:00
Takashi Kajinami 40e4a6e173 RabbitMQ: Add support for quorum queue options
Depends-on: https://review.opendev.org/894866
Change-Id: Ibea0fbb75f512b752883c95240ae8d4681d64483
2023-09-15 10:47:57 +09:00
Takashi Kajinami 7035d18d1e 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: I86cad4b5487c4725e88f48ab50287694949d46ff
2023-09-11 12:30:07 +09:00
Zuul ae605c6555 Merge "Ensure openstackclient is installed at the right timing" 2023-08-11 15:43:16 +00:00
Takashi Kajinami 44bb2aec36 Exclude release note files
The directory contains the source files to generate the release note
document, so is not required.

Change-Id: I8380856223a3cb166ea55c59a493af8631b966eb
2023-08-11 17:55:58 +09:00
Takashi Kajinami 815859ae16 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: I773eaeec90bb09626aaac1c16d8a64d11ec30bd0
2023-08-11 17:41:32 +09:00
Takashi Kajinami 4299929f57 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: I6917e8b602c751e32e2751a145e9d5d3f26056c2
2023-08-11 00:46:44 +09:00
Takashi Kajinami 533955f2d1 Ensure purge_config takes a boolean value
The purge_config parameters only accept boolean values. This enforces
that using the typed parameters.

Change-Id: I4b156ed71c9ce982e07b9d1fee53cf2562dc7340
2023-07-22 23:48:22 +09:00
Zuul c0576f554f Merge "Fix leftover of removed parameters" 2023-06-26 15:29:55 +00:00
Takashi Kajinami e906efb7a3 Fix leftover of removed parameters
This drops the logic which still tries to look up some parameters
which were already removed by [1].

[1] 2c082fc561

Change-Id: Ia9b49bad5e54c6140e2b57272fddfbd61d8b1c45
2023-06-26 11:24:20 +09:00
Tobias Urdin d6f55e497f Add per module policy service refresh
Updating the policies for this project should only
refresh the services that reads it.

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

Change-Id: I497fca8249bbf67f26c0840f362b1297339964e6
2023-06-20 22:21:20 +09:00
Takashi Kajinami 07a13a0c2d Remove support for Puppet 6
... because Puppet 6 reached its EOL in February 2023.

Change-Id: I88fe65fdaff67bedd8d3bb74eae4619cc2a8780b
2023-05-22 12:25:13 +09:00
Takashi Kajinami b139344931 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: I780a0c56aa39aa3f18de78a067d2f14aafd6a9bd
2023-04-14 11:50:40 +09:00
OpenStack Release Bot f01191bbf6 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: I1c51d55f0ed30374b373d6565f312f5fcefacb7a
2023-04-05 15:31:55 +00:00
Takashi Kajinami fc18a3d642 Prepare 2023.1 release
Change-Id: I031ba9fe73da5686090fc838105d2a7674e39eb8
2023-03-23 15:56:58 +00:00
Zuul f8f959139c Merge "Ubuntu: Check TCP port in acceptance tests" 2023-03-23 14:00:42 +00:00
Takashi Kajinami 60284206c8 Ubuntu: Check TCP port in acceptance tests
Now we deploy mistral in both CentOS and Ubuntu thus we can validate
the tcp port in Ubuntu as well.

Change-Id: I565ad3dabb621f536038447bd01ccea8a0adf146
2023-03-22 16:40:25 +09:00
Zuul ac360063ff Merge "Add strict validation about boolean parameters" 2023-03-21 15:07:11 +00:00
Takashi Kajinami 86bf3f0ec5 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: Iabbf0e8e9fc46a982f46b2008d6f4fd50ca9ed90
2023-03-19 22:42:42 +09:00
Takashi Kajinami 6aeb6d3a3b Verify tcp port in Ubuntu/Debian
... in addition to CentOS, because mistral service is now deployed in
all operating systems.

Change-Id: I25dc10d0050d7e69f34857991f11530717f426ce
2023-03-14 01:04:11 +09:00
Takashi Kajinami 2ba57c62b9 Replace legacy facts and use fact hash
... because the latest lint no longer allows usage of legacy facts and
top scope fact.

Change-Id: Id54c1a0efdb797ab10ddfb002c790d7e01e4e078
2023-03-02 11:31:00 +09:00
Zuul aa6a31772c Merge "Replace mocha by rspec-mocks" 2023-01-31 15:43:24 +00:00
Takashi Kajinami a495b646be 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: I9056254a69cf58a4b30fefa246ace64042a70af7
2023-01-30 13:25:34 +09:00
Takashi Kajinami a3acc248af 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: I76fa6b53328cbb329a8d5e1fc3ffb00674f2a7d1
2023-01-23 14:36:53 +09:00
Takashi Kajinami d15fb87491 Switch to Ubuntu Jammy (22.04)
... because Focal no longer supports the recent releases such as Zed.

Change-Id: I18d88ce825a22fa43004fa147fdf13bff5eec693
2023-01-15 22:24:59 +09:00
OpenStack Release Bot c79017a506 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: I1f7f8c6837bd4e9a4d708ba88af0e9201d058c96
2022-10-20 11:07:14 +00:00
Takashi Kajinami c6bf5a6f58 Prepare Zed RC1
Change-Id: I7a4381a040bff15fcb942f060b4a495bea453f56
2022-10-05 18:18:54 +09:00
Takashi Kajinami 6d8cad8d36 Enable memcached in acceptance tests
... because it is required as cache backend.

Change-Id: I2eb7ee14905d9db13af7cf32f96a0f92b0e61c20
2022-09-07 00:31:23 +09:00