-
Notifications
You must be signed in to change notification settings - Fork 21
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 #692 from stackhpc/zed-yoga-merge
zed: yoga merge
- Loading branch information
Showing
15 changed files
with
138 additions
and
22 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,69 @@ | ||
--- | ||
# Sometimes, typically after restarting OVN services, the priorities of entries | ||
# in the ha_chassis and gateway_chassis tables in the OVN northbound database | ||
# can become misaligned. This results in broken routing for external (bare | ||
# metal/SR-IOV) ports. | ||
|
||
# This playbook can be used to fix the issue by realigning the priorities of | ||
# the table entries. It does so by assigning the highest priority to the | ||
# "first" (sorted alphabetically) OVN NB DB host. This results in all gateways | ||
# being scheduled to a single host, but is less complicated than trying to | ||
# balance them (and it's also not clear to me how to map between individual | ||
# ha_chassis and gateway_chassis entries). | ||
|
||
# The playbook can be run as follows: | ||
# kayobe playbook run $KAYOBE_CONFIG_PATH/ansible/ovn-fix-chassis-priorities.yml | ||
|
||
# If the 'controllers' group does not align with the group used to deploy the | ||
# OVN NB DB, this can be overridden by passing the following: | ||
# '-e ovn_nb_db_group=some_other_group' | ||
|
||
- name: Find OVN DB DB Leader | ||
hosts: "{{ ovn_nb_db_group | default('controllers') }}" | ||
tasks: | ||
- name: Find the OVN NB DB leader | ||
command: docker exec -it ovn_nb_db ovn-nbctl get-connection | ||
changed_when: false | ||
failed_when: false | ||
register: ovn_check_result | ||
check_mode: no | ||
|
||
- name: Group hosts by leader/follower role | ||
group_by: | ||
key: "ovn_nb_{{ 'leader' if ovn_check_result.rc == 0 else 'follower' }}" | ||
changed_when: false | ||
|
||
- name: Assert one leader exists | ||
assert: | ||
that: | ||
- groups['ovn_nb_leader'] | default([]) | length == 1 | ||
|
||
- name: Fix OVN chassis priorities | ||
hosts: ovn_nb_leader | ||
vars: | ||
ovn_nb_db_group: controllers | ||
ovn_nb_db_hosts_sorted: "{{ query('inventory_hostnames', ovn_nb_db_group) | sort | list }}" | ||
ha_chassis_max_priority: 32767 | ||
gateway_chassis_max_priority: "{{ ovn_nb_db_hosts_sorted | length }}" | ||
tasks: | ||
- name: Fix ha_chassis priorities | ||
command: >- | ||
docker exec -it ovn_nb_db | ||
bash -c ' | ||
ovn-nbctl find ha_chassis chassis_name={{ item }} | | ||
awk '\''$1 == "_uuid" { print $3 }'\'' | | ||
while read uuid; do ovn-nbctl set ha_chassis $uuid priority={{ priority }}; done' | ||
loop: "{{ ovn_nb_db_hosts_sorted }}" | ||
vars: | ||
priority: "{{ ha_chassis_max_priority | int - ovn_nb_db_hosts_sorted.index(item) }}" | ||
|
||
- name: Fix gateway_chassis priorities | ||
command: >- | ||
docker exec -it ovn_nb_db | ||
bash -c ' | ||
ovn-nbctl find gateway_chassis chassis_name={{ item }} | | ||
awk '\''$1 == "_uuid" { print $3 }'\'' | | ||
while read uuid; do ovn-nbctl set gateway_chassis $uuid priority={{ priority }}; done' | ||
loop: "{{ ovn_nb_db_hosts_sorted }}" | ||
vars: | ||
priority: "{{ gateway_chassis_max_priority | int - ovn_nb_db_hosts_sorted.index(item) }}" |
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
File renamed without changes.
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
# Overcloud host image versioning tags | ||
# These images must be in SMS, since they are used by our AIO CI runners | ||
stackhpc_rocky_9_overcloud_host_image_version: "yoga-20230515T145140" | ||
stackhpc_rocky_9_overcloud_host_image_version: "yoga-20230929T133006" | ||
stackhpc_ubuntu_jammy_overcloud_host_image_version: "yoga-20230609T120720" |
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
7 changes: 7 additions & 0 deletions
7
releasenotes/notes/bump-rocky8-snapshots-2023-09-29-e115427edd3334c7.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,7 @@ | ||
--- | ||
security: | ||
- | | ||
The Rocky 8 minor version has been bumped to 8.8 and new snapshots have | ||
been created to include fixes for Zenbleed (CVE-2023-20593), Downfall | ||
(CVE-2022-40982). It is recommended that you update your OS packages and | ||
reboot into the kernel as soon as possible. |
7 changes: 7 additions & 0 deletions
7
releasenotes/notes/bump-rocky9-snapshots-2023-09-29-c736c3d37afd7e5c.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,7 @@ | ||
--- | ||
security: | ||
- | | ||
The snapshots for Rocky 9.2 have been refreshed to include fixes for | ||
Zenbleed (CVE-2023-20593), Downfall (CVE-2022-40982). It is recommended | ||
that you update your OS packages and reboot into the kernel as soon as | ||
possible. |
6 changes: 6 additions & 0 deletions
6
releasenotes/notes/reboot-default-serial-5944a2a648da71c7.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 @@ | ||
--- | ||
upgrade: | ||
- | | ||
The ``reboot.yml`` custom Ansible playbook now defaults to reboot only one | ||
host at a time. Existing behaviour can be retained by setting | ||
ANSIBLE_SERIAL=0. |