Skip to content

Commit

Permalink
fix ovn nb reconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
halfcrazy committed May 6, 2021
1 parent 9354cf9 commit cc353bb
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 @@ -1019,7 +1019,6 @@ func StartOvnNbctlDaemon(ovnNbAddr string) error {
return err
}
command := []string{
"ovn-nbctl",
fmt.Sprintf("--db=%s", ovnNbAddr),
"--pidfile",
"--detach",
Expand All @@ -1036,6 +1035,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 cc353bb

Please sign in to comment.