Commit Graph

3244 Commits

Author SHA1 Message Date
Tobias Urdin cc00e708de Consolidate boolean config opts in nova::compute
Make them more consistent by reducing the logic
and grouping them together.

Change-Id: I7c1dc27edaedb1d8835434f93ea5f6a2bf1b45eb
2024-03-20 20:08:55 +01:00
Tobias Urdin fb73d45b03 Add nova::compute::flat_injected parameter
This adds a parameter to the nova::compute class
for the flat_injected configuration option.

Change-Id: Idb6b9ce7e21a96e8c63e1c2976e4088a307b1c25
2024-03-20 20:02:33 +01:00
Zuul d18827eca2 Merge "mdev: Simplify handling of device_addresses" 2024-03-19 04:17:53 +00:00
Zuul 69a538fe9e Merge "mdev: Add support for max_instances" 2024-03-19 04:06:45 +00:00
Zuul f211a97cbd Merge "Replace usage of uriescape" 2024-03-18 16:26:40 +00:00
Takashi Kajinami 2dcad6d8dc Replace usage of uriescape
The uriescape function from puppetlabs-stdlib is no longer functional
in Puppet 8, because the URI.escape, which is internally used by that
function, is no longer available in Ruby 3+.

This replaces the function by own function to avoid the failure in
Puppet 8.

Closes-Bug: #2057860
Change-Id: I7b4db4c1e64416e20d8470cbff0b8497c6a0cfc9
2024-03-15 23:05:08 +09:00
Takashi Kajinami 1fbdef7ac6 mdev: Simplify handling of device_addresses
The device_addresses option defaults to an empty list ([]), so we don't
have to replace an empty string value by the os_service_default fact.

Change-Id: I244e80ff8a5d393fb94e8a4e635401eb88936b39
2024-03-15 18:36:10 +09:00
Takashi Kajinami f483df8d99 mdev: Add support for max_instances
... which was added during this cycle.

Depends-on: https://review.opendev.org/c/openstack/nova/+/899625
Change-Id: I85d6e8369359e82eda94029ad2c17067f22124ed
2024-03-15 18:35:09 +09:00
Zuul 7a8ad323dc Merge "Expose rabbit_transient_quorum_queue" 2024-03-15 04:05:57 +00:00
Takashi Kajinami 2c134f98cf Expose rabbit_transient_quorum_queue
Depends-on: https://review.opendev.org/911021
Change-Id: Iafc91bdc229ab99f84f3a0dbc5fde2a6ecdc6583
2024-03-14 09:50:53 +09:00
Zuul 25d1d9c2a8 Merge "Refactor resource dependencies" 2024-03-09 06:58:36 +00:00
Takashi Kajinami cdd408392a cache: Support new redis options
The oslo.cache 3.7.0 release introduced some options for redis backend
and redis sentinel backend. This introduces for these parameters.

Depneds-on: https://review.opendev.org/910629
Change-Id: I0e7fa1e2134ec2cfcf1ae078e3fcf75b946dd699
2024-03-07 23:05:14 +09:00
Takashi Kajinami b47116d7aa Refactor resource dependencies
This refactors resource dependencies to improve the following points.

 - Avoid unnecessary dependencies across services. For example aodh
   service does not require cinder db.

 - Restart only api service when config files like paste.ini, which
   are used only be api service is changed.

Change-Id: Id4916244bdf4cd4ff2b45a45ec3e25fb0d115249
2024-03-05 10:35:17 +09:00
Zuul 5eacb81147 Merge "libvirt: Support cert_file and key_file" 2024-03-01 03:58:22 +00:00
Zuul 597476125e Merge "cache: Fix missing assertion of hashclient_retry_attempts" 2024-03-01 02:40:22 +00:00
Takashi Kajinami 0562666710 cache: Fix missing assertion of hashclient_retry_attempts
... to make the cache class unit tests consistent.

Change-Id: Ie4cef2b3913c72e03d0b2c0002026450b5e16341
2024-03-01 10:45:09 +09:00
Zuul 9e37a019df Merge "cache: Support options for SASL mechanism in memcached" 2024-02-29 22:36:23 +00:00
Takashi Kajinami 5c3fc8bc8d cache: Support options for SASL mechanism in memcached
Depends-on: https://review.opendev.org/910122
Change-Id: Ia253cf004544150b863e87811e918cb0d404696d
2024-03-01 00:33:59 +09:00
Takashi Kajinami d1359ab1f5 libvirt: Support cert_file and key_file
This introduces parameters to customize cert_file and key_file used for
tls connections in libvirt, in addition to ca_file and crl_file which
are currently supported.

Closes-Bug: #2055160
Change-Id: I597b4d61661a21470ed76ba259f276c2ceffc5ba
2024-02-28 00:55:20 +09:00
OpenStack Release Bot 203f522906 reno: Update master for unmaintained/yoga
Update the yoga release notes configuration to build from
unmaintained/yoga.

Change-Id: I934deaf7dd896d1a54a998ec619a1fe11bb5335d
2024-02-21 16:48:13 +00:00
Zuul 708187c5dc Merge "qemu: Support a few more migration_* options" 2024-02-09 16:57:29 +00:00
Zuul 06d3348553 Merge "Do not install swtpm by default" 2024-02-09 16:55:24 +00:00
Takashi Kajinami 77913c5073 qemu: Support a few more migration_* options
This introduces support for a few more migration_* options for QEMU,
which are used to determine the address/network used during migration.

Change-Id: I5cd32eeee428b0bef53a79f5d8bfe9900e64db22
2024-02-09 18:05:44 +09:00
Takashi Kajinami 8ea98a08e7 Do not install swtpm by default
Nova disables vTPM support by default and users have to set
the [libvirt] swtpm_enabled option to enable it. So the package
installation should be optional.

Note:
The parameter was introduced during this cycle[1] so we can safely
change the default value.

[1] e8a14766c8

Change-Id: I2e1791dcc64a844691a380686e695efeaaa0e343
2024-02-09 17:26:08 +09:00
Takashi Kajinami 49c63e5a10 Add support for oslo.reports options
Depends-on: https://review.opendev.org/804804
Change-Id: I83da2a6dcfc42aa8c363c8894188977c3be3b7a2
2024-01-30 00:47:33 +09:00
Zuul 332fb89413 Merge "Drop redundant default of send_service_user_token" 2024-01-23 16:37:28 +00:00
Takashi Kajinami 51a01e3968 Drop redundant default of send_service_user_token
The option defaults to False, so we don't need the explicit default and
can replace it by os_service_default fact.

Change-Id: Idd35189e279f3b6990f80c2eca80b7fa16c38e1f
2024-01-23 14:39:20 +09:00
Takashi Kajinami 36b05a236c Add support for [libvirt] live_migration_bandwidth
Change-Id: I6b066d1b8cb23fcfdd435c934821f2a47f09fea5
2024-01-20 12:02:44 +09:00
Takashi Kajinami d411860b1d Deprecate support for [libvirt] live_migration_tunnelled
This option was deprecated in 23.0.0 release[1], in favor of the native
TLS support by QEMU.

[1] 14071dfb118a32b26c6ebc068c66558d37466a5a

Change-Id: Ie563aa627a9cff5601570e38d981976f1bbfeaed
2024-01-20 12:02:25 +09:00
Zuul 885ed333e3 Merge "Remove deprecated use_forwarded_for parameter" 2024-01-12 18:06:38 +00:00
Zuul 98c2f57d0a Merge "Add support for [libvirt] migration_inbound_addr" 2024-01-12 18:06:36 +00:00
Takashi Kajinami b6e70a57b1 Remove deprecated use_forwarded_for parameter
... because the option was removed from nova[1].

[1] a5f68d355c97baddf2baf46d9630175d65c36968

Change-Id: I60bcb4b949cecdee75de825bdb7131ac3c4761b9
2024-01-12 20:22:45 +09:00
Takashi Kajinami 487b45ca18 Add support for [libvirt] migration_inbound_addr
... which was added during this cycle.

Depends-on: https://review.opendev.org/c/openstack/nova/+/900203

Change-Id: Ie10d50014ce431af4c6cc27e39441e789690fd16
2024-01-12 18:17:33 +09:00
Takashi Kajinami 4032b105fe Drop management of dbus service
The dbus service is fundamental in CentOS/RHEL systems and we can
assume the service is always running.

Change-Id: I7775effaed6d7b476131675ee8ccdfd0a99cdff9
2024-01-08 15:38:37 +00:00
Takashi Kajinami 8d88b7bf4f Avoid restarting dbus service
Restarting the dbus service is not necessary and is now triggering
a bug[1] in systemd-logind in CentOS Stream 9.

[1] https://issues.redhat.com/browse/RHEL-21004

Change-Id: Iae47044d7a58ba6316ff5f4b5ffdc01b03eddeba
2024-01-08 15:38:31 +00:00
Zuul 27f6b3a433 Merge "Support [cache] memcache_pool_flush_on_reconnect" 2023-12-15 18:32:37 +00:00
Takashi Kajinami 8e232b9192 Support [cache] memcache_pool_flush_on_reconnect
Depends-on: https://review.opendev.org/902861
Change-Id: Ibaf9d68a7cfca462b8fea69fbb8938480f759f08
2023-12-14 17:57:02 +09:00
Zuul f744cbde55 Merge "Enforce supported types for hash properties" 2023-11-27 17:19:37 +00:00
Zuul 660f4216a7 Merge "libvirt-guests: Validate parameter types" 2023-11-27 17:09:22 +00:00
Zuul a37050841a Merge "libvirt-guests: Improve parameter coverage" 2023-11-27 17:09:20 +00:00
Zuul 53187b118b Merge "libvirt-guests: Remove hard-coded default of shutdown_timeout" 2023-11-27 17:09:19 +00:00
Zuul 4424c16c2b Merge "Update libvirt-guests support" 2023-11-27 10:29:14 +00:00
Takashi Kajinami 898b5da4c8 Enforce supported types for hash properties
Change-Id: I39f9cef7007a1b3e47cf53fcec602a87b9ebb81d
2023-11-26 14:50:21 +09:00
Zuul 21987b3b3e Merge "Drop override of [DEFAULT] mkisofs_cmd in CentOS" 2023-11-23 15:12:50 +00:00
Takashi Kajinami 795a055b0f libvirt-guests: Validate parameter types
Change-Id: I7c83d8460e34e7baec0bfa389df9f05be1c50b61
2023-11-23 20:20:59 +09:00
Takashi Kajinami d88dc6659c libvirt-guests: Improve parameter coverage
This introduces support for a few more parameters in libvirt-guests
service.

Change-Id: I99ddef51ef60ae1b1bc6c43643cce7596457b598
2023-11-23 19:57:00 +09:00
Takashi Kajinami 0c2b228bf8 libvirt-guests: Remove hard-coded default of shutdown_timeout
The hard-coded value is exactly same as the default value in
libvirt-guests script.

Also, we don't have to replace the existing comment lines.

Change-Id: Iaf85adac38f5c62d961c63c8f6535c05e81ebaab
2023-11-23 04:19:01 +09:00
Takashi Kajinami 411301564d Update libvirt-guests support
This addresses several problems in the existing implementation.

- The libvirt-guests service is available in Ubuntu and Debian.
  There is no specific reason to support only RHEL and CentOS.

- The libvirt-guests package installs the client package in fact.

- Updating libvirt client does not need restarting nova services.

- Any change in config files should not restart the service. Restarting
  the libvirt-guests service shutdown all guests in that host.

Change-Id: I2529925c439d7c22a6ada34e6da71bc29a79de12
2023-11-22 08:11:53 +09:00
Takashi Kajinami e799ba9d19 Drop override of [DEFAULT] mkisofs_cmd in CentOS
The appropriate default value is added to the -dist.conf file[1], so
we no longer have to override the option.

[1] https://review.rdoproject.org/r/c/openstack/nova-distgit/+/50687

Change-Id: I51c5d5137795739d327b3d2aab751e716c70d686
2023-11-22 01:50:29 +09:00
Takashi Kajinami 4aeff8ee13 Use new openstackclient tag
This looses dependency using the new openstackclient tag, which
requires only packages actually related to openstack CLI.

Also, novaclient is not required by nova itself so the support
package tag can be removed.

Depends-on: https://review.opendev.org/899594
Change-Id: I6c43e57251d1520bc7622f0135a12f2a5bebaa62
2023-11-20 00:37:12 +09:00