Skip to content

Commit

Permalink
fix ovn nb reconnect
Browse files Browse the repository at this point in the history
(cherry picked from commit cc353bb)
  • Loading branch information
halfcrazy authored and oilbeater committed May 6, 2021
1 parent 1b35390 commit 9e06088
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/ovs/ovn-nbctl.go
Original file line number Diff line number Diff line change
Expand Up @@ -991,7 +991,6 @@ func StartOvnNbctlDaemon(ovnNbAddr string) error {
return err
}
command := []string{
"ovn-nbctl",
fmt.Sprintf("--db=%s", ovnNbAddr),
"--pidfile",
"--detach",
Expand All @@ -1008,6 +1007,7 @@ func StartOvnNbctlDaemon(ovnNbAddr string) error {
"--overwrite-pidfile",
}
}
_ = os.Unsetenv("OVN_NB_DAEMON")
output, err = exec.Command("ovn-nbctl", command...).CombinedOutput()
if err != nil {
klog.Errorf("start ovn-nbctl daemon failed, %q", output)
Expand Down

0 comments on commit 9e06088

Please sign in to comment.