diff mbox series

[ovs-dev,3/4] ovn-ctl: pass database socket to ovn-*ctl init

Message ID 20211216032642.2593811-1-numans@ovn.org
State Accepted
Headers show
Series ovn-ctl: database path fixes and RAFT election timer passthrough | expand

Checks

Context Check Description
ovsrobot/apply-robot success apply and check: success
ovsrobot/github-robot-_Build_and_Test success github build: passed
ovsrobot/github-robot-_ovn-kubernetes success github build: passed

Commit Message

Numan Siddique Dec. 16, 2021, 3:26 a.m. UTC
From: Dan Williams <dcbw@redhat.com>

Otherwise they disagree on socket paths if the user overrides
the default path.

Submitted-at: https://github.com/ovn-org/ovn/pull/109
Signed-off-by: Dan Williams <dcbw@redhat.com>
---
 utilities/ovn-ctl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/utilities/ovn-ctl b/utilities/ovn-ctl
index 805966ee46..45ad197059 100755
--- a/utilities/ovn-ctl
+++ b/utilities/ovn-ctl
@@ -305,7 +305,7 @@  $cluster_remote_port
 
     # Initialize the database if it's NOT joining a cluster.
     if test -z "$cluster_remote_addr"; then
-        $(echo ovn-${db}ctl | tr _ -) --no-leader-only init
+        $(echo ovn-${db}ctl | tr _ -) --no-leader-only --db="unix:$sock" init
     fi
 
     if test $mode = cluster; then