3267 Commits

Author SHA1 Message Date
Takashi Kajinami
1af1f2560e Drop unicode prefix from command output
... because it is not longer shown in Python 3.

Change-Id: I126798422bcc3b78e1213865e0f23fef0b976fef
(cherry picked from commit fc2f08cd45bbdd1b5f85f1faf6086cb8648e6ac3)
(cherry picked from commit f6cd73780eb16938ae269ee42f65a2d6a9a9aeaa)
2024-10-09 02:45:48 +00:00
Takashi Kajinami
c2ab06c6a9 CentOS: Drop unused libvirt-daemon-config-nwfilter
The package is no longer used by nova, since the firewall feature was
removed from nova during ussuri cycle[1].

[1] 9b321e41f60be5d4111c8312b40c826454386c53

Closes-Bug: #2067867
Change-Id: I9fb3193d10b8c23dcf7eb1d4549ee04776d9959d
(cherry picked from commit 7617973329a50b22e5a67b2e51fd7810b267c0f8)
2024-06-04 22:49:19 +00:00
Takashi Kajinami
7c996fb434 Assume structured fact in unit tests
The legacy fact has been deprecated and is no longer available in
Puppet 8. Use the structured one to access fact values in tests so that
we use the consistent method for fact value access.

This change also fixes ignored unit tests of nova::migration::libvirt
with modular libvirt daemons.

Change-Id: I852facc2ee0ad2a948821f4232a1e8fc20ce4957
(cherry picked from commit df8171df9352f32fa768d8c8cb7197dbe50fb1e9)
2024-06-01 14:01:47 +09:00
Tobias Urdin
74a42d6b33 Add nova::compute::libvirt::secret_ceph resource
This adds the nova::compute::libvirt::secret_ceph
resource definition that can be used to define
libvirt secrets of ceph type.

Before this patch one could only handle one libvirt
secret by configuring the parameters in the
nova::compute::rbd class and with this one can
configure multiple.

This adds a new manage_libvirt_secret parameter
defaulting to true in the nova::compute::rbd class
so that one can disable the creation of the libvirt
secret from that class.

Change-Id: Ief031f5dd4b0648d5629789cb7d6d2f6f946fbf8
(cherry picked from commit a7498d6dbc76349d76a800f7b2e01f1ae29d6115)
2024-04-25 18:03:02 +00:00
Takashi Kajinami
1c2ab16556 Improve test coverage of virtlockd class
Change-Id: I4d430fe072deb86d0043e2fd5e23a8f5f612fc5b
(cherry picked from commit 9d6f46d1cf099ee5359d5dc94bfac3b65cbae9a9)
2024-04-19 16:29:13 +00:00
569e53a152 Update TOX_CONSTRAINTS_FILE for stable/2024.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/2024.1 branch, tests will
continue to use the upper-constraints list on master.

Change-Id: Ib44475655cfc0cb8052be9fde61117c2fb272ee9
2024-04-18 10:48:05 +00:00
d032b112c8 Update .gitreview for stable/2024.1
Change-Id: I0f204b336a3c4db1050ae452742e66b79c8a75c5
2024-04-18 10:48:03 +00:00
Takashi Kajinami
f011966893 Prepare 2024.1 release
Change-Id: I0b4ae6e96fbae47d65d93b781c66a04c0a9d6ae2
24.0.0
2024-04-15 22:31:13 +09:00
Zuul
8633ef31ac Merge "reno: Update master for unmaintained/xena" 2024-04-12 13:02:47 +00:00
bbef641b55 reno: Update master for unmaintained/xena
Update the xena release notes configuration to build from
unmaintained/xena.

Change-Id: I387c33574c0af18604879da86e5a454cb9094770
2024-04-12 12:33:33 +00:00
f3c10a34b5 reno: Update master for unmaintained/wallaby
Update the wallaby release notes configuration to build from
unmaintained/wallaby.

Change-Id: I12600c328cad4946e96d0cf8bd5d0c98cc705899
2024-04-12 12:25:49 +00:00
Zuul
57d31d0fbd Merge "Set show_diff to false for Nova SSH private key" 2024-04-11 15:33:55 +00:00
Zuul
c35529dcd3 Merge "ironic: Support options to distribute baremetal management" 2024-04-11 15:33:53 +00:00
Zuul
da0093fbb2 Merge "Avoid deprecated live_migration_uri if possible" 2024-04-11 15:30:43 +00:00
Tobias Urdin
75fbe61987 Set show_diff to false for Nova SSH private key
The private key is currently being leaked into
the diff output.

Change-Id: I94170f76257c77d1eabeeb3d373c05c50413c53d
2024-04-08 20:11:51 +00:00
Takashi Kajinami
7c7f60cc84 validate maxdelay for cron job
The parameter descriptions says the value should be a positive integer
(or 0). Validate the given value to reject invalid values such as
strings or even negative values.

Change-Id: Ib0937e1c3f6f97959b59e2c5812e3dfe696b6dba
2024-04-08 16:43:50 +09:00
Takashi Kajinami
d452e60c7c ironic: Support options to distribute baremetal management
The ironic driver now provides a few options to distribute baremetal
node management among multilple nova-compute.

Change-Id: I7fbceb00422c2bd6ae7d594321fe09789fe0a3f3
2024-04-08 10:45:58 +09:00
Takashi Kajinami
34f0c8c722 Avoid deprecated live_migration_uri if possible
The live_migration_uri option was deprecated in favor of the new
live_migration_(scheme|inbound_addr) options.

Note that the new options does not allow customizing some parameters
for ssh, which were possible by the deprecated _uri option, so
the legacy option is still used if a user requests any of the options
currently not configurable by the new options.

Related-Bug: #1680729
Change-Id: I88c9777999cb091b8570c642e75b0332fb103294
2024-04-06 12:13:26 +09:00
Takashi Kajinami
83c9e4b17b Add consoleauth option support
Change-Id: Ic77b0a4aa0715344ed32c74cc11c114a6232af73
2024-04-04 09:30:44 +09:00
Zuul
c990ec28c3 Merge "placement: Require password" 2024-04-03 20:44:24 +00:00
Zuul
5ec1ef579c Merge "nova_flavor: Fix broken idempotency with properties" 2024-04-03 11:37:13 +00:00
Takashi Kajinami
820695b463 nova_flavor: Fix broken idempotency with properties
Make sure that nova_flavor resource is idempotent when the "properties"
property is set. Also fix the typo causing undefined method error.

Closes-Bug: #2059949
Change-Id: I17a9d92c44b8dfe329b22b309d7a0408df707d1a
2024-04-02 17:05:11 +09:00
Takashi Kajinami
798ae4bdd9 placement: Require password
The parameter description says the option is required, but it hasn't
been actually required at the interface layer.

Change-Id: Ieabd550ebbb3e1407969866ba280ced7d4db2663
2024-04-02 10:34:07 +09:00
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
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] e8a14766c84bf0eaea1c11b24a23452e0a574581

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