Skip to content

Commit

Permalink
fix: use ovn-appctl to do recompute
Browse files Browse the repository at this point in the history
  • Loading branch information
oilbeater committed Mar 19, 2020
1 parent 51e3515 commit 2814a1d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions dist/images/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -601,6 +601,8 @@ spec:
volumeMounts:
- mountPath: /run/openvswitch
name: host-run-ovs
- mountPath: /run/ovn
name: host-run-ovn
- mountPath: /var/run/netns
name: host-ns
mountPropagation: HostToContainer
Expand Down Expand Up @@ -630,6 +632,9 @@ spec:
- name: host-run-ovs
hostPath:
path: /run/openvswitch
- name: host-run-ovn
hostPath:
path: /run/ovn
- name: cni-conf
hostPath:
path: /etc/cni/net.d
Expand Down
2 changes: 1 addition & 1 deletion pkg/daemon/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ func (c *Controller) Run(stopCh <-chan struct{}) {
}

func recompute() {
output, err := exec.Command("ovs-appctl", "-t", "ovn-controller", "recompute").CombinedOutput()
output, err := exec.Command("ovn-appctl", "-t", "ovn-controller", "recompute").CombinedOutput()
if err != nil {
klog.Errorf("failed to recompute ovn-controller %q", output)
}
Expand Down
5 changes: 5 additions & 0 deletions yamls/kube-ovn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ spec:
volumeMounts:
- mountPath: /run/openvswitch
name: host-run-ovs
- mountPath: /run/ovn
name: host-run-ovn
- mountPath: /var/run/netns
name: host-ns
mountPropagation: HostToContainer
Expand Down Expand Up @@ -172,6 +174,9 @@ spec:
- name: host-run-ovs
hostPath:
path: /run/openvswitch
- name: host-run-ovn
hostPath:
path: /run/ovn
- name: cni-conf
hostPath:
path: /etc/cni/net.d
Expand Down

0 comments on commit 2814a1d

Please sign in to comment.