Skip to content

Commit eb2b8c6

Browse files
authored
Merge pull request #694 from stackhpc/upstream/master-2025-03-31
Synchronise master with upstream
2 parents 2403693 + 356867e commit eb2b8c6

File tree

142 files changed

+436
-3516
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

142 files changed

+436
-3516
lines changed

README.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ Kolla Ansible deploys containers for the following OpenStack projects:
6262
- `Nova <https://docs.openstack.org/nova/latest/>`__
6363
- `Octavia <https://docs.openstack.org/octavia/latest/>`__
6464
- Skyline (`APIServer <https://docs.openstack.org/skyline-apiserver/latest/>`__ and `Console <https://docs.openstack.org/skyline-console/latest/>`__)
65-
- `Swift <https://docs.openstack.org/swift/latest/>`__
6665
- `Tacker <https://docs.openstack.org/tacker/latest/>`__
6766
- `Trove <https://docs.openstack.org/trove/latest/>`__
6867
- `Venus <https://docs.openstack.org/venus/latest/>`__

ansible/group_vars/all.yml

Lines changed: 11 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,12 @@ om_rabbitmq_cacert: "{{ rabbitmq_cacert }}"
277277
om_enable_rabbitmq_high_availability: false
278278
# Only enable quorum queues if you disable om_enable_rabbitmq_high_availability
279279
om_enable_rabbitmq_quorum_queues: true
280-
om_enable_queue_manager: false
280+
om_enable_queue_manager: true
281+
# Enabling om_enable_rabbitmq_transient_quorum_queue will have no effect
282+
# without also enabling om_enable_rabbitmq_quorum_queues.
283+
# om_enable_rabbitmq_transient_quorum_queue should only be used in conunction
284+
# with om_enable_queue_manager.
285+
om_enable_rabbitmq_transient_quorum_queue: "{{ om_enable_rabbitmq_quorum_queues | bool and om_enable_queue_manager | bool }}"
281286

282287
####################
283288
# Networking options
@@ -286,8 +291,6 @@ network_interface: "eth0"
286291
neutron_external_interface: "eth1"
287292
kolla_external_vip_interface: "{{ network_interface }}"
288293
api_interface: "{{ network_interface }}"
289-
swift_storage_interface: "{{ network_interface }}"
290-
swift_replication_interface: "{{ swift_storage_interface }}"
291294
migration_interface: "{{ api_interface }}"
292295
tunnel_interface: "{{ network_interface }}"
293296
octavia_network_interface: "{{ 'o-hm0' if octavia_network_type == 'tenant' else api_interface }}"
@@ -302,8 +305,6 @@ ironic_tftp_interface: "{{ api_interface }}"
302305
network_address_family: "ipv4"
303306
api_address_family: "{{ network_address_family }}"
304307
storage_address_family: "{{ network_address_family }}"
305-
swift_storage_address_family: "{{ storage_address_family }}"
306-
swift_replication_address_family: "{{ swift_storage_address_family }}"
307308
migration_address_family: "{{ api_address_family }}"
308309
tunnel_address_family: "{{ network_address_family }}"
309310
octavia_network_address_family: "{{ api_address_family }}"
@@ -711,17 +712,6 @@ skyline_console_listen_port: "{{ skyline_console_port }}"
711712
skyline_console_public_port: "{{ haproxy_single_external_frontend_public_port if haproxy_single_external_frontend | bool else skyline_console_port }}"
712713
skyline_enable_sso: "{{ enable_keystone_federation | bool and keystone_identity_providers | selectattr('protocol', 'equalto', 'openid') | list | count > 0 }}"
713714

714-
swift_internal_fqdn: "{{ kolla_internal_fqdn }}"
715-
swift_external_fqdn: "{{ kolla_external_fqdn }}"
716-
swift_internal_base_endpoint: "{{ swift_internal_fqdn | kolla_url(internal_protocol, swift_proxy_server_port) }}"
717-
swift_public_base_endpoint: "{{ swift_external_fqdn | kolla_url(public_protocol, swift_proxy_server_port) }}"
718-
swift_proxy_server_port: "8080"
719-
swift_proxy_server_listen_port: "{{ swift_proxy_server_port }}"
720-
swift_object_server_port: "6000"
721-
swift_account_server_port: "6001"
722-
swift_container_server_port: "6002"
723-
swift_rsync_port: "10873"
724-
725715
syslog_udp_port: "{{ fluentd_syslog_port }}"
726716

727717
tacker_internal_fqdn: "{{ kolla_internal_fqdn }}"
@@ -862,6 +852,7 @@ enable_cinder_backend_pure_iscsi: "no"
862852
enable_cinder_backend_pure_fc: "no"
863853
enable_cinder_backend_pure_roce: "no"
864854
enable_cinder_backend_pure_nvme_tcp: "no"
855+
enable_cinder_backend_lightbits: "no"
865856
enable_cloudkitty: "no"
866857
enable_collectd: "no"
867858
enable_cyborg: "no"
@@ -947,9 +938,6 @@ enable_prometheus: "no"
947938
enable_proxysql: "yes"
948939
enable_redis: "no"
949940
enable_skyline: "no"
950-
enable_swift: "no"
951-
enable_swift_s3api: "no"
952-
enable_swift_recon: "no"
953941
enable_tacker: "no"
954942
enable_telegraf: "no"
955943
enable_trove: "no"
@@ -1106,12 +1094,11 @@ openstack_auth:
11061094
#######################
11071095
# Glance options
11081096
#######################
1109-
glance_backend_file: "{{ not (glance_backend_ceph | bool or glance_backend_s3 | bool or glance_backend_swift | bool or glance_backend_vmware | bool) }}"
1097+
glance_backend_file: "{{ not (glance_backend_ceph | bool or glance_backend_s3 | bool or glance_backend_vmware | bool) }}"
11101098
glance_backend_ceph: "no"
11111099
glance_backend_vmware: "no"
11121100
glance_backend_s3: "no"
11131101
enable_glance_image_cache: "no"
1114-
glance_backend_swift: "{{ enable_swift | bool }}"
11151102
glance_file_datadir_volume: "glance"
11161103
glance_enable_rolling_upgrade: "no"
11171104
glance_enable_property_protection: "no"
@@ -1130,8 +1117,8 @@ barbican_library_path: "/usr/lib/libCryptoki2_64.so"
11301117
#################
11311118
# Gnocchi options
11321119
#################
1133-
# Valid options are [ file, ceph, swift ]
1134-
gnocchi_backend_storage: "{% if enable_swift | bool %}swift{% else %}file{% endif %}"
1120+
# Valid options are [ file, ceph ]
1121+
gnocchi_backend_storage: "file"
11351122

11361123
# Valid options are [redis, '']
11371124
gnocchi_incoming_storage: "{{ 'redis' if enable_redis | bool else '' }}"
@@ -1150,7 +1137,7 @@ cinder_target_helper: "{{ 'lioadm' if ansible_facts.os_family == 'RedHat' else '
11501137
# Valid options are [ '', redis, etcd ]
11511138
cinder_coordination_backend: "{{ 'redis' if enable_redis | bool else 'etcd' if enable_etcd | bool else '' }}"
11521139

1153-
# Valid options are [ nfs, swift, ceph, s3 ]
1140+
# Valid options are [ nfs, ceph, s3 ]
11541141
cinder_backup_driver: "ceph"
11551142
cinder_backup_share: ""
11561143
cinder_backup_mount_options_nfs: ""

ansible/inventory/all-in-one

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,6 @@ control
9494
[horizon:children]
9595
control
9696

97-
[swift:children]
98-
control
99-
10097
[barbican:children]
10198
control
10299

@@ -306,19 +303,6 @@ network
306303
[manila-data:children]
307304
manila
308305

309-
# Swift
310-
[swift-proxy-server:children]
311-
swift
312-
313-
[swift-account-server:children]
314-
storage
315-
316-
[swift-container-server:children]
317-
storage
318-
319-
[swift-object-server:children]
320-
storage
321-
322306
# Barbican
323307
[barbican-api:children]
324308
barbican

ansible/inventory/multinode

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,6 @@ control
118118
[horizon:children]
119119
control
120120

121-
[swift:children]
122-
control
123-
124121
[barbican:children]
125122
control
126123

@@ -325,19 +322,6 @@ network
325322
[manila-data:children]
326323
manila
327324

328-
# Swift
329-
[swift-proxy-server:children]
330-
swift
331-
332-
[swift-account-server:children]
333-
storage
334-
335-
[swift-container-server:children]
336-
storage
337-
338-
[swift-object-server:children]
339-
storage
340-
341325
# Barbican
342326
[barbican-api:children]
343327
barbican

ansible/library/kolla_container_facts.py

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
- The action to perform
4747
required: True
4848
type: str
49-
author: Jeffrey Zhang, Michal Nasiadka
49+
author: Jeffrey Zhang, Michal Nasiadka, Ivan Halomi
5050
'''
5151

5252
EXAMPLES = '''
@@ -89,6 +89,11 @@
8989
kolla_container_facts:
9090
container_engine: docker
9191
action: get_volumes
92+
93+
- name: Get container names
94+
kolla_container_facts:
95+
container_engine: docker
96+
action: get_containers_names
9297
'''
9398

9499

@@ -122,6 +127,12 @@ def _remap_envs(self, envs_raw: list) -> dict:
122127
envs[key] = value
123128
return envs
124129

130+
def get_containers_names(self):
131+
"""Handles when module is called with action get_containers_names"""
132+
containers = self.client.containers.list()
133+
names = [cont.name for cont in containers]
134+
self.result['container_names'] = names
135+
125136
def get_containers(self):
126137
"""Handle when module is called with action get_containers"""
127138
names = self.params.get('name')
@@ -140,8 +151,8 @@ def get_containers(self):
140151

141152
def get_containers_state(self):
142153
"""Handle when module is called with action get_containers_state"""
143-
# NOTE(r-krcek): This function can be removed when bifrost and swift
144-
# roles switch to modern format
154+
# NOTE(r-krcek): This function can be removed when bifrost
155+
# role switches to modern format
145156
names = self.params.get('name')
146157
self.result['states'] = dict()
147158

@@ -152,8 +163,8 @@ def get_containers_state(self):
152163

153164
def get_containers_env(self):
154165
"""Handle when module is called with action get_containers_state"""
155-
# NOTE(r-krcek): This function can be removed when bifrost and swift
156-
# roles switch to modern format
166+
# NOTE(r-krcek): This function can be removed when bifrost
167+
# role switches to modern format
157168
names = self.params.get('name')
158169
self.result['envs'] = dict()
159170

@@ -216,6 +227,7 @@ def main():
216227
choices=['get_containers',
217228
'get_containers_env',
218229
'get_containers_state',
230+
'get_containers_names',
219231
'get_volumes']),
220232
)
221233

ansible/roles/aodh/templates/aodh.conf.j2

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@ driver = noop
6161
{% endif %}
6262

6363
[oslo_messaging_rabbit]
64+
{% if om_enable_queue_manager | bool %}
65+
use_queue_manager = true
66+
{% if service_name == 'aodh-api' %}
67+
processname = {{ service_name }}
68+
{% endif %}
69+
{% endif %}
6470
heartbeat_in_pthread = {{ service_name == 'aodh-api' }}
6571
{% if om_enable_rabbitmq_tls | bool %}
6672
ssl = true
@@ -71,6 +77,9 @@ amqp_durable_queues = true
7177
{% endif %}
7278
{% if om_enable_rabbitmq_quorum_queues | bool %}
7379
rabbit_quorum_queue = true
80+
{% if om_enable_rabbitmq_transient_quorum_queue | bool %}
81+
rabbit_transient_quorum_queue = true
82+
{% endif %}
7483
{% endif %}
7584

7685
[oslo_concurrency]

ansible/roles/barbican/templates/barbican.conf.j2

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ driver = noop
8484
{% endif %}
8585

8686
[oslo_messaging_rabbit]
87+
{% if om_enable_queue_manager | bool %}
88+
use_queue_manager = true
89+
{% endif %}
8790
heartbeat_in_pthread = false
8891
{% if om_enable_rabbitmq_tls | bool %}
8992
ssl = true
@@ -94,6 +97,9 @@ amqp_durable_queues = true
9497
{% endif %}
9598
{% if om_enable_rabbitmq_quorum_queues | bool %}
9699
rabbit_quorum_queue = true
100+
{% if om_enable_rabbitmq_transient_quorum_queue | bool %}
101+
rabbit_transient_quorum_queue = true
102+
{% endif %}
97103
{% endif %}
98104

99105
[oslo_middleware]

ansible/roles/blazar/templates/blazar.conf.j2

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ driver = noop
5555
{% endif %}
5656

5757
[oslo_messaging_rabbit]
58+
{% if om_enable_queue_manager | bool %}
59+
use_queue_manager = true
60+
{% endif %}
5861
heartbeat_in_pthread = false
5962
{% if om_enable_rabbitmq_tls | bool %}
6063
ssl = true
@@ -65,6 +68,9 @@ amqp_durable_queues = true
6568
{% endif %}
6669
{% if om_enable_rabbitmq_quorum_queues | bool %}
6770
rabbit_quorum_queue = true
71+
{% if om_enable_rabbitmq_transient_quorum_queue | bool %}
72+
rabbit_transient_quorum_queue = true
73+
{% endif %}
6874
{% endif %}
6975

7076
{% if blazar_policy_file is defined %}

ansible/roles/ceilometer/tasks/register.yml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,3 @@
44
vars:
55
service_ks_register_auth: "{{ openstack_ceilometer_auth }}"
66
service_ks_register_users: "{{ ceilometer_ks_users }}"
7-
8-
- name: Associate the ResellerAdmin role and ceilometer user
9-
become: true
10-
kolla_toolbox:
11-
container_engine: "{{ kolla_container_engine }}"
12-
module_name: openstack.cloud.role_assignment
13-
module_args:
14-
project: "service"
15-
user: "{{ ceilometer_keystone_user }}"
16-
role: "ResellerAdmin"
17-
region_name: "{{ openstack_region_name }}"
18-
auth: "{{ openstack_ceilometer_auth }}"
19-
endpoint_type: "{{ openstack_interface }}"
20-
cacert: "{{ openstack_cacert }}"
21-
when: enable_swift | bool
22-
run_once: True

ansible/roles/ceilometer/templates/ceilometer.conf.j2

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ ca_file = /etc/ceilometer/vmware_ca
3636
transport_url = {{ notify_transport_url }}
3737

3838
[oslo_messaging_rabbit]
39+
{% if om_enable_queue_manager | bool %}
40+
use_queue_manager = true
41+
{% endif %}
3942
heartbeat_in_pthread = false
4043
{% if om_enable_rabbitmq_tls | bool %}
4144
ssl = true
@@ -46,6 +49,9 @@ amqp_durable_queues = true
4649
{% endif %}
4750
{% if om_enable_rabbitmq_quorum_queues | bool %}
4851
rabbit_quorum_queue = true
52+
{% if om_enable_rabbitmq_transient_quorum_queue | bool %}
53+
rabbit_transient_quorum_queue = true
54+
{% endif %}
4955
{% endif %}
5056

5157
{% if ceilometer_policy_file is defined %}

0 commit comments

Comments
 (0)