certificates-relation-changed fails during apply_system_monitoring_rbac_role
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Kubernetes Control Plane Charm |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
This is using 1.21 on baremetal. We've got 2 successful runs on baremetal, so if this is an issue, it's not a consistent one.
Test run here:
https:/
Artifacts/
https:/
Juju k8s model crashdump here:
https:/
Kubernetes-master/2 juju status reports: "Stopped services: kube-apiserver"
---
Juju unit logs show this:
2021-04-03 08:55:04 INFO juju-log certificates:24: Executing ['kubectl', '--kubeconfig=
2021-04-03 08:55:04 WARNING certificates-
2021-04-03 08:55:04 DEBUG jujuc server.go:211 running hook tool "juju-log" for kubernetes-
2021-04-03 08:55:04 INFO juju-log certificates:24: Traceback (most recent call last):
File "/var/lib/
kubectl(
File "lib/charms/
return check_output(
File "/usr/lib/
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib/
raise CalledProcessEr
subprocess.
That function is automatically retried and succeeds later in the log, so that error is a red herring. (Perhaps we could improve the charm code so that it doesn't bother attempting that step until after the kube config has been written?) The actual issue is that the API service seems to have been running for about 10 minutes just fine and then is SIGTERM killed seemingly out of nowhere (see below). I have not seen that before and don't know what might have caused it.
---
Apr 03 09:05:39 juju-8dd1b7-4-lxd-1 kube-apiserver. daemon[ 115586] : I0403 09:05:39.844792 115586 httplog.go:89] "HTTP" verb="GET" URI="/api/ v1/namespaces/ kube-system/ configmaps? allowWatchBookm arks=true& fieldSelector= metadata. name%3Dextensio n-apiserver- authentication& resourceVersion =965&timeout= 8m43s&timeoutSe conds=523& watch=true" latency= "10.000475255s" userAgent= "kube-controlle r-manager/ v1.21.0 (linux/amd64) kubernetes/6b526c5" srcIP=" 192.168. 33.168: 49464" resp=0 daemon[ 115586] : I0403 09:05:46.849764 115586 client.go:360] parsed scheme: "passthrough" daemon[ 115586] : I0403 09:05:46.849839 115586 passthrough.go:48] ccResolverWrapper: sending update to cc: {[{https:/ /192.168. 33.172: 2379 <nil> 0 <nil>}] <nil> <nil>} daemon[ 115586] : I0403 09:05:46.849858 115586 clientconn.go:948] ClientConn switching balancer to "pick_first" daemon[ 115586] : I0403 09:05:46.849999 115586 balancer_ conn_wrappers. go:78] pickfirstBalancer: HandleSubConnSt ateChange: 0xc011e8f090, {CONNECTING <nil>} daemon[ 115586] : I0403 09:05:46.866723 115586 balancer_ conn_wrappers. go:78] pickfirstBalancer: HandleSubConnSt ateChange: 0xc011e8f090, {READY <nil>} daemon[ 115586] : I0403 09:05:46.868046 115586 controlbuf.go:508] transport: loopyWriter.run returning. connection error: desc = "transport is closing" daemon[ 115586] : I0403 09:05:51.278603 115586 client.go:360] parsed scheme: "passthrough" daemon[ 115586] : I0403 09:05:51.278681 115586 passthrough.go:48] ccResolverWrapper: sending update to cc: {[{https:/ /192.168. 33.173: 2379 <nil> 0 <nil>}] <nil> <nil>} daemon[ 115586] : I0403 09:05:51.278700 115586 clientconn.go:948] ClientConn switching balancer to "pick_first" daemon[ 115586] : I0403 09:05:51.278826 115586 balancer_ conn_wrappers. go:78] pickfirstBalancer: HandleSubConnSt ateChange: 0xc011c924e0, {CONNECTING <nil>} daemon[ 115586] : I0403 09:05:51.296269 115586 balancer_ conn_wrappers. go:78] pickfirstBalancer: HandleSubConnSt ateChange: 0xc011c924e0, {READY <nil>} daemon[ 115586] : I0403 09:05:51.297634 115586 controlbuf.go:508] transport: loopyWriter.run returning. connection error: desc = "transport is closi...
Apr 03 09:05:46 juju-8dd1b7-4-lxd-1 kube-apiserver.
Apr 03 09:05:46 juju-8dd1b7-4-lxd-1 kube-apiserver.
Apr 03 09:05:46 juju-8dd1b7-4-lxd-1 kube-apiserver.
Apr 03 09:05:46 juju-8dd1b7-4-lxd-1 kube-apiserver.
Apr 03 09:05:46 juju-8dd1b7-4-lxd-1 kube-apiserver.
Apr 03 09:05:46 juju-8dd1b7-4-lxd-1 kube-apiserver.
Apr 03 09:05:51 juju-8dd1b7-4-lxd-1 kube-apiserver.
Apr 03 09:05:51 juju-8dd1b7-4-lxd-1 kube-apiserver.
Apr 03 09:05:51 juju-8dd1b7-4-lxd-1 kube-apiserver.
Apr 03 09:05:51 juju-8dd1b7-4-lxd-1 kube-apiserver.
Apr 03 09:05:51 juju-8dd1b7-4-lxd-1 kube-apiserver.
Apr 03 09:05:51 juju-8dd1b7-4-lxd-1 kube-apiserver.