Commit Graph

122 Commits

Author SHA1 Message Date
Takashi Kajinami 99e7f84000 Retire puppet-tacker - Step 2: Remove Project Content
Depends-on: https://review.opendev.org/874539
Change-Id: I50d1b0036ca1ca6509d1cc462856e4a898aafea3
2023-02-27 16:44:50 +09:00
Takashi Kajinami cc18391a05 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: I0bb6c90c38c77942bea7e9cb71cd7fbe6ff64256
2023-01-23 14:42:04 +09:00
Takashi Kajinami f6bd566345 Revert "CentOS 9: Disable unit tests dependent on puppet-postgresql"
This reverts commit 62a6b1eb29.

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.

Change-Id: I5abebaeb747a0f09fc1c66dcd9fbb10c6b5f1955
2022-09-08 13:36:45 +09:00
Zuul d41669736c Merge "Add acceptance tests for config management resources" 2022-07-15 19:43:18 +00:00
Zuul 81c0fe7e6e Merge "Ubuntu: Use utf8mb3 charset in MySQL" 2022-07-15 19:38:50 +00:00
Takashi Kajinami 63e7f756ff 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: Ie9c0a6f495aeb17c7137ba78efbb1437ddd309a0
2022-07-15 11:55:28 +09:00
Takashi Kajinami 904bb359a6 Add acceptance tests for config management resources
Change-Id: I1907685d061b3cb603c26047c708cecba98f6ca2
2022-07-10 13:21:57 +09:00
Takashi Kajinami 484ef8ffa1 Ubuntu: Use utf8mb3 charset in MySQL
... to fix the broken idempotency in litmus job. Current mysql/mariadb
in Ubuntu replaces utf8 with uft8mb3 automatically and this behavior
results in unexpected change in second run.

Depends-on: https://review.opendev.org/804365
Related-Bug: #1929073
Change-Id: Ie8888dca5886fe0048f82450b96f7883760306ea
2022-07-10 13:20:30 +09:00
Takashi Kajinami 59babeddfe Support more parameters to define/tune api behavior
Change-Id: Ic05d0cddfaccab6759b4d587e0fbc0bcff01977b
2022-03-07 19:15:43 +09:00
Takashi Kajinami caec9bd63e Ensure [DEFAULT] auth_strategy is set
This change ensures the [DEFAULT] auth_strategy is set. Otherwise
setting the parameter to non-default value doesn't take any effect.

Change-Id: I3fddb08c83dc6bbf10d395c8601e9982de79954f
2022-03-07 10:14:25 +00:00
Takashi Kajinami 62a6b1eb29 CentOS 9: Disable unit tests dependent on puppet-postgresql
The puppt-postgresql module does not support CentOS 9 yet and requires
some version parameters to be run on CentOS 9. This change disables
unit tests requiring that module, until the module supports CentOS 9.

Change-Id: Ida6cdf9d529376c11d121bd22f219f575028a95c
2022-02-16 00:29:18 +09:00
Zuul 52177ff1ed Merge "Add support for MultiStrOpt" 2022-02-15 09:14:12 +00:00
Takashi Kajinami 10eda6e780 Allow customizing api-paste.ini file
This change introduces a new resource type and the corresponding puppet
parameter to allow managing records in api-paste.ini.

Change-Id: I92df917887da3220dfb7c7ed10fac123f01af1aa
2022-02-13 12:37:52 +09:00
Takashi Kajinami f8f06abc61 Add support for MultiStrOpt
This replaces the provider implementation of tacker_config type so
that MultiStrOpt, which is used by several options like
 - oslo_messaging_notifications/driver
 - oslo_policy/policy_dirs
are handled correctly.

Change-Id: Ie75269a987c39d4ce24e8cafc652876aff56fb49
2022-02-13 00:25:39 +09:00
Takashi Kajinami 37046e86a4 Accept system scope credentials for Keystone API request
This change is the first step to support secure RBAC and allows usage
of system scope credentials for Keystone API request.

This change covers the following two items.
 - assignment of system scope roles to system user
 - credential parameters for authtoken middleware

Depends-on: https://review.opendev.org/804325
Change-Id: I8bd8e455c739d6eaa43d3ea22af86003a7617bc9
2022-01-25 10:53:19 +09:00
Zuul f70be78dca Merge "Do not test detail of keystone::auth::service_identity" 2022-01-24 17:48:06 +00:00
Takashi Kajinami 80b1cf84ea Do not test detail of keystone::auth::service_identity
... but test interfaces of that resource type. This helps us avoid
direct breakage caused by any change in puppet-keystone.

Change-Id: I3c539f688e2c266b3b68050cf24a3136ba0c4faf
2022-01-24 15:50:48 +09:00
Takashi Kajinami 94b824dcbb Do not test authtoken parameters directly
The authtoken parameters are not managed directly but managed by
the keystone::resource::authtoken class. Thus we should avoid testing
parameters directly otherwise any change in the resource type can
cause test failures.

Change-Id: I4d0180b7d357ad225c7d49786e45f307dfdec582
2022-01-24 11:42:12 +09:00
Zuul c21b9b3bbe Merge "Add service tunable parameters of tacker-conductor" 2022-01-10 19:37:36 +00:00
Zuul 2530f039ca Merge "Add support for [DEFAULT] api_workers" 2022-01-10 19:27:25 +00:00
Takashi Kajinami d37bdac959 Add support for [DEFAULT] api_workers
Change-Id: Ie61b618ecec6f9a3691ac24bb57302b5b26ddab9
2022-01-08 13:18:37 +09:00
Takashi Kajinami dfb2475e18 Add service tunable parameters of tacker-conductor
Change-Id: I9e91a0488407df171cd5b39760eff0b0087d4ee2
2022-01-08 13:17:32 +09:00
Zuul 3d67507059 Merge "Add support for vnf_package/vnf_lcm parameters" 2022-01-07 22:48:00 +00:00
Takashi Kajinami 31677b83be Load libraries in a single place
This change refactors how the dependent libraries are loaded during
unit tests, and load the libraries in the base spec_helper to avoid
duplicate and redundant implementations.

Change-Id: I34e5b2dfca78528f86eb3021f574212bfe1d8e3f
2021-12-27 11:03:55 +09:00
Takashi Kajinami 08cd7cdbf8 Add support for vnf_package/vnf_lcm parameters
Change-Id: Ia12c89fa833410e8be154ece2671184b65476ca3
2021-12-02 20:15:43 +09:00
Takashi Kajinami e035a98cf2 Fix unit tests incompatible with puppetlab-stdlib 8.0.0
Since puppetlabs-stdlib 8.0.0, ensure_packages automatically translates
'ensure => present'  to 'ensure => installed' and that translation
breaks existing assertions in unit tests.

Change-Id: Iaf3291669b53e8448155280d24188f2159ed66c8
2021-09-24 00:36:16 +09:00
ZhongShengping 217411978a Add watch_log_file option
Add support for Using logging handler designed to watch file system.

Change-Id: I04b708e411b9627aa19653f223e356cc66302e87
Closes-Bug: #1943212
2021-09-14 16:02:09 +08:00
Takashi Kajinami 4372dd4ebc Allow purging policy files
This change introduces the new purge_config parameter to the policy
class so that any policy rules not managed by puppet manifests can be
cleared.

Co-Authored-By: Martin Schuppert <mschuppert@redhat.com>
Depends-On: https://review.opendev.org/802305
Change-Id: I702ddaa8a88e804ea378d686fbbe7ea89ca62823
2021-09-04 22:19:28 +09:00
Zuul 949424aacf Merge "Re-enable installation of Tacker during acceptance tests." 2021-08-24 07:43:37 +00:00
Zuul b21c512e31 Merge "Add support for the tacker-conductor service" 2021-08-24 07:40:39 +00:00
Takashi Kajinami 15fa744720 Re-enable installation of Tacker during acceptance tests.
This change re-enables installation of tacker which was disabled
by 98be9843fc .

Change-Id: Ie932b2e924d5c63e5d980b688ce5afc7244c2f07
2021-07-06 14:02:56 +09:00
Takashi Kajinami f10b246ac0 Add support for coordination parameters
Recent Tacker uses the tooz library to synchronize vnf action tasks[1].
This change introduces the new tacker::coordination class which manages
coordination parameters and backend packages using oslo::coordination
resource type.

[1] cff8c756822da5a8a7b92eec536db4532d31c408

Depends-on: https://review.opendev.org/791628
Change-Id: I3cb36be7fe6b43133f09ed6edce3f258786d7dc2
2021-07-06 13:18:29 +09:00
Takashi Kajinami 64c557c32d Add support for the tacker-conductor service
Change-Id: I5a6c295bb30141eed2949bdd198b91b7865e7f96
2021-07-06 13:04:24 +09:00
Thomas Goirand ae0a25f1ed Get rid of the $pyvers variable
Since everyone has switched to Python3, it's time for the removal of the
$pyvers variable.

Change-Id: I0dd38974a07d76b003688c57258aaa37a8b6ed32
2021-06-14 09:48:47 +02:00
Takashi Kajinami ae0ed566f5 Set fixture paths for unit tests
This change defines manifest_dir and module_path expicitly in unit
tests so that modules installed under fixtures directory is properly
loaded.

Closes-Bug: #1930403
Change-Id: I2a4c32c174b61a131d97e4ab811237fa1937f7e9
2021-06-02 14:25:02 +09:00
Thomas Goirand 478293eedc Allow to configure policy_dirs
This patch makes it possible to override the current service default,
which is /etc/<service>/policy.d .

Change-Id: I006c137e78c1bac99202ced38fd6f82a07ad65e3
2021-04-11 23:47:10 +02:00
Takashi Kajinami 197df465ec Add support for oslo_policy/enforce_new_defaults
Depends-on: https://review.opendev.org/781428
Change-Id: I4e7c8b875aaec1a7d6c72f52f653bbf0ba6320ad
2021-03-24 17:14:08 +09:00
Takashi Kajinami eae0cb1e88 Add support for the oslo_policy/enforce_scope parameter
Depends-on: https://review.opendev.org/#/c/759008/
Change-Id: I0a9814ccb864b64d73a83f2fe866b19577cf7798
2021-03-21 15:58:33 +09:00
Takashi Kajinami df693ba1de Use yaml instead of json for policy file
Because usage of json for policy file will be deprecated and replaced
by yaml[1].

[1] https://governance.openstack.org/tc/goals/selected/wallaby/migrate-policy-format-from-json-to-yaml.html

Depends-on: https://review.opendev.org/769647
Change-Id: I51a7d4a5106ec9d6377166a0c79e5116f86d64ec
2021-03-21 15:58:30 +09:00
ZhongShengping a90ce49015 Allow db sync timeouts to be configurable
As Openstack projects continue to have longer database migration
chains, the Puppet default timeout of 300 seconds for an execution
is becoming too short a duration on some hardware, leading to timeouts.
As projects continue to add more migration scripts without pruning
the base, timeouts will continue to become more frequent unless
this time can be expanded.

Change-Id: I3e075edf9e97995ff9d014f41bea72ad758c72e2
Closes-Bug: #1904962
2020-11-23 09:27:52 +08:00
Takashi Kajinami 175a1468ec Add support for the keystone_authtoken/service_type parameter
Change-Id: If3afa412a8237205de705e495d8ef88783bf3380
2020-11-19 02:53:23 +00:00
ZhongShengping 98be9843fc Deprecate allow_insecure_clients option
The allow_insecure_clients has been deprecated[1].

[1]https://review.opendev.org/#/c/417629/

Note this patch disables litums tests since it is broken by the issue
with database sync, to unblock the gate.

Change-Id: Ica04d19587fc2c27eba194ea33f2ffca53c4be5f
Closes-Bug: #1902158
2020-11-19 11:24:15 +09:00
ZhongShengping c1d44eef06 Include deps class in unit test for sync
Change-Id: Ia956b917233ea49a6d5b74d630719eda5dde1d18
2020-10-12 10:46:40 +08:00
ZhongShengping 10440c1f75 Include deps class in unit test for postgresql
Change-Id: I413aae40ee5744f8232b71e016225f4c756eb30f
2020-10-10 09:31:12 +08:00
ZhongShengping f3498211f3 Include deps class in unit test for mysql
Change-Id: I3e7939b44fac038ddd236b1f284e74546eb245c3
2020-10-09 10:28:24 +08:00
Zuul 1a5a18e0a3 Merge "Revert "Disable Tacker installation during beaker tests"" 2020-09-29 14:13:57 +00:00
Takashi Kajinami c544fe5ab2 Revert "Disable Tacker installation during beaker tests"
The issue with dependencies should be fixed now[1]

[1] https://review.rdoproject.org/r/#/c/29658/

This reverts commit 606e6ff904.

Change-Id: I2c1d82683584640eb7a0d2bfaf4ae6e500228248
2020-09-29 07:30:32 +00:00
Tobias Urdin ddd1d0b64d Add Puppet Litmus
Depends-On: https://review.opendev.org/#/c/740601/
Change-Id: I040e0c22991b19f23cb3d999adfb5aeb833e3449
2020-08-31 21:58:43 +02:00
Zuul 86fcaf18f0 Merge "Add mysql_enable_ndb option" 2020-08-29 05:14:41 +00:00
Zuul 19c28c0d0a Merge "Disable Tacker installation during beaker tests" 2020-08-28 16:20:25 +00:00