443 Commits

Author SHA1 Message Date
Takashi Kajinami
b209ed5c69 Prepare final stable/2023.1 release
Change-Id: If4c3551984d58235d7801365fdd86bd3b8f16d2f
12.0.1 2023.1-eom
2024-12-05 21:46:26 +09:00
Takashi Kajinami
de6b951daf 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: I4e28e76d8253da823d725aa9b3d708912c429c05
(cherry picked from commit 7710f9970ba2772f996b9b9da064313b82f51499)
2023-08-15 06:44:01 +00:00
Tobias Urdin
3edb10323a Add per module policy service refresh
Updating the policies for this project should only
refresh the services that reads it.

Change-Id: Ib1f41d2dcce7c7cd095ac589fbd15cd020c69af3
(cherry picked from commit a23ca78f52072271de8b3fde16ab280dcf3f938e)
2023-07-06 19:15:06 +00:00
c3753b414d 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: I8a1d6b9071e0f9852c81f60d7038e67eca546ecc
2023-04-05 15:36:55 +00:00
b315960284 Update .gitreview for stable/2023.1
Change-Id: I46756354263e78b17965fe5d26be05bdceff2472
2023-04-05 15:36:54 +00:00
Takashi Kajinami
841846f91d Prepare 2023.1 release
Change-Id: I29c4ba46ca047bb6a8fb3a56737ccb34eea27115
12.0.0
2023-03-23 22:29:01 +09:00
Takashi Kajinami
70df2a61eb Enable redis in acceptance tests
vitrage requires its coordination backend so that some features can be
used. This enables redis so that it can be used as the coordination
backend.

Change-Id: I86954805bc9d7aa7ea70da2abe8d1a5993be3fb0
2023-03-14 00:20:27 +09:00
Takashi Kajinami
f112b5699a Debian/Ubuntu: Enable vitrage service in acceptance tests
... because now vitrage packages are available for these operating
systems.

Change-Id: Id9b5b5d74ac4009e6c4c960e5473881e0b2c3aa4
2023-03-14 00:19:36 +09:00
Takashi Kajinami
c453511c44 Debian/Ubuntu: Fix wrong wsgi script path
Closes-Bug: #2011384
Change-Id: Ib7a087825cf012f28c5347f2de62d3bc5dd89622
2023-03-13 15:36:21 +09:00
Takashi Kajinami
a2b5f54ff2 Replace legacy facts and use fact hash
... because the latest lint no longer allows usage of legacy facts and
top scope fact.

Change-Id: I074f444198722984c5499f0a222148a46ce02612
2023-03-02 12:43:23 +09:00
Takashi Kajinami
6168f9c43b 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: I5772a9d7fa47084104df765fe9ae3cfeefc6a649
2023-01-23 14:42:34 +09:00
Takashi Kajinami
5f7ce3ae22 Switch to Ubuntu Jammy (22.04)
... because Focal no longer supports the recent releases such as Zed.

Change-Id: Ic424ce98e934675e0d07b674977a48985a6b2bc4
2023-01-15 22:33:37 +09:00
9ab9896406 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: Ie092f029c583691cf33d9832ad4fcddd97808086
2022-10-20 11:13:40 +00:00
Takashi Kajinami
09c70ac048 Prepare Zed RC1
Change-Id: I4cd0abd95c007f709ae39b740ef23b7e68debd59
11.0.0
2022-10-05 18:35:14 +09:00
Takashi Kajinami
fecdb2fd35 Enable memcached in acceptance tests
... because it is required as cache backend.

Change-Id: Ib040e80e54c02ea196e2b36890642dc2b9062598
2022-09-07 01:02:50 +09:00
Zuul
503a3297b7 Merge "Add Apache WSGI logging parameters for pipe/syslog" 2022-08-26 17:07:23 +00:00
Takashi Kajinami
9934f3a4c8 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: Ie6b22e3b0035189bd12499bec42d34c4c80dec6d
2022-08-26 17:45:33 +09:00
Takashi Kajinami
bc724cdc0b Accept array for [datasource] types
... because the parameter is ListOpt .

Change-Id: I5b46474568e3e6fbe2751e010f00404ba06cbc72
2022-08-21 02:00:03 +09:00
Zuul
106ff1d7ce Merge "Remove logic for CentOS 8/RHEL 8" 2022-08-12 07:03:12 +00:00
Zuul
2b59f6bc8a Merge "Remove unused items from platform_params" 2022-08-12 02:37:24 +00:00
Takashi Kajinami
08fae67066 Remove logic for CentOS 8/RHEL 8
... because CentOS 8 and RHEL 8 are no longer supported by RDO since
Zed release.

Change-Id: I4e676a43415dac3467a865c799b64be087c54294
2022-08-12 01:35:24 +09:00
Takashi Kajinami
51e0fa6f73 Remove unused items from platform_params
Trivial-Fix

Change-Id: I5037d6e10d671902106d4a9751624947034826aa
2022-08-12 01:34:51 +09:00
Takashi Kajinami
15068f18e8 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: Id33d0bb0cd09af5d653c14e50ac6b3c1745593b6
2022-08-02 23:14:22 +09:00
Zuul
cce2e3d977 Merge "Expose headers option of apache::vhost" 2022-07-30 15:01:34 +00:00
Takashi Kajinami
9ad6008f38 Revert "CentOS 9: Disable unit tests dependent on puppet-postgresql"
This reverts commit 55d705c45d86fa78c5e43c3f2f843ee906b9c57c.

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: Ibb8dcdf77142b7fa15152ccaa3d7eae97ff0dccf
2022-07-24 01:03:07 +09:00
Zuul
08f9160298 Merge "Add acceptance tests for config management resources" 2022-07-15 20:02:15 +00:00
Zuul
7d00ef7ab0 Merge "Switch provider to manage paste.ini file" 2022-07-15 20:02:14 +00:00
Takashi Kajinami
f49cd06eee 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: I2f840172b22928d136808568badd5135fc2b3fe3
2022-07-15 11:56:42 +09:00
Takashi Kajinami
282875e82d Add acceptance tests for config management resources
Change-Id: I6957db63f55ebc766f29311a37b1689fa506fca7
2022-07-10 12:53:37 +09:00
Takashi Kajinami
57571690a6 Switch provider to manage paste.ini file
... so that we users can use '<SERVICE DEFAULT>' similarly to
the resource types to manage the <service>.conf files.

Closes-Bug: #1981118
Change-Id: I2df5a34228d8c0cf8dfad2dbf56f3ab2e458d7e9
2022-07-09 23:45:24 +09:00
Takashi Kajinami
3b3ace5152 Expose headers option of apache::vhost
The headers option in apache::vhost is required in some case, for
example when adding the X-XSS-Protection header. This change allows
customizing the option for the api vhost.

This change also adds support for request_headers so that both request
headers and response headers can customized.

Change-Id: If7c7341fbe5b61dcbb5762291484ce4097c0239c
2022-07-01 15:02:51 +09:00
Zuul
34fe3ab096 Merge "Remove support for CentOS 8 Stream" 2022-06-01 05:46:44 +00:00
Takashi Kajinami
e233a67f84 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: I5ed4eaa755082444ba8c3117a55dafc1eb7e530a
2022-06-01 14:06:48 +09:00
Zuul
f0a2273960 Merge "Simplify handling of notifiers option" 2022-05-31 15:21:39 +00:00
Takashi Kajinami
57b3dd7c18 Simplify handling of notifiers option
Change-Id: I74610eddea1514f25951ec6a793e4b2afff6d59f
2022-05-30 16:41:08 +09:00
Takashi Kajinami
5aa74207d4 Remove deprecated vitrage::auth
... because this class was deprecated during Yoga cycle[1] in favor of
the new vitrage::service_credentials class.

[1] 9cf7f1dcd9c1acb58122dabaf434bf251189bb0a

Change-Id: Ice74b6655d8715989edece54e40998c809f8341f
2022-05-30 16:32:16 +09:00
Takashi Kajinami
ab776eac41 apache+mod_wsgi: Disable SSL by default
During the previous cycle, a warning message was added to inform users
of this change.

Now the default value is updated so that SSL is disabled by default.

Change-Id: I72c65b9cdc246df06c2ca4f4e70ea9c3ff4fe768
2022-05-06 21:07:33 +09:00
e3ff4ab35b 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: Ia849ce65b9da63df126e557c67672d45d6418742
2022-04-05 09:16:16 +00:00
Jiri Podivin
6b777ac437 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: I62998fc37e9de1c64bb61d4bbc85362aa3df758b
10.3.0
2022-03-29 10:43:08 +02:00
Takashi Kajinami
889cd0ceed Prepare Yoga RC1
Change-Id: I1b7dc69d40e5bfe0245aab744e181235076cb2da
2022-03-12 00:34:01 +09:00
Zuul
a4e782fd38 Merge "Globally support system scope credentials" 2022-03-11 11:37:53 +00:00
Zuul
8cbb49bf71 Merge "remove unicode literal from code" 2022-03-08 00:50:42 +00:00
Zuul
57a78bc9c8 Merge "Support [coordination] parameters" 2022-03-08 00:50:40 +00:00
Zuul
9869ef99a7 Merge "Use consistent class/parameter name for service_credentials" 2022-03-08 00:49:43 +00:00
Takashi Kajinami
fca2ffd07e 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: Ic5861646b0f419870f422e756a664ed9eaec7341
Co-Authored-By: LiZekun <2954674728@qq.com>
2022-03-08 09:26:42 +09:00
Takashi Kajinami
c2197893fe Support [coordination] parameters
Since commit 12f70b9ada4234b19245898932bd5cfba17184b0 was merged,
Vitrage uses tooz for coordination. This change adds support for
[coordination] parameter so that users can define coordination backend.

Change-Id: I7aeb75d5bd4e6908b68c84b9c0b678d55efd914b
2022-03-07 01:49:46 +00:00
Takashi Kajinami
3c924d53d5 Globally support system scope credentials
After spending huge effort to understand the exact requirements to
enforce SRBAC, we learned it's very difficult to find the required
scope in each credential. This requires understanding implementation of
client-side as well as server-side, and requirement might be different
according to the deployment architecture or features used.

Instead of implementing support based on the actual implementation,
this introduces support for system scope credentials to all places
where keystone user credential is defined, and make all credential
configurations consistent.

Change-Id: I9004d2e863ac84f53a4e23d863a9c66ae4afc5c8
2022-03-04 10:52:42 +09:00
Takashi Kajinami
9cf7f1dcd9 Use consistent class/parameter name for service_credentials
Currently the service_credentials parameter is managed by the auth
class but it's hard to guess and doesn't follow basic practise to use
section names as class names. Also, parameter of the auth class are
named differently and this makes it difficult to guess and maintain
the actual parameters.

This change renames the class and its parameters to make these
consistent with the section name and the parameter names in vitrage.

Change-Id: I01f0dc3617fca873d21bb19e3b66c4871b637c8f
2022-03-04 10:52:39 +09:00
ZhongShengping
5b944d508f Prepare Yoga M3
Update the version metadata for Yoga milestone M3

Change-Id: I28eea76da875444acb7ad34c3dc25844a7a8f254
10.2.0
2022-02-27 13:18:39 +00:00
Zuul
3664349daf Merge "Add CentOS/RHEL 9 to supported operating systems" 2022-02-24 15:28:12 +00:00