forked from openstack/kolla-ansible
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #630 from stackhpc/upstream/2024.1-2024-10-10
Synchronise 2024.1 with upstream
- Loading branch information
Showing
15 changed files
with
123 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
--- | ||
- block: | ||
- name: Get current RabbitMQ version | ||
vars: | ||
service_name: "rabbitmq" | ||
service: "{{ rabbitmq_services[service_name] }}" | ||
become: true | ||
command: "{{ kolla_container_engine }} exec {{ service.container_name }} rabbitmqctl --version" | ||
register: rabbitmq_version_current | ||
changed_when: false | ||
|
||
- name: Get new RabbitMQ version | ||
become: true | ||
vars: | ||
rabbitmq_container: "{{ rabbitmq_services['rabbitmq'] }}" | ||
kolla_container: | ||
action: "start_container" | ||
command: "rabbitmqctl --version" | ||
detach: false | ||
environment: | ||
KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}" | ||
image: "{{ rabbitmq_container.image }}" | ||
name: "rabbitmq_version_check" | ||
restart_policy: oneshot | ||
volumes: "{{ rabbitmq_default_volumes + rabbitmq_extra_volumes }}" | ||
register: rabbitmq_version_new | ||
failed_when: false | ||
check_mode: false | ||
|
||
# As an example, when the new RabbitMQ version is 3.13.6: | ||
# new_major_version = 3 | ||
# new_minor_version = 13 | ||
# new_version = 3.13 | ||
# And if the current RabbitMQ version is 3.11.28: | ||
# upgrade_version = 3.12 | ||
- name: Check if running RabbitMQ is at most one version behind | ||
vars: | ||
current_version_major: "{{ rabbitmq_version_current.stdout | regex_search('^[0-9]+') }}" | ||
current_version_minor: "{{ rabbitmq_version_current.stdout | regex_search('(?<=.)[^.].') }}" | ||
current_version: "{{ rabbitmq_version_current.stdout | regex_replace('.[^.]+$', '') }}" | ||
new_version_major: "{{ rabbitmq_version_new.stdout | regex_search('^[0-9]+') }}" | ||
new_version_minor: "{{ rabbitmq_version_new.stdout | regex_search('(?<=.)[^.].') }}" | ||
new_version: "{{ rabbitmq_version_new.stdout | regex_replace('.[^.]+$', '') }}" | ||
# Note: this assumes 3.13 will be the last release before 4.0. | ||
upgrade_version: "{{ '4.0' if current_version == '3.13' else current_version_major + '.' + (current_version_minor | int + 1) | string }}" | ||
assert: | ||
that: (current_version_major == new_version_major and | ||
new_version_minor | int - current_version_minor | int <= 1) or | ||
(new_version | float == 4.0 and current_version | float == 3.13) | ||
fail_msg: > | ||
Looks like you're trying to run a skip-release upgrade! | ||
RabbitMQ must be at most one version behind the target release version ({{ rabbitmq_version_new.stdout | trim }}) to run this upgrade. | ||
You are running {{ rabbitmq_version_current.stdout }}. | ||
Please first upgrade to {{ upgrade_version }} with the command ``kolla-ansible rabbitmq-upgrade {{ upgrade_version }}``. | ||
See these docs for more details: https://docs.openstack.org/kolla-ansible/latest/reference/message-queues/rabbitmq.html#slurp | ||
delegate_to: "{{ groups[role_rabbitmq_groups] | first }}" | ||
run_once: true | ||
tags: rabbitmq-version-check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
releasenotes/notes/adds-net-raw-capability-to-ironic-dnsmasq-40f5894c5180b12d.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
fixes: | ||
- | | ||
Fixes an issue with ironic dnsmasq failing to start in deployments | ||
using podman because it requires the NET_RAW capability. See `LP#2055282 | ||
<https://bugs.launchpad.net/kolla-ansible/+bug/2055282>`__. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
fixes: | ||
- | | ||
Fixes #2080552. | ||
``openvswitch`` role will now set ``external-ids:hostname`` to | ||
``{{ ansible_facts.fqdn }}`` instead of ``{{ ansible_facts.hostname }}`` | ||
due to Neutron using FQDN based hostnames in ``requested-chassis`` field. | ||
`LP#2080552 <https://launchpad.net/bugs/2080552>`__ |
6 changes: 6 additions & 0 deletions
6
releasenotes/notes/fixes-podman-named-volume-issues-when-using-mode-36b9862321eb9e68.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
fixes: | ||
- | | ||
Fixes an issue, when using podman, with named volumes that use a mode | ||
specifier. See `LP#2054834 | ||
<https://bugs.launchpad.net/kolla-ansible/+bug/2054834>`_ for more details. |
14 changes: 14 additions & 0 deletions
14
releasenotes/notes/remove-any-errors-fatal-664fc2207074f0ef.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
upgrade: | ||
- | | ||
Support for failing execution early if fact collection fails on any of the | ||
hosts by setting ``kolla_ansible_setup_any_errors_fatal`` to ``true`` has | ||
been removed. This is due to Ansible's ``any_errors_fatal`` parameter not | ||
being templated, resulting in the value always being interpreted as | ||
``true``, even though the default value of | ||
``kolla_ansible_setup_any_errors_fatal`` is ``false``. | ||
Equivalent behaviour is possible by setting the maximum failure percentage | ||
to 0. This may be done specifically for fact gathering using | ||
``gather_facts_max_fail_percentage`` or globally using | ||
``kolla_max_fail_percentage``. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters