Commit Graph

446 Commits

Author SHA1 Message Date
Zuul cf202a64f5 Merge "Stop hard-coding config file for db sync" 2024-03-08 13:37:14 +00:00
Takashi Kajinami ea6c158a75 Stop hard-coding config file for db sync
The cloudkitty-storage-init command by default loads
/etc/cloudkitty/cloudkitty.conf. Removing the override allows us to use
additional paths such as cloudkitty.conf.d in the future.

Change-Id: I3109005c76a1ffd8f23b3aebd92861a0a4fb419a
2024-03-05 12:27:20 +09:00
Takashi Kajinami f624709cfc healthcheck: Expose ignore_proxied_requests parameter
Depends-on: https://review.opendev.org/909807
Change-Id: I8c754cd823a501924567c68457be6e16b884ce85
2024-02-26 01:29:42 +09:00
OpenStack Release Bot c90443d361 reno: Update master for unmaintained/yoga
Update the yoga release notes configuration to build from
unmaintained/yoga.

Change-Id: I1dfc3e4bb361df2c43fff11c7b909078ea2c5385
2024-02-21 16:43:58 +00:00
Takashi Kajinami 4bf6dd0f4b healthcheck: Expose allowed_source_ranges
... which was added to puppet-oslo recently.

Depends-on: https://review.opendev.org/905557
Change-Id: Ia9b0534f4e4a6b0d2325ccef318f35ef3789eb08
2024-01-17 02:52:55 +09:00
Takashi Kajinami 6c6c3011a8 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: Iff542dd7e257a620c4377a369cb548517424f0db
2023-11-18 18:06:07 +09:00
OpenStack Release Bot 6d5c736e35 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: Idc0c1839bfaab27a216815e74ef14a4fc4e38be3
2023-10-16 15:15:36 +00:00
Takashi Kajinami 6394817cb1 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='...
```

[1] 316d95923c

Change-Id: I891b85fdba76186a2b97683526ac05d483dc6ff9
2023-10-11 11:57:46 +09:00
Zuul 906e3fd66d Merge "Prepare 2023.2 release" 2023-10-03 17:16:00 +00:00
Takashi Kajinami 4ab3baed9e Prepare 2023.2 release
Change-Id: Ie069bbc4dbece0a1ea5d48a210432233b18ada4b
2023-10-03 17:00:29 +09:00
Takashi Kajinami c348a42a6c 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: Ie479fa9b6a6386810a28538dac0033d3bc0c10a9
2023-10-03 13:04:57 +09:00
Zuul eee7ff04b4 Merge "RabbitMQ: Add support for quorum queue options" 2023-09-15 15:12:06 +00:00
Takashi Kajinami e17c077aa3 RabbitMQ: Add support for quorum queue options
Depends-on: https://review.opendev.org/894866
Change-Id: Ia11d14110a0a49056b4e582c20d360cf2953c28f
2023-09-15 08:42:36 +09:00
Zuul 6181d2856c Merge "Remove unused dashboard package name" 2023-09-11 16:04:51 +00:00
Takashi Kajinami cb6202731f Remove unused dashboard package name
The usage has been removed by [1].

[1] 71ad6471e9

Change-Id: I1e7f9bef192c8f291817244b7cd9d8e81e836d6d
2023-09-11 12:40:46 +09:00
Takashi Kajinami 48a9ace870 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: I1355983024146ddc22128f6affcd67b2036b4848
2023-09-11 12:26:38 +09:00
Takashi Kajinami dc2ab9e5a2 Add missing fetcher_keystone options
We've seen workers of cloudkitty-processor continuously crash with
the following traceback logged in syslog

Traceback (most recent call last):
  File "/usr/lib64/python3.9/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/usr/lib64/python3.9/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3.9/site-packages/cotyledon/_utils.py", line 63, in _bootstrap_process
    target(*args, **kwargs)
  File "/usr/lib/python3.9/site-packages/cotyledon/_service.py", line 161, in create_and_wait
    sw = cls(*args, **kwargs)
  File "/usr/lib/python3.9/site-packages/cotyledon/_service.py", line 175, in __init__
    self.service = config.service(worker_id, *args, **kwargs)
  File "/usr/lib/python3.9/site-packages/cloudkitty/orchestrator.py", line 552, in __init__
    self.fetcher = driver.DriverManager(
  File "/usr/lib/python3.9/site-packages/stevedore/driver.py", line 54, in __init__
    super(DriverManager, self).__init__(
  File "/usr/lib/python3.9/site-packages/stevedore/named.py", line 78, in __init__
    extensions = self._load_plugins(invoke_on_load,
  File "/usr/lib/python3.9/site-packages/stevedore/extension.py", line 218, in _load_plugins
    self._on_load_failure_callback(self, ep, err)
  File "/usr/lib/python3.9/site-packages/stevedore/extension.py", line 206, in _load_plugins
    ext = self._load_one_plugin(ep,
  File "/usr/lib/python3.9/site-packages/stevedore/named.py", line 156, in _load_one_plugin
    return super(NamedExtensionManager, self)._load_one_plugin(
  File "/usr/lib/python3.9/site-packages/stevedore/extension.py", line 242, in _load_one_plugin
    obj = plugin(*invoke_args, **invoke_kwds)
  File "/usr/lib/python3.9/site-packages/cloudkitty/fetcher/keystone.py", line 71, in __init__
    auth_url=self.auth.auth_url)
AttributeError: 'NoneType' object has no attribute 'auth_url'

This adds the fetcher_keystone options to avoid that error.

Change-Id: I27530c279afd21f8b32ee6aa44ec194ac019887c
2023-08-25 15:02:46 +09:00
Takashi Kajinami 4ae2f42a7a fetcher_keystone: Fix ignored auth_type
The class parameter has been ignored and the given value was not put
in the config file properly. This fixes the problem.

Change-Id: I764a98553b766e64fad71d418f4158a47e413282
2023-08-25 15:02:46 +09:00
Takashi Kajinami 8d52c71e5e Configure [orchestration] option in acceptance tests
... so that we can test the behavior of coordination backend
configuration.

Change-Id: I45b62e7329dd610dd9e6ab84628b247657d88bf9
2023-08-25 13:15:09 +09:00
Zuul 77037f6a19 Merge "Modernize manifest in acceptance tests" 2023-08-24 14:32:36 +00:00
Zuul 1653b7a57a Merge "Enable memcached in acceptance tests" 2023-08-24 14:32:35 +00:00
Takashi Kajinami 7cadccb30e Modernize manifest in acceptance tests
This updates the manifest used in acceptance tests according to
the recent implementations in p-o-i manifests.

Change-Id: I9fa8ecf4bc799a086388372a5edd0419053e81ff
2023-08-23 00:41:41 +09:00
Takashi Kajinami 439373e1c0 Enable memcached in acceptance tests
Now memcached is used as cache backend for some services and authtoken
middleware.

Change-Id: I0195d54a4801926699652a2b1c2c453c854bfdb9
2023-08-22 23:40:02 +09:00
Takashi Kajinami a8f9d71c74 Exclude release note files
The directory contains the source files to generate the release note
document, so is not required.

Change-Id: Icb5ec32b27dd2c092862c4499d0f213ddf551d48
2023-08-11 17:49:10 +09:00
Takashi Kajinami f83ed56ce6 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: If6244e03bce32e4a276223a3b71e294a253fd278
2023-08-11 00:42:36 +09:00
Takashi Kajinami 9869a67a9d Clean up deprecated parameters
This removes a few parameters deprecated in favor of the new
cloudkitty::fetcher::keystone class.

[1] 4e6806f54f

Change-Id: I0e363d7269bfea31464d8d74b07828bebd792c3a
2023-07-28 16:39:59 +09:00
Zuul 48b65769ae Merge "Ensure purge_config takes a boolean value" 2023-07-18 00:18:15 +00:00
Takashi Kajinami 2e76bee998 Ensure purge_config takes a boolean value
The purge_config parameters only accept boolean values. This enforces
that using the typed parameters.

Change-Id: Ia5ecf568545d11a10cd35f064af85e43136ce838
2023-07-18 00:50:29 +09:00
Zuul 4e8261a4f0 Merge "authtoken: Ensure correct type for password" 2023-07-16 23:35:44 +00:00
Takashi Kajinami 1e4ff9bb99 Replace remaining validate_legacy
This was overlooked during the previous attempt.

Change-Id: I76c64575f3236fc041fa884b2025a319d8ed65dc
2023-07-13 22:02:48 +09:00
Takashi Kajinami ce4bf1e2f2 authtoken: Ensure correct type for password
... and make parameter order consistent in parameter descriptions and
parameter definitions.

Change-Id: I1eba204a1928f954aae116b97fe95e7dfce46b34
2023-07-12 21:58:27 +09:00
Zuul 9174927541 Merge "Remove deprecated cloudkitty::processor::max_workers" 2023-06-26 14:51:26 +00:00
Takashi Kajinami 6c21dd1dc2 Remove deprecated cloudkitty::processor::max_workers
Change-Id: I412a366755a4aa7933be7feeb040209efc735b44
2023-06-26 04:17:52 +00:00
Tobias Urdin 2abda4f574 Add per module policy service refresh
Updating the policies for this project should only
refresh the services that reads it.

Change-Id: I7eda28c684af2def0d4acacfa5ba453ef02b42a3
2023-06-26 00:03:50 +02:00
Zuul 41fa1ac8dd Merge "Add strict validation about boolean parameters" 2023-06-16 21:42:34 +00:00
Zuul bf8e2264e9 Merge "replace validate_legacy with proper data types" 2023-06-16 21:38:47 +00:00
Takashi Kajinami 86c16519e2 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: I20a381329797402627cb14a6104014fae7ac839d
2023-06-16 02:37:47 +09:00
Takashi Kajinami 7fdd4f56cf replace validate_legacy with proper data types
the validate_legacy function is marked for deprecation in
v9.0.0 from puppetlabs-stdlib.

Change-Id: I562568fe0e68b98bd80e4b7e1d20644a54d086df
2023-06-16 02:35:46 +09:00
Takashi Kajinami 90e8c0ee7c Remove support for Puppet 6
... because Puppet 6 reached its EOL in February 2023.

Change-Id: Ie33403b00bf8154d3357bd3baaed33bd19bcee67
2023-05-22 12:19:45 +09:00
Zuul 95b7d0c2c9 Merge "Bump upper version of puppetlabs-inifile" 2023-04-14 07:23:14 +00:00
Takashi Kajinami 8cfb790a88 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: Ifc8631770da94aef98e536393e33c69160288377
2023-04-14 11:46:36 +09:00
Thomas Goirand a98e603e5d Fix cloudkitty dashboard package name
Both Debian and Ubuntu are using python3-cloudkitty-dashboard,
not cloudkitty-dashboard, as package name. Let's fix this
(so the Debian specific patch can be removed form pacakging).

Change-Id: I990398d27da898a60fc5c5991e6c2c3c5aa36672
2023-04-12 10:24:54 +02:00
OpenStack Release Bot 8c6220f3eb 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: I7b8de662f7c1a182916ca3c594791ed06e11e327
2023-04-05 15:29:15 +00:00
Takashi Kajinami a7bf345a32 Prepare 2023.1 release
Change-Id: Ib5b8c1853c51a04820cc100d6b0da7b3ce4b7585
2023-03-23 21:49:22 +09:00
Takashi Kajinami 70d66f8f55 [orchestrator] coordination_url should be hidden
The coordination_url option can sometimes contain secrets.

For example when redis coordination backend is used and authentication
is enabled in redis, the plain redis password is put as an URL element.

[orchestrator]
coordination_url=redis://:password@127.0.0.1:6379

Closes-Bug: #2012246
Change-Id: Iba1e7715b290ee4c104f11221e250b23936b12dc
2023-03-20 21:11:32 +09:00
Takashi Kajinami 25e2da3b42 Replace legacy facts and use fact hash
... because the latest lint no longer allows usage of legacy facts and
top scope fact.

Change-Id: I8986bcb5fdd5d1c28aa0e706267f689b894f7167
2023-03-01 16:17:18 +09:00
Takashi Kajinami b5af91b7ff 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: Ia4e917d879a175c1919131bfa0bee9d679fe1a76
2023-01-23 14:28:45 +09:00
Takashi Kajinami 03f9eee13f Switch to Ubuntu Jammy (22.04)
... because Focal no longer supports the recent releases such as Zed.

Change-Id: Ie1e26e53ebd89ccfb17cb690680a6623c8fb39a4
2023-01-15 22:19:05 +09:00
OpenStack Release Bot 0b17c5f1d0 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: I772b127039f085f6082afba2e57e7971a2acd05a
2022-10-20 11:02:49 +00:00
Takashi Kajinami 46524134fc Prepare Zed RC1
Change-Id: I12539330c301994af79516cfd86c86be0d6f5dac
2022-10-05 18:39:09 +09:00