Skip to content

Commit b2f64ae

Browse files
authored
Merge pull request #891 from stackhpc/upstream/2025.1-2026-06-22
Synchronise 2025.1 with upstream
2 parents e5dde22 + d72865e commit b2f64ae

8 files changed

Lines changed: 31 additions & 7 deletions

File tree

ansible/group_vars/all.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ ovn_sb_db_port: "6642"
640640
ovn_sb_db_relay_count: "{{ ((groups['ovn-controller'] | length) / ovn_sb_db_relay_compute_per_relay | int) | round(0, 'ceil') | int }}"
641641
ovn_sb_db_relay_compute_per_relay: "50"
642642
ovn_sb_db_relay_port_prefix: "1664"
643-
ovn_sb_db_relay_port: "{{ ovn_sb_db_relay_port_prefix ~ ovn_sb_db_relay_client_group_id }}"
643+
ovn_sb_db_relay_port: "{{ (ovn_sb_db_relay_port_prefix | int) * 10 + (ovn_sb_db_relay_client_group_id | int) }}"
644644
ovn_sb_db_relay_client_group_id: "{{ range(1, ovn_sb_db_relay_count | int + 1) | random(seed=inventory_hostname) }}"
645645
ovn_nb_connection: "{% for host in groups['ovn-nb-db'] %}tcp:{{ 'api' | kolla_address(host) | put_address_in_context('url') }}:{{ ovn_nb_db_port }}{% if not loop.last %},{% endif %}{% endfor %}"
646646
ovn_sb_connection: "{{ ovn_sb_connection_relay if enable_ovn_sb_db_relay | bool else ovn_sb_connection_no_relay }}"

ansible/roles/ovn-db/tasks/bootstrap-db.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,7 @@
8383

8484
- name: Wait for ovn-sb-db-relay
8585
vars:
86-
ovn_sb_db_relay_group_id: "{{ item }}"
87-
ovn_sb_db_relay_port: "{{ ovn_sb_db_relay_port_prefix ~ ovn_sb_db_relay_group_id }}"
86+
ovn_sb_db_relay_port: "{{ (ovn_sb_db_relay_port_prefix | int) * 10 + (item | int) }}"
8887
wait_for:
8988
host: "{{ api_interface_address }}"
9089
port: "{{ ovn_sb_db_relay_port }}"

ansible/roles/ovn-db/tasks/config-relay.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
vars:
2525
# NOTE(mnasiadka): Used in the ovn_sb_relay_command template in defaults/main.yml
2626
ovn_sb_db_relay_group_id: "{{ item }}"
27+
ovn_sb_db_relay_port: "{{ (ovn_sb_db_relay_port_prefix | int) * 10 + (item | int) }}"
2728
template:
2829
src: "ovsdb-relay.json.j2"
2930
dest: "{{ node_config_directory }}/ovn-sb-db-relay-{{ item }}/ovsdb-relay.json"

ansible/roles/ovn-db/templates/ovsdb-relay.json.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
{
33
"remotes": {
4-
"ptcp:{{ ovn_sb_db_relay_port_prefix ~ ovn_sb_db_relay_group_id }}:{{ api_interface_address | put_address_in_context('url') }}": {
4+
"ptcp:{{ ovn_sb_db_relay_port }}:{{ api_interface_address | put_address_in_context('url') }}": {
55
"inactivity-probe": {{ ovn_sb_db_relay_passive_inactivity_probe }}
66
}
77
},

ansible/roles/rabbitmq/tasks/restart_services.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,24 @@
77
name: "rabbitmq"
88
register: container_info
99

10-
- name: Put RabbitMQ node into maintenance mode
10+
- name: Put RabbitMQ node into maintenance mode if in cluster
1111
kolla_toolbox:
1212
container_engine: "{{ kolla_container_engine }}"
1313
module_name: "community.rabbitmq.rabbitmq_upgrade"
1414
module_args:
1515
action: "drain"
1616
user: root
1717
become: true
18-
when: container_info.containers | length > 0
18+
when:
19+
- container_info.containers | length > 0
20+
- groups['rabbitmq'] | length > 1
21+
22+
- name: Stop the RabbitMQ application if not in cluster
23+
become: true
24+
command: "{{ kolla_container_engine }} exec rabbitmq rabbitmqctl stop_app"
25+
when:
26+
- container_info.containers | length > 0
27+
- groups['rabbitmq'] | length == 1
1928

2029
- name: Restart rabbitmq container
2130
vars:

doc/source/reference/storage/external-ceph-guide.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,15 @@ This prevents cross-project and public object access. This can be resolved by
555555
setting ``ceph_rgw_swift_account_in_url`` to ``true``. This should match the
556556
``rgw_swift_account_in_url`` configuration option in Ceph RadosGW.
557557

558+
.. warning::
559+
560+
When using an external Ceph RadosGW for object storage endpoints
561+
(when ``enable_ceph_rgw: true``), operators are advised to set
562+
``update_keystone_service_user_passwords: false`` in``globals.yml``.
563+
Leaving this option enabled causes the service user password to be reset
564+
on every reconfigure, which invalidates existing tokens and can cause
565+
unforeseen outages for object storage consumers.
566+
558567
Load balancing
559568
==============
560569

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
fixes:
3+
- |
4+
Fixes invalid use of ``drain`` on single-node RabbitMQ setups
5+
by using ``stop_app`` instead.
6+
`LP#2111916 <https://launchpad.net/bugs/2111916>`__

tests/templates/globals-default.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ libvirt_tls: "yes"
204204
neutron_plugin_agent: "ovn"
205205
neutron_ovn_distributed_fip: "yes"
206206
neutron_enable_ovn_agent: "yes"
207-
ovn_sb_db_relay_count: "3"
207+
ovn_sb_db_relay_count: "11"
208208
enable_octavia: "yes"
209209
octavia_provider_drivers: "ovn:OVN provider"
210210
octavia_provider_agents: "ovn"

0 commit comments

Comments
 (0)