No such file or directory: '/etc/cni/net.d'

Bug #1996876 reported by Peter Jose De Sousa
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Kubernetes Control Plane Charm
New
Undecided
Unassigned

Bug Description

Hello,

When adding the CNI to Kubernetes Control Plane a race condition occurs if containerd is not present;

unit-kubernetes-control-plane-0: 09:36:19 WARNING unit.kubernetes-control-plane/0.cni-relation-changed for filename in os.listdir(cni_conf_dir):
unit-kubernetes-control-plane-0: 09:36:19 WARNING unit.kubernetes-control-plane/0.cni-relation-changed FileNotFoundError: [Errno 2] No such file or directory: '/etc/cni/net.d'
unit-kubernetes-control-plane-0: 09:36:19 ERROR juju.worker.uniter.operation hook "cni-relation-changed" (via explicit, bespoke hook script) failed: exit status 1
unit-kubernetes-control-plane-0: 09:36:19 INFO juju.worker.uniter awaiting error resolution for "relation-changed" hook

To replicate this scenario, run:

juju add-model test
juju add-machine --constraints="instance-type=m1.medium"
juju deploy kubernetes-control-plane --to lxd:0
juju deploy easyrsa --to lxd:0
juju deploy kube-ovn
juju add-relation kubernetes-worker kube-ovn
juju add-relation kubernetes-control-plane kube-ovn
juju add-relation kubernetes-control-plane easyrsa
juju debug-hooks kubernetes-control-plane/0
juju debug-log -i kubernetes-control-plane/0

Thanks,
Peter

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.