From 216842cc1b8f635ab468e5357c75acbbfb4d4142 Mon Sep 17 00:00:00 2001 From: Julian Sommer <115516918+juliansommer@users.noreply.github.com> Date: Fri, 27 Mar 2026 09:41:23 +1000 Subject: [PATCH] fix: enable ovn on boot --- scripts/setup-ovn.sh | 17 +++++++++-------- scripts/setup.sh | 3 --- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/scripts/setup-ovn.sh b/scripts/setup-ovn.sh index 92b8c3ca2..006f5bb5b 100755 --- a/scripts/setup-ovn.sh +++ b/scripts/setup-ovn.sh @@ -614,15 +614,16 @@ sudo tee "$LOGROTATE_FILE" >/dev/null <<'LOGROTATE' LOGROTATE echo " logrotate config: $LOGROTATE_FILE (daily, 100M max, 3 rotations, explicit filenames)" -# --- Step 10: Disable auto-start on boot --- -# start-dev.sh / stop-dev.sh manage the OVN lifecycle. Without spinifex services -# running, ovn-controller spins in a tight reconnect loop burning CPU. +# --- Step 10: Enable auto-start on boot --- +# OVN services should start with the system in production. ovn-controller uses +# exponential backoff if the SB DB isn't ready yet, so CPU impact is negligible. +# In dev, stop-dev.sh explicitly stops OVN when not needed. echo "" -echo "Step 10: Disabling OVN auto-start on boot (start-dev.sh will manage lifecycle)..." -sudo systemctl disable openvswitch-switch 2>/dev/null || true -sudo systemctl disable ovn-controller 2>/dev/null || true -echo " openvswitch-switch: disabled on boot" -echo " ovn-controller: disabled on boot" +echo "Step 10: Enabling OVN auto-start on boot..." +sudo systemctl enable openvswitch-switch 2>/dev/null || true +sudo systemctl enable ovn-controller 2>/dev/null || true +echo " openvswitch-switch: enabled on boot" +echo " ovn-controller: enabled on boot" # --- Step 11: Health check --- echo "" diff --git a/scripts/setup.sh b/scripts/setup.sh index 3b3e9907f..e2b4be756 100755 --- a/scripts/setup.sh +++ b/scripts/setup.sh @@ -349,9 +349,6 @@ print_summary() { echo " 2. Initialize a region:" echo " sudo spx admin init --region --az --node node1 --nodes 1" echo "" - echo " 2. Setup OVN networking:" - echo " sudo /usr/local/share/spinifex/setup-ovn.sh --management" - echo "" echo " 3. Start services:" echo " sudo systemctl start spinifex.target" echo ""