2773 Commits

Author SHA1 Message Date
Takashi Kajinami
70b843b527 TripleO jobs: Replace CentOS 8 jobs by CentOS 9 jobs
Now TripleO team is replacing CentOS 8 jobs in master by CentOS 9 jobs.
This follows that and replaces tripleo jobs in puppet repos to switch
to CentOS 9.

Depends-on: https://review.opendev.org/828525
Change-Id: Ie168358fed1f822a81220b2d4a0b0ff95b41e3cb
2022-02-09 22:40:54 +09:00
Zuul
67ab0e4ee2 Merge "Fix typo causing a warning message" 2022-02-07 17:35:20 +00:00
Zuul
ea85788866 Merge "Simplify definition to ensure keystone resource creation" 2022-02-07 17:24:30 +00:00
Takashi Kajinami
0378d590d3 Fix typo causing a warning message
This is follow up of 3c376bd733bff778002a01fb7b5f0dbc645d0e05 and fixes
one typo included in that commit. Because of this, the following
warning is always logged.

(warning): The cross_az_attach parameter is deprecated. \
Use nova::cinder::cross_az_attach instead.

Change-Id: I2a5b782ee453f59a754660af6a34bc0cdcd60b15
2022-02-07 02:05:04 +09:00
Takashi Kajinami
d47a0d7bfb Simplify definition to ensure keystone resource creation
Use the whole resource type instead of its individual resources, to
rely on interface instead of implementation of the dependent module.

Change-Id: I67aa61335f635e5cdc3176616d55f6e6002064fa
2022-02-06 23:58:40 +09:00
Zuul
1557253038 Merge "Add support for [cinder] debug" 2022-02-05 17:03:04 +00:00
Zuul
c7dabe6d1e Merge "Migrate cross_az_attach from nova to nova::cinder" 2022-02-04 11:02:33 +00:00
Zuul
8d0705a7d2 Merge "Deprecate support for unused [cinder] region_name" 2022-02-04 11:02:30 +00:00
Takashi Kajinami
f626e649f1 Add support for [cinder] debug
Depends-on: https://review.opendev.org/820399
Change-Id: I2a007f5e4eeb71b94b59a0e0b5c54f20ad9535c0
2022-02-04 12:31:48 +09:00
Zuul
f1f96d38cc Merge "CentOS: Ensure /etc/sysconfig/libvirtd(-guests) exists" 2022-02-02 21:36:51 +00:00
Zuul
b8cd887381 Merge "Add socket keepalive options for the pymemcache backend" 2022-02-02 19:36:42 +00:00
Takashi Kajinami
3c376bd733 Migrate cross_az_attach from nova to nova::cinder
... to manage all [cinder] parameters by nova::cinder.

Change-Id: I7ba317045e9811873c00ff9cc052932ec444d3bd
2022-02-02 16:21:03 +00:00
Takashi Kajinami
e2889d1bf6 Deprecate support for unused [cinder] region_name
The [cinder] region_name parameter is not used by nova, while nova uses
the [cinder] os_region_name parameter instead.
This change deprecates the unused region_name parameter.

Change-Id: I9f45c9aea59793a9d3807af4e5fe53e347d81541
2022-02-03 01:20:18 +09:00
Zuul
5ba70dce31 Merge "Remove deprecated parameters related to Glance" 2022-02-01 18:14:22 +00:00
Zuul
80fa44926e Merge "Remove deprecated nova::compute::allow_resize_to_same_host" 2022-02-01 18:14:20 +00:00
Alfredo Moralejo
99830f8a2d CentOS: Ensure /etc/sysconfig/libvirtd(-guests) exists
Last build of libvirt in CentOS9 has removed default config files in
/etc/sysconfig . This is making some file_line resources to fail as
the original files no longer exist.

This patch is creating empty files if the target files don't exist, so
that this is compatible with centos8 and centos9 (before and after
default config files removal).

[1] https://bugzilla.redhat.com/show_bug.cgi?id=2042529

Closes-Bug: #1959601
Change-Id: Iff9daf3d284c725d40ecfb85500d77951c3fefcd
2022-02-01 23:07:05 +09:00
Zuul
1b7ccd8c08 Merge "cinder: Remove credential parameters if password is not set" 2022-02-01 06:23:16 +00:00
Takashi Kajinami
b052a4c1a3 Fix error in 140chars lint check
Change-Id: Iaf4576e97503aeb5acb257d310fa23fb34a2d316
2022-02-01 00:14:23 +09:00
Takashi Kajinami
396515f611 Remove deprecated parameters related to Glance
This change removes the parameters which were deprecated in favor
of the independent nova::glance class by [1] and [2].

[1] 6b99fa975e5be025ee5813544a19dcfda950ccf6
[2] 01a829b96388ddecc23a8691133a1dcc3235174d

Change-Id: I719e7ef431ee6c7bb8f98bacde229b12805a3a9c
2022-01-29 16:16:02 +09:00
Takashi Kajinami
8e2f100632 Remove deprecated nova::compute::allow_resize_to_same_host
This parameter was deprecated during Victoria cycle by [1], and has
had no effect since then.

[1] 577eeab4306f2353bbe8b910ae0c9fc80f1f70cf

Change-Id: I4b6dc21d4826941fa464241d88c4e17f9f894af7
2022-01-29 16:11:36 +09:00
Zuul
5e4243a8ba Merge "Fix duplicate (Optional) in parameter description" 2022-01-27 21:37:57 +00:00
Takashi Kajinami
47e61bd3af Fix duplicate (Optional) in parameter description
Trivial-Fix

Change-Id: I67a1ed30f66b7641421e209e73cc39777a350ec8
2022-01-27 20:27:48 +09:00
Grzegorz Grasza
54c63dc060 Add socket keepalive options for the pymemcache backend
This patch specifies a set of options required to setup the socket
keepalive feature of pymemcache (dogpile.cache) cache backend.

Original oslo.cache change:
https://review.opendev.org/c/openstack/oslo.cache/+/803716

Depends-On: https://review.opendev.org/807851
Change-Id: I2b4ae861ebb7052d38ad2c4431d63bffc1ccc55b
2022-01-27 20:26:20 +09:00
Zuul
e549476137 Merge "novajoin: Accept system scope credentials for Keystone API request" 2022-01-27 03:40:15 +00:00
Zuul
4a6e9f15e9 Merge "Accept system scope credential for Neutron API request" 2022-01-26 15:57:58 +00:00
Zuul
a26eb10038 Merge "barbican_service_user: Accept system scope credential" 2022-01-26 15:57:55 +00:00
Zuul
bf8543c291 Merge "Remove deprecated parameters of nova::metadata::novajoin::api" 2022-01-25 18:12:21 +00:00
Takashi Kajinami
47a56f16a0 Remove deprecated parameters of nova::metadata::novajoin::api
Change-Id: Id29f86639f607bbe360ea4abf69e9f177d23e22b
2022-01-25 21:24:21 +09:00
Takashi Kajinami
e082614f11 novajoin: 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: Id1e235f792e1690454874718d6e83e7ff4ff313b
2022-01-25 21:16:19 +09:00
Takashi Kajinami
f65531282e barbican_service_user: Accept system scope credential
This change allows usage of system scope credentials in addition to
project scope credentials, to use service user token when accessing
Barbican API.

Depends-on: https://review.opendev.org/823883
Change-Id: I6adf315b5d512ff5ed2b6a85c605f8aaadbb37ae
2022-01-25 17:10:57 +09:00
Takashi Kajinami
f4271788b4 Accept system scope credential for Neutron API request
Currently Nova uses the user credential in [neutron] section to update
port binding/migration profile or get resource_request of ports, but
these APIs are available for system admin/reader when SRBAC is
enforced.

This change allows usage of system-scoped credential instead of
project-scoped one.

Change-Id: Id1b4e324c8a46a8951f9e37203eb74a5602700e5
2022-01-25 17:06:02 +09:00
Zuul
3fd408af67 Merge "Clean up deprecated database parameters" 2022-01-25 02:45:12 +00:00
Takashi Kajinami
228e3aa77b Debian/Ubuntu: Use ceph-common instead of ceph
The ceph package no longer requires python packages like python-ceph,
which are required by nova to use Ceph.

This change replaces the package by the ceph-common package which
require both the ceph package and the related ceph packages.

Change-Id: Ic3fda73730ac6b036082a3fd8aae531093bbcf9e
Closes-Bug: #1958092
2022-01-23 14:53:31 +00:00
Takashi Kajinami
f972678114 Clean up deprecated database parameters
Change-Id: I25c93e55e993eea0ec094c7cf771eec9950f9adf
2022-01-23 18:37:10 +09:00
Zuul
c11cab3ad8 Merge "Avoid testing details of nova::db multiple times" 2022-01-21 22:04:33 +00:00
Zuul
13ae23df4d Merge "Avoid testing details of oslo::db" 2022-01-21 22:04:30 +00:00
Zuul
7e8b8572b7 Merge "Accept system scope credential for Keystone API request" 2022-01-21 17:02:15 +00:00
Zuul
46e3d57aa5 Merge "Remove inefficient usage of autorequire" 2022-01-21 16:17:21 +00:00
Takashi Kajinami
053c6e7729 Avoid testing details of nova::db multiple times
This change drops some redundant test cases which assert functionality
of nova::db class from spec files for different classes.
The nova::db class has its own spec file and is tested by that.

Change-Id: I92fd649b4a546dd74fac81b5a9231712768ec707
2022-01-21 20:39:08 +09:00
Takashi Kajinami
d62be4a321 Avoid testing details of oslo::db
Change-Id: I3eb3ac65ee08f818ee5b8403548fb575cfe9675e
2022-01-21 20:38:36 +09:00
Zuul
82737f75ac Merge "Add support for [keystone] parameters" 2022-01-20 18:07:45 +00:00
Takashi Kajinami
3b47f97063 Remove inefficient usage of autorequire
This change removes inefficient usage of autorequire, with the wrong
resource name(The resource name should include section name) in
some resource types. The necessary dependency is already enforced by
another autorequire which depends on service::end anchor.

Change-Id: I0993e2c9ed80d476ca984edf9d6167818a1cb1bb
2022-01-20 22:51:30 +09:00
Tobias Urdin
4a77e0a5b9 Add enable_qemu_monitor_announce_self workaround
This adds the enable_qemu_monitor_announce_self param
that will be introduced by [1].

[1] https://review.opendev.org/c/openstack/nova/+/741529

Depends-On: https://review.opendev.org/c/741529
Change-Id: Ia96e00ccc1b3f056605d63fe2570c4e795f509ab
2022-01-19 23:06:40 +09:00
Takashi Kajinami
63966683df Accept system scope credential for Keystone API request
When SRBAC is enforced, obtaining detail of a project requires system
reader, domain reader of the user who actually belongs to the project.
This allows using system scope credential so that a system reader role
can be leveraged.

Change-Id: If2a95361e20c8829c64aa6a27e6fb1d0dc5c1ff2
2022-01-14 09:17:45 +09:00
Takashi Kajinami
ab3a58f014 Add support for [keystone] parameters
This change adds support for parameters in the [keystone] section,
which are used to query Keystone API to validate the given project id.

Change-Id: I3b9416f1e3f7ae303a182c3890a8797605a40271
2022-01-14 09:17:14 +09:00
Takashi Kajinami
65eea0d9c5 cinder: Remove credential parameters if password is not set
The admin credential in [cinder] section is only required in compute
nodes while some parameters in the same section like catalog_info is
used by both controller nodes and compute nodes.

This change makes all credential parameters unset unless the password
is given. If the parameters are intentionally set the provided values
are honored.

Change-Id: I08d787817257d8b2e4a5c1ebf9c6763f6276a7e9
2022-01-14 00:01:36 +09:00
Zuul
44b3a2b331 Merge "key_manager: Add service user options for Barbican key manager" 2022-01-08 19:09:48 +00:00
Zuul
acd11943bb Merge "Accept system scope credential for Placement API request" 2022-01-08 00:28:48 +00:00
Zuul
9f9ca26382 Merge "Accept system scope credentials for Keystone API request" 2022-01-08 00:28:45 +00:00
Zuul
91601648a5 Merge "Remove usage of custom os_package_type fact" 2022-01-07 21:06:20 +00:00