summaryrefslogtreecommitdiff
path: root/OVN upgrade.md
diff options
context:
space:
mode:
authorJasper Ras <jras@hostnet.nl>2025-04-04 14:31:53 +0200
committerJasper Ras <jras@hostnet.nl>2025-04-04 14:31:53 +0200
commitf9034731fa234a4b5efa1d2d6147fe1e798b6d36 (patch)
tree3e0ca7f2f73dbdafd666ce0d0a7b04d457394401 /OVN upgrade.md
parent3f69286ef4b15161febb4a4bae085fb4c2c83bbf (diff)
vault backup: 2025-04-04 14:31:53
Diffstat (limited to 'OVN upgrade.md')
-rw-r--r--OVN upgrade.md40
1 files changed, 40 insertions, 0 deletions
diff --git a/OVN upgrade.md b/OVN upgrade.md
new file mode 100644
index 0000000..8874ef4
--- /dev/null
+++ b/OVN upgrade.md
@@ -0,0 +1,40 @@
+---
+tags:
+ - work
+ - ovn
+ - upgrade
+---
+https://docs.ovn.org/en/latest/intro/install/ovn-upgrades.html
+
+**Fail-safe upgrade procedure**
+The ansible playbook does **NOT** encode the fail-safe procedure in such a way that it prevents us from skipping versions. It is **mandatory** that we ourselves correctly decide the version to upgrade to.
+
+**Is the issue resolved with group.one- prefixes on unit files and /etc/default?**
+https://gitlab.group.one/groupvps/ovn-builder/-/merge_requests/11/diffs
+
+It seems to have been fixed using overrides in debian/rules that move stuff to the expected places after building.
+
+*After testing it looks like this is all done correctly now*
+
+
+**Ansible playbook**
+https://gitlab.group.one/groupvps/ansible/-/merge_requests/56/diffs
+
+- Makes a backup of OVN db's on networking nodes
+ - Creates files on the local system under /tmp
+ - Creates files on the remote system under /var/.ovn-backups
+- Pins the controller version on both compute and networking nodes
+ - `ovs-vsctl set open_vswitch . external_ids:ovn-match-northd-version=true`
+- Upgrades ovn-central, ovn-common and ovn-host on network nodes
+ - Installs packages
+ - restarts ovn-controller, ovn-northd, ovn-ovsdb-server-sb/nb
+ - Checks ovsdb-server is running
+ - Checks the socket file for existence
+- Upgrades ovn controller on compute nodes
+ - Installs package
+ - restart ovn-controller
+
+**Invocation**
+```
+ansible-playbook playbooks/failsafe_install_ovn.yml --limit vps_testpod --extra-vars "ovn_search_version=22.03.8+20250403.1251.35813e0b.systems.jammy1"
+``` \ No newline at end of file