From b08dbbd6b8fc35728fd2a8e566e7a4d5a02f371f Mon Sep 17 00:00:00 2001 From: James Page Date: Tue, 11 Jul 2023 10:08:38 +0100 Subject: [PATCH] Use IP's instead of hostnames When the OVN relay process starts early and the hostnames for the OVN central units are not fully resolvable, the relay process gets stuck in a state when it will never actually connect to the underlying OVN central units. Use IP addresses instead of hostnames to avoid this situation; this does mean the relay will restart if the IP addresses change which can and will happen during normal operation. Closes-Bug: 2026596 Change-Id: Ib2cfa13f73182a3ab9cc37fc056fb78c972269a6 --- charms/ovn-relay-k8s/src/templates/ovn-relay-wrapper.sh.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charms/ovn-relay-k8s/src/templates/ovn-relay-wrapper.sh.j2 b/charms/ovn-relay-k8s/src/templates/ovn-relay-wrapper.sh.j2 index e8ab93f8..9c08a089 100644 --- a/charms/ovn-relay-k8s/src/templates/ovn-relay-wrapper.sh.j2 +++ b/charms/ovn-relay-k8s/src/templates/ovn-relay-wrapper.sh.j2 @@ -12,7 +12,7 @@ function stop_svc() } log_msg "Starting" -REMOTES={{ ovsdb_cms.db_sb_connection_hostname_strs }} +REMOTES={{ ovsdb_cms.db_sb_connection_strs }} ovsdb-server \ -vconsole:info \