Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Synchronise 2024.1 with upstream #335

Merged
merged 3 commits into from
Oct 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions ansible/kolla-openstack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@
dell-powerconnect: netmiko_dell_powerconnect
junos: netmiko_juniper
openvswitch: netmiko_ovs_linux
nclu: netmiko_cumulus
nvue: netmiko_cumulus_nvue
ipa_image_name: "ipa"
pre_tasks:
- block:
Expand Down
24 changes: 0 additions & 24 deletions dev/functions
Original file line number Diff line number Diff line change
Expand Up @@ -494,35 +494,11 @@ function overcloud_deploy {
echo "Control plane deployment complete"
}

function migrate_rabbitmq_queues {
echo "Migrating to RabbitMQ HA queues"

environment_setup

kayobe overcloud service configuration generate --node-config-dir /etc/kolla

kayobe kolla ansible run "stop --yes-i-really-really-mean-it" -kt ironic,keystone,neutron,nova

kayobe overcloud service upgrade -kt rabbitmq --skip-prechecks

kayobe kolla ansible run rabbitmq-reset-state

kayobe kolla ansible run deploy -kt ironic,keystone,neutron,nova
}

function overcloud_upgrade {
# Upgrade a kayobe control plane.
echo "Upgrading a kayobe development environment. This consists of a "
echo "single node OpenStack control plane."

# NOTE(mattcrees): As om_enable_rabbitmq_quorum_queues now defaults to true
# from Bobcat, we need to perform a migration to durable queues during
# SLURP upgrades from Antelope to Caracal.
# TODO(mattcrees): Remove in Dalmatian.
if [[ $IS_SLURP == "True" ]]; then
migrate_rabbitmq_queues
fi

echo "Upgrading Kayobe"
upgrade_kayobe_venv

Expand Down
20 changes: 20 additions & 0 deletions playbooks/kayobe-overcloud-upgrade-base/run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,26 @@

# Upgrade Kayobe, and use it to perform an upgrade of the control plane.

- name: Ensure RabbitMQ is upgraded prior to a SLURP upgrade
shell:
cmd: dev/rabbitmq-pre-slurp-upgrade.sh &> {{ logs_dir }}/ansible/rabbitmq-pre-slurp-upgrade
chdir: "{{ previous_kayobe_src_dir }}"
executable: /bin/bash
when: is_slurp
environment:
KAYOBE_CONFIG_SOURCE_PATH: "{{ previous_kayobe_config_src_dir }}"
KAYOBE_SOURCE_PATH: "{{ previous_kayobe_src_dir }}"

- name: Ensure RabbitMQ queues are migrated
shell:
cmd: dev/rabbitmq-migrate-queues.sh ironic,keystone,neutron,nova &> {{ logs_dir }}/ansible/rabbitmq-migrate-queues
chdir: "{{ previous_kayobe_src_dir }}"
executable: /bin/bash
when: is_slurp
environment:
KAYOBE_CONFIG_SOURCE_PATH: "{{ previous_kayobe_config_src_dir }}"
KAYOBE_SOURCE_PATH: "{{ previous_kayobe_src_dir }}"

- name: Ensure overcloud is upgraded
shell:
cmd: "{{ kayobe_src_dir }}/dev/overcloud-upgrade.sh &> {{ logs_dir }}/ansible/overcloud-upgrade"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
features:
- |
Adds support for using Cumulus switches (NCLU and NVUE) with Networking
Generic Switch.
Loading