848 Commits

Author SHA1 Message Date
Takashi Kajinami
01839d8dcb Prepare final stable/2023.1 release
Change-Id: I103462577ea2533824b70fe39c621e6bd17ebf1f
22.0.1 2023.1-eom
2024-12-05 21:37:35 +09:00
Takashi Kajinami
77cf1d31f7 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: Ibea10c7048160e93501d11f941fa3e089a99f133
(cherry picked from commit 8956637035501feca30f5111560df84f411fa24a)
2023-08-15 06:42:04 +00:00
Tobias Urdin
56e4f87456 Add per module policy service refresh
Updating the policies for this project should only
refresh the services that reads it.

Change-Id: I2364aed9cadceaa9b71b570357975b93634f71a2
(cherry picked from commit fd90649c82116148bd474a57544ce5a345de5ac5)
2023-07-06 19:17:31 +00:00
f9903e5c6b Update TOX_CONSTRAINTS_FILE for stable/2023.1
Update the URL to the upper-constraints file to point to the redirect
rule on releases.openstack.org so that anyone working on this branch
will switch to the correct upper-constraints list automatically when
the requirements repository branches.

Until the requirements repository has as stable/2023.1 branch, tests will
continue to use the upper-constraints list on master.

Change-Id: Ie3a00ba3f6fded0c4a195e6ec324cb4bc07681b0
2023-04-05 15:31:39 +00:00
49de503e6a Update .gitreview for stable/2023.1
Change-Id: I689403087e59ec946255d14264b7cd6fe1c5d0bb
2023-04-05 15:31:38 +00:00
Takashi Kajinami
bd6f2d656f Prepare 2023.1 release
Change-Id: Ibf14f8e95eda81a765a01def8e17de8839c418e1
22.0.0
2023-03-23 22:40:43 +09:00
Zuul
d23bbbde40 Merge "Allow customizing status of cron job" 2023-03-13 16:58:34 +00:00
Takashi Kajinami
d9dd4512ca Allow customizing status of cron job
... so that users can even remove the job. This follows what was added
to puppet-nova by [1].

[1] https://review.opendev.org/c/openstack/puppet-nova/+/877096

Change-Id: I28ba3ff1804207c5f93bf3f5352c4257019b36df
2023-03-13 11:39:05 +00:00
Takashi Kajinami
bc11b59fa4 Expose executor_thread_pool_size
This option has been supported by puppet-oslo but has not been
configurable.

Change-Id: I260f33942bcd08396c099e52ba970ad8ad5da9d8
2023-03-13 11:45:03 +09:00
Zuul
1ef4ab6ebd Merge "Always configure [DEFAULT] auth_strategy" 2023-03-03 16:25:57 +00:00
Zuul
4d5124e031 Merge "Configure ratelimit middleware regardless of auth strategy" 2023-03-03 16:16:53 +00:00
Takashi Kajinami
2eec46b764 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: I7259bf90853bd0ac24b7a60de9c43145c64015ba
2023-03-03 13:32:21 +09:00
Takashi Kajinami
73dd86b11a Always configure [DEFAULT] auth_strategy
Currently this option is configured only when keystone is used but
this does not allow using a different method such as noauth.

Change-Id: I80207a811da4bfa78e3c4d2ad731209d9746206b
2023-03-03 10:59:56 +09:00
Takashi Kajinami
b97d79e08d Configure ratelimit middleware regardless of auth strategy
Technically ratelimit middleware can be used without keystone (for
example if basic auth middleware is used). This allows configuring
the middleware when a different auth method is used.

This also makes sure the unused options are removed.

Change-Id: I727b386a07a471598deafc0e29a48f25f8478fc2
2023-03-03 10:57:13 +09:00
Takashi Kajinami
c6e82df318 Replace legacy facts and use fact hash
... because the latest lint no longer allows usage of legacy facts and
top scope fact.

Change-Id: I7de4bd06c59b921c8774accf462db1cf434d5cf6
2023-03-02 11:45:41 +09:00
Takashi Kajinami
0d31bdbdaf Remove deprecated manila::service_instance
This defined type was deprecated by [1].

[1] 8005513f41d43037c92dd0d206df8f41cc66fec2

Change-Id: I8d71ac0ab9fa4a97bc1f5df9a274209198183ddb
2023-02-13 16:02:37 +09:00
Zuul
66890b154c Merge "Replace mocha by rspec-mocks" 2023-01-31 08:33:00 +00:00
Takashi Kajinami
7e852c8e85 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: I36b60ea96e5a2d53f58094679bbd0f65b73c2b9f
2023-01-30 13:48:00 +09:00
Takashi Kajinami
109965ac75 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: I8ab0d89ef49ac56b221c72fbbc93fc52c9d60b45
2023-01-23 14:33:09 +09:00
Takashi Kajinami
6d2eeafde1 Install nfs-ganesha in Debian/Ubuntu
The nfs-ganesha package is already available in these distros.

Change-Id: Ia4512f75a3bdf3e6207f11f5ceb0731c436bb5bd
2023-01-16 13:08:26 +09:00
Zuul
2512341750 Merge "Switch to Ubuntu Jammy (22.04)" 2023-01-16 01:09:18 +00:00
Takashi Kajinami
612b95fc6a Switch to Ubuntu Jammy (22.04)
... because Focal no longer supports the recent releases such as Zed.

Change-Id: I618920bdec4befe0e12b5afacefd1a1f2faa5e7f
2023-01-15 22:24:32 +09:00
Zuul
168c364c14 Merge "hnas: Remove deprecated unused parameter" 2023-01-12 16:08:30 +00:00
Takashi Kajinami
bad1441aad hnas: Remove deprecated unused parameter
The manila::share::hitachi_hnas::share_backend_name parameter has been
unused and was formally deprecated during the Zed cycle[1] so can be
removed now.

Also, the wrong example is fixed by this change.

[1] 49291198a3d230e9117f2420c99a38670efe25f8

Change-Id: I405ee83fd03d2bdfee819d5f7a452c8477a9f9ed
2023-01-12 15:25:22 +09:00
Takashi Kajinami
20c1db1d14 Drop support for Dell EMC VMAX share driver
The driver has been replaced by the PowerMax share driver because of
rebranding and support for the old driver was deprecated during
the past cycle[1].

[1] d3fdc330c3bdb3fc4a29d97d646fd30ee47dab9e

Change-Id: Ifb44aea7fb8fc458feafaacf96f201f42454e056
2023-01-12 11:14:32 +09:00
Takashi Kajinami
959da1064a NetApp: Remove deprecated netapp_root_volume_name
The parameter was deprecated several cycles ago[1] in favor of the new
netapp_root_volume parameter.

[1] d338064529759ba4aa047813a9fd20568f821d35

Change-Id: I4cd4e42d0faf99bffa9593676abe3e751fe65c7e
2023-01-06 17:39:28 +09:00
Takashi Kajinami
8bb6a8f096 Remove deprecated defined types to manage share types
These defined types were deprecated in favor of the native manila_type
resource type.

Change-Id: I4984203091ced6130b2a378a8cc68f59ad16a54b
2023-01-05 18:27:25 +09:00
Zuul
ee34cc6060 Merge "Support manila-data service" 2022-11-29 18:09:27 +00:00
Zuul
65492cfe7f Merge "Use $::os_service_default by default" 2022-11-29 18:09:25 +00:00
Zuul
c2227c2524 Merge "Ensure [DEFAULT] scheduler_driver is cleared by default" 2022-11-29 18:09:24 +00:00
Takashi Kajinami
c0e8c38481 Use $::os_service_default by default
This change prepares getting rid of the additional logic to manage
the scheduler_driver option, to follow the global pattern to use
 $::os_service_default by default.

Change-Id: Ic1d01425123bf02fa3caaf9f2ba72ed2233fc914
2022-11-29 00:40:06 +09:00
Takashi Kajinami
525aae76e8 Ensure [DEFAULT] scheduler_driver is cleared by default
... otherwise the old setting can be left in manila.conf.

This also refactors unit tests for the manila::share class.

Change-Id: I30fa9fdc73164f898bf46d2983c807ec2bcd5451
2022-11-28 08:21:58 +00:00
Takashi Kajinami
11e2e6a7c7 Support manila-data service
Manila provides the separate manila-data service to process
host-assisted share migration. This change introduces support for
the service.

Change-Id: I4ed63ae3992735352fd0f5a317e998074e127127
2022-11-28 17:21:27 +09:00
Takashi Kajinami
5080fb84dc Remove cleanup of [DEFAULT] network_api_class
... because the logic was added during Yoga cycle[1] and the old option
should be removed when a deployment is upgraded to Yoga.

[1] e7330687baa66c3c8d55aeb581643e4a227b6568

Change-Id: I0f39c0ce4bad8a6fd1d17faf6ffae11dda75919f
2022-11-27 01:43:01 +09:00
be8585045a 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: I260798fbe5f91390b94a91d42c14ead371b705de
2022-10-20 11:06:54 +00:00
Takashi Kajinami
0e3e2a2407 Prepare Zed RC1
Change-Id: If9c4f2a3c4fe00f192260f7663a9be89645335ac
21.0.0
2022-10-06 01:38:05 +00:00
Takashi Kajinami
a6dd3edfe3 Do not use system scope tokens in providers
This is partial revert of 5ca6e6fc9cb2403307114877ece24e394be35794 .

After discussing several problems caused by scope separation, we
decided to suspend implementing the scope enforcement and focus on
project personas like reader role. As the result of that decision,
the system admin persona will be removed, thus we should use
the project admin persona instead. The previous policy rules to allow
system scope access have been reverted by [1].

[1] 755a1503187a29f9b4f6ecbf369acb781c3e95e7

Change-Id: I52f81faf2008e6d8c152503ca2d706fd962b8ed3
2022-10-06 10:36:22 +09:00
Takashi Kajinami
d65fa22282 Enable scenario 005 integration job
Now Manila is enabled in scenario 005 integration job. This ensures
we use the job to validate any change in this module.

Change-Id: Ied082d352d7ac705969adf7c4805b2297f9880c3
2022-09-06 01:31:17 +09:00
Takashi Kajinami
d18a8e3741 Use p-o-i manifest in acceptance tests
Depends-on: https://review.opendev.org/855535
Change-Id: I481ba2a60a2aa2b7b4a2470f07b5f858db85d065
2022-09-04 04:28:43 +09:00
Takashi Kajinami
715e97a3bf Enable manila-share in acceptance tests
This change enables the manila-share service and lvm backend in
acceptance tests, so that we can test more complete setup.

Change-Id: I8e3c1cda17c897b6c13563ea733988e28dd49f8f
2022-09-01 18:41:15 +09:00
Zuul
58732b2f64 Merge "Allow mulitple GlusterFS backends" 2022-08-26 14:43:35 +00:00
Zuul
5b075e946b Merge "Remove unused parameter" 2022-08-26 14:35:42 +00:00
Zuul
590a1bb310 Merge "Add Apache WSGI logging parameters for pipe/syslog" 2022-08-26 14:35:41 +00:00
Takashi Kajinami
7aa432d01c 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: I643778c71a683f95a5e91f0904634a0e849ad60d
2022-08-26 14:45:31 +09:00
Takashi Kajinami
f417334c71 Remove unused parameter
manila::params::lio_package_name is defined but is not used.

Change-Id: Ic3f7fe01610cee819088eb0d77f73b0b54003bdd
2022-08-26 04:52:12 +00:00
Takashi Kajinami
c7f79e2b08 Allow mulitple GlusterFS backends
This change fixes duplicate resource declarations when multiple
GlusterFS backends are configured.

Closes-Bug: #1987715
Change-Id: If29da565cdcc33605bc3f5211db22f0b157fa215
2022-08-26 11:19:20 +09:00
Takashi Kajinami
b36bb510da Remove deprecated glusterfs_native_path_to_private_key
... because it was deprecated during Wallaby cycle[1].

[1] bacfbc1c661a089c879fb66b1a965231254a9e0d

Change-Id: Ic7c6b80ca3e80d216f65a1075851280663ce1c16
2022-08-26 10:28:01 +09:00
Takashi Kajinami
5182150a85 quota: Clean up deprecated quota_* parameters
These were deprecated during Yoga cycle by [1].

[1] 83651174222a300d450279e1861b15a7ea8812d1

Change-Id: I3f85d92e0164af3eb8a6810e82c2c23dda8d61bd
2022-08-25 14:56:55 +09:00
Takashi Kajinami
b6fd20f77a Ubuntu: Use utf8mb3_general_ci collate in MySQL
Currently idempotency in Ubuntu is broken because of the below change
detected in collate in MySQL.

```
/Stage[main]/Keystone::Db::Mysql/Openstacklib::Db::Mysql[keystone]/
Mysql_database[keystone]/collate: collate changed 'utf8mb3_general_ci'
to 'utf8_general_ci'
```

Similarly to what we observed in the past about charset[1], it seems
MySQL in Ubuntu is automatically converting the collate value and that
is causing the "unexpected" change detected in the 2nd puppet run.

This fixes the idempotency by using utf8mb3_general_ci in Ubuntu to
avoid the mismatch caused by internal translation.

[1] f29a3051fc097759e82149e8ea21cffd8c67225d

Depends-on: https://review.opendev.org/851775
Change-Id: I0fddef098e72d515ef746af56b98bbf190896214
2022-08-17 13:01:26 +09:00
Takashi Kajinami
42344e5722 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: I690b84be0d91e39dc44b2013d90bf364710eac07
2022-08-02 20:35:21 +09:00