From aa85c1bd9cb97696933e33a37abcf671bbf38c06 Mon Sep 17 00:00:00 2001 From: Simon Deziel Date: Thu, 12 Dec 2024 13:49:08 -0500 Subject: [PATCH] bin/helpers: add workaround for https://bugs.launchpad.net/microovn/+bug/2091660 Signed-off-by: Simon Deziel --- bin/helpers | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bin/helpers b/bin/helpers index ffc1f336..b069f254 100644 --- a/bin/helpers +++ b/bin/helpers @@ -170,6 +170,14 @@ configure_ovn() { echo "" > /var/log/ovn/ovn-controller.log else microovn status || microovn cluster bootstrap + + # Workaround for https://bugs.launchpad.net/microovn/+bug/2091660 + # Allow some time for the cluster to be ready to accept connections + for _ in 1 2 3; do + _ < /dev/tcp/127.0.0.1/6641 && break + sleep 1 + done + lxc config set network.ovn.northbound_connection "ssl:127.0.0.1:6641" fi }