2958 Commits

Author SHA1 Message Date
Takashi Kajinami
7f7e1010ef Do not use system scope tokens in providers
This is partial revert of 0ed626e1461fecc4f443fcd543a99ba945539b1f .

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].

This does not revert the original patch to keep the unit tests which
were hugely refactored by that change.

[1] 066e1e69d1394839a9f0bde4ca8c3a0db2d52396

Change-Id: I85847850602ab3526d2fdb1a56bb927183198825
2022-10-06 10:37:04 +09:00
Zuul
7129762029 Merge "Add support for [quota] count_usage_from_placement" 2022-09-19 09:15:25 +00:00
Takashi Kajinami
39cb050371 Add support for [quota] count_usage_from_placement
This change adds support for the [quota] count_usage_from_placement
option in nova.conf, which allows nova to count core/ram usage
from placement.

Change-Id: I1668efd5f9fe2509e0fcfdd431dd74c304e3d0bd
2022-09-16 11:32:10 +09:00
Zuul
69a43c97e1 Merge "Use the common provider for libvirt daemons" 2022-09-12 20:18:57 +00:00
Takashi Kajinami
75475c06be Use the common provider for libvirt daemons
Currently we implement separate providers for all libvirt configuration
files but this is quite redundant because we have the same logic in
all providers.

This change refactors these providers makes use the libvirtd_config
provider used as the base implementation.

Change-Id: I486211306620d245262678875be3ec607640e921
2022-09-12 10:56:16 +09:00
Zuul
52fa5d2327 Merge "Replace redundant hard-code of [libvirt] inject_*" 2022-09-09 11:14:23 +00:00
Zuul
925646312f Merge "Add support for [libvirt] wait_soft_reboot_seconds" 2022-09-09 11:07:43 +00:00
Takashi Kajinami
9fb6c87378 Add support for [libvirt] wait_soft_reboot_seconds
Change-Id: I68b81ef44f3c6f6c92d9bdb2b2a18091706ff99b
2022-09-04 23:09:28 +09:00
Takashi Kajinami
82349d5145 Fix default value of [libvirt] file_backed_memory
... to ensure the parameter is removed from nova.conf by default.

Change-Id: Idff7de4d33c5352e994a0013a062b3e45c115d35
2022-09-04 22:59:56 +09:00
Takashi Kajinami
02072d7e2a Replace redundant hard-code of [libvirt] inject_*
The current default values are same as the defaults defined in Nova,
thus can be replaced by $::os_service_default .

Change-Id: I723215afe7ba085f3da993189d9e2db85c1fa2aa
2022-09-04 22:57:21 +09:00
Zuul
ba583fadf4 Merge "Enable memcached in acceptance tests" 2022-09-01 02:57:03 +00:00
Zuul
4834211f85 Merge "Wire-in max_client_requests for libvirt" 2022-08-30 18:00:43 +00:00
Takashi Kajinami
bfef09df8f Enable memcached in acceptance tests
... because it is required as cache backend.

Change-Id: Ib2d8c72b42835529901132d366c1589348e29bc6
2022-08-30 15:57:00 +00:00
Bogdan Dobrelya
de886cd1dd Wire-in max_client_requests for libvirt
Libvirt setting for (admin_/)max_client_requests is an important
configuration to be tweaked when serving long running requests.

Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
Change-Id: I2d0ab2472f940ef6edac662e167033881ab09086
2022-08-29 17:11:17 +02:00
Takashi Kajinami
2c38b95654 Use standard parameter description format for wsgi::apache
Currently parameter description of the <module>::wsgi::apache classes
are formatted differently in individual modules, and this is making
the maintenance effort quite difficult.

This change updates the description format following the standard one
we are globally using in our modules to reduce undesired differences
between modules.

Change-Id: I1f78cc018c6a98412fdabb9aa731f1f7b8509eec
2022-08-28 00:47:29 +09:00
Takashi Kajinami
3b6a8ccf9d 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: I1491f5b5a895b214e16263c9a2f57838911789be
2022-08-26 17:05:50 +09:00
Zuul
04b198f7f5 Merge "Adapt to the new [pci] device_spec parameter" 2022-08-18 16:57:12 +00:00
Zuul
6bc7b6e3d6 Merge "Remove deprecated mdev_types_device_addresses_mapping" 2022-08-18 02:40:00 +00:00
Takashi Kajinami
502aec2406 Adapt to the new [pci] device_spec parameter
and replaces the deprecated [pci] passthrough_whitelist parameter.

Depends-on: https://review.opendev.org/c/openstack/nova/+/843834
Change-Id: Ia534d2acd8f5488b1358376bb5bd1f0f7302fbaa
2022-08-18 01:27:26 +09:00
Takashi Kajinami
f16181f25c Remove deprecated mdev_types_device_addresses_mapping
This parameter was deprecated during Yoga cycle in favor of the new
mdev_types parameter[1].

[1] 0be9d0a3c70001517bf2cf8535973bd77064ec96

Change-Id: Idad6f62157ee637be64cee585beafe292efc9c15
2022-08-16 23:12:29 +09:00
Takashi Kajinami
535a0cd16a Remove deprecated keymgr_* parameters
These were deprecated in favor of the separate classes to customize
key manager, which were added during Xena cycle[1].

[1] e500bfe5e0900f163b6d0b69e224615786d7f6c2

Change-Id: Iad3298e0b0cefd7049536820e21eb4ab69afec42
2022-08-16 23:02:14 +09:00
Zuul
d8739ad539 Merge "Configure oslo.policy options and policy rules in nova-compute" 2022-08-12 08:22:38 +00:00
Zuul
5fe7c9ef87 Merge "Add support for [workarounds] skip_hypervisor_version_check_on_lm" 2022-08-12 08:10:54 +00:00
Zuul
a5d0af0d73 Merge "Remove unused items from platform_params" 2022-08-11 18:29:27 +00:00
Zuul
d3a5aa89d7 Merge "Adapt to new type validation in puppetlabs-apache" 2022-08-11 18:29:24 +00:00
Takashi Kajinami
f4e8fc4700 Remove unused items from platform_params
Trivial-Fix

Change-Id: I96897b113ca77ee754d1b16a5859584675d485d1
2022-08-12 01:40:42 +09:00
Takashi Kajinami
33dffab3da Add support for [workarounds] skip_hypervisor_version_check_on_lm
This change introduces support for the new workarounds option, which
allows users to migrate instances from a newer version of hypervisor
to an old version.

Depends-on: https://review.opendev.org/851034
Change-Id: I6a8b1229bc7b759d6d4ac737758ca8331c192f2d
2022-08-09 09:01:13 +09:00
Takashi Kajinami
434f22d885 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: I102a35c38f100a729ccea7c955b7e015590f2500
2022-08-02 20:40:53 +09:00
Takashi Kajinami
6576e8a4b6 Configure oslo.policy options and policy rules in nova-compute
There are some features in nova-compute which validate policy rules.
For example when connecting an instance to an external network,
nova-compute checks ``network:attach_external_network`` to determine
whether the operation is permitted.

This enables the configuration resources related policies in
nova-compute, as is done for the nova-api service.

Closes-Bug: #1983295
Change-Id: I199102af1f9b8f9fd08f2066a0b54737ff7b41e3
2022-08-02 10:45:14 +09:00
Zuul
cdcfe1e087 Merge "Remove old workaround to fix wrong owner of nova-manage.log" 2022-08-01 12:51:55 +00:00
Zuul
35066808de Merge "Remove deprecated parameters for RateLimitingMiddleware" 2022-08-01 09:04:24 +00:00
Zuul
afb5c6073b Merge "Remove handling of false value for instance_name_template" 2022-08-01 09:04:21 +00:00
Zuul
6047581550 Merge "Expose headers option of apache::vhost" 2022-07-30 15:29:02 +00:00
Takashi Kajinami
3487ffc699 Remove handling of false value for instance_name_template
That usage was deprecated during Wallaby cycle[1].

[1] 771b0bbe4e6c492496411de1e250da536106f699

Change-Id: Ie75f916223deb42c03803b84f442fe53f590949a
2022-07-27 16:37:33 +09:00
Takashi Kajinami
19034f8e9b Remove deprecated parameters for RateLimitingMiddleware
These parameters were deprecated during Yoga cycle[1] and has no effect
now.

[1] 25651f25e259ca957eb26cd15a290dfde142888e

Related-Bug: #1941855
Change-Id: Ic1479131983b790a38c9ae6002b5e83bfcded59d
2022-07-27 16:33:14 +09:00
Takashi Kajinami
befcc23b1d Revert "CentOS 9: Disable unit tests dependent on puppet-postgresql"
This reverts commit 20fec0749121b93189fd8a4195e21914982a3d30.

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: I912189bb54c0116b0c3df9f68cb96b1b9659de53
2022-07-24 00:52:02 +09:00
Zuul
16ef701f4d Merge "Add acceptance tests for config management resources" 2022-07-15 20:46:38 +00:00
Zuul
5bf2cfc962 Merge "Switch provider to manage paste.ini file" 2022-07-15 20:46:36 +00:00
Zuul
a1842ac7ea Merge "Fix wrong service notified by Virt*d_config" 2022-07-15 20:45:31 +00:00
Takashi Kajinami
2a023a76bc 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: I4804617c448e3ea8f65e8b971b1cafcde0a1d321
2022-07-15 11:49:48 +09:00
Takashi Kajinami
08d733620a Add acceptance tests for config management resources
Change-Id: Iefe9f5c14bdfb053fd10c71693ac90b67dfb2882
2022-07-10 13:04:14 +09:00
Takashi Kajinami
322599b75d 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: I4092da4732d5e68ce190e7341df7a01166954504
2022-07-09 10:04:03 +00:00
Takashi Kajinami
34351eacda 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: I23568d804f97c804f8883b49690f77d2119c4b87
2022-07-01 11:34:03 +09:00
Takashi Kajinami
16ebf1bb8b Fix wrong service notified by Virt*d_config
This change fixes the wrong notification which was introduced by
170edf57d8798d7b14770a73d93d0c00ee9bbd4a and ensures the correct
service is restarted.

Change-Id: Id8c38281fc8a69c1a83bd3806ac216556152759e
2022-06-29 10:48:34 +09:00
Zuul
903101a17e Merge "Ensure modular libvirt daemons are started before executing virsh" 2022-06-28 18:36:03 +00:00
Zuul
346044936f Merge "spice: Ensure settings are purged by default" 2022-06-28 16:05:50 +00:00
Zuul
510cfcb919 Merge "virtlogd: Remove redundant pick function" 2022-06-28 16:05:46 +00:00
Zuul
a9b2ab1608 Merge "Create a separate class for libvirtd settings" 2022-06-28 16:05:42 +00:00
Zuul
00a83b8fb4 Merge "Remove unnecessary class dependencies" 2022-06-28 15:55:18 +00:00
Zuul
eed4d1023c Merge "Fix missing dependency between qemu.conf and virtqemud" 2022-06-28 15:52:47 +00:00