From cce9496e37af945b224b444d7a9ba0aac94365dc Mon Sep 17 00:00:00 2001 From: Peter Hunt Date: Tue, 7 Apr 2020 15:06:00 -0400 Subject: [PATCH] mount /var/run/netns rslave in ovnkube When trying to transfer cri-o to manage its network namespaces in openshift, we have run into problems with multus. Specifically we see the error: 2020-04-07T17:46:52Z [error] delegateAdd: error invoking DelegateAdd - "ovn-k8s-cni-overlay": error in getting result from AddNetwork: CNI request failed with status 400: '[openshift-dns/dns-default-98tll] failed to configure pod interface: failed to open netns "/var/run/netns/76716600-f7fd-462f-b7df-ae054dbd144e": unknown FS magic on "/var/run/netns/76716600-f7fd-462f-b7df-ae054dbd144e": 1021994 ' through testing, I've found the netns is definitely mounted as an nsfs and not tmpfs, so I suspect we are seeing https://github.com/containernetworking/plugins/issues/69 to fix this, attempt mounting /var/run/netns as HostToContainer in ovnkube container Signed-off-by: Peter Hunt --- bindata/network/ovn-kubernetes/ovnkube-node.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/bindata/network/ovn-kubernetes/ovnkube-node.yaml b/bindata/network/ovn-kubernetes/ovnkube-node.yaml index c811271e72..e8561611dd 100644 --- a/bindata/network/ovn-kubernetes/ovnkube-node.yaml +++ b/bindata/network/ovn-kubernetes/ovnkube-node.yaml @@ -163,6 +163,7 @@ spec: - mountPath: /run/netns name: host-run-netns readOnly: true + mountPropagation: HostToContainer # for installing the CNI plugin binary - mountPath: /cni-bin-dir name: host-cni-bin