Skip to content

Commit

Permalink
ovn-ctl: pass database socket to ovn-*ctl init
Browse files Browse the repository at this point in the history
Otherwise they disagree on socket paths if the user overrides
the default path.

Submitted-at: #109
Signed-off-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: Numan Siddique <numans@ovn.org>
  • Loading branch information
dcbw authored and numansiddique committed Dec 16, 2021
1 parent f8d45a4 commit b38c5ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utilities/ovn-ctl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b38c5ae

Please sign in to comment.