flannel juju charm erroring due to FileNotFounderror
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Our K8S deployments using Juju are erroring on the install step of the flannel charm. This is using flannel charm revision 351 on bionic:
Model Controller Cloud/Region Version SLA Timestamp
mgmt-k8s juju_main cloud/RegionOne 2.5.0 unsupported 15:00:52Z
App Version Status Scale Charm Store Rev OS Notes
easyrsa 3.0.1 active 1 easyrsa jujucharms 195 ubuntu
etcd 3.2.10 active 1 etcd jujucharms 378 ubuntu
flannel error 3 flannel jujucharms 351 ubuntu
kubernetes-master 1.13.2 waiting 1 kubernetes-master jujucharms 542 ubuntu exposed
kubernetes-worker 1.13.2 waiting 2 kubernetes-worker jujucharms 398 ubuntu exposed
openstack-
Unit Workload Agent Machine Public address Ports Message
easyrsa/0* active idle 0/lxd/0 253.12.75.208 Certificate Authority connected.
etcd/0* active idle 0 172.16.20.52 2379/tcp Healthy with 1 known peer
kubernetes-
flannel/1 error idle 172.16.20.52 hook failed: "install"
kubernetes-
flannel/0* error idle 172.16.20.65 hook failed: "install"
kubernetes-worker/1 waiting idle 2 172.16.20.51 Waiting for cluster DNS.
flannel/2 error idle 172.16.20.51 hook failed: "install"
openstack-
Machine State DNS Inst id Series AZ Message
0 started 172.16.20.52 b13a1ac2-
0/lxd/0 started 253.12.75.208 juju-4fec8a-0-lxd-0 bionic nova Container started
0/lxd/1 started 253.12.68.47 juju-4fec8a-0-lxd-1 bionic nova Container started
1 started 172.16.20.65 adcfc59e-
2 started 172.16.20.51 842b0c6a-
Note all flannel units are in error.
Looking at the flannel logs, we get this:
2019-02-04 14:17:52 ERROR juju-log Hook error:
Traceback (most recent call last):
File "/var/lib/
bus.
File "/var/lib/
_invoke(
File "/var/lib/
handler.
File "/var/lib/
self.
File "/var/lib/
version = check_output(
File "/usr/lib/
**kwargs)
File "/usr/lib/
with Popen(*popenargs, **kwargs) as process:
File "/usr/lib/
restore_
File "/usr/lib/
raise child_exception
FileNotFoundError: [Errno 2] No such file or directory: 'flanneld': 'flanneld'
Oddly, if I ssh into the unit, I can find flanneld here:
root@juju-
./usr/local/
./var/lib/