kubernetes-control-plane stuck in "Waiting for certificates"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Kubernetes API Load Balancer |
Fix Released
|
High
|
Adam Dyess | ||
Kubernetes Control Plane Charm |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Deploying Charmed Kubernetes on top of Baremetal with focal,
and all 3 kubernetes-
in this SQA test run - https:/
Error Logs
2024-04-28 00:35:56 ERROR unit.kubernetes
2024-04-28 00:35:56 ERROR unit.kubernetes
2024-04-28 00:35:56 WARNING unit.kubernetes
2024-04-28 00:35:56 ERROR unit.kubernetes
Traceback (most recent call last):
File "/var/lib/
result = self.reconcile_
File "./src/charm.py", line 489, in reconcile
self.
File "./src/charm.py", line 593, in write_service_
key = peer_relation.
AttributeError: 'NoneType' object has no attribute 'data'
2024-04-28 00:35:56 INFO unit.kubernetes
2024-04-28 00:45:50 ERROR unit.kubernetes
ca
field required (type=value_
client.cert
field required (type=value_
client.key
field required (type=value_
Changed in charm-kubernetes-master: | |
milestone: | none → 1.30 |
status: | New → Triaged |
importance: | Undecided → High |
Changed in charm-kubeapi-load-balancer: | |
status: | Fix Committed → Fix Released |
Noticed same error on kubeapi- load-balancer in this run - https:/ /solutions. qa.canonical. com/testruns/ 3c230c34- 949f-4323- 869a-495dc4bca1 0e load-balancer stuck in 'hook failed: "leader-elected"'
the leader instance of kubeapi-
2024-04-27 08:58:07 DEBUG juju.worker. uniter. operation executor.go:135 preparing operation "run relation-joined (25; unit: vault/0) hook" for kubeapi- load-balancer/ 1 uniter. operation executor.go:135 executing operation "run relation-joined (25; unit: vault/0) hook" for kubeapi- load-balancer/ 1 relation- joined hook for vault/0 uniter. runner runner.go:719 starting jujuc server {unix @/var/lib/ juju/agents/ unit-kubeapi- load-balancer- 1/agent. socket <nil>} load-balancer/ 1.juju- log server.go:325 certificates:25: ops 2.12.0 up and running. uniter. remotestate watcher.go:803 got a relation units change for kubeapi- load-balancer/ 1 : {27 {map[kubernetes -control- plane/0: {0}] map[] []}} load-balancer/ 1.juju- log server.go:325 certificates:25: Emitting Juju event certificates_ relation_ joined. load-balancer/ 1.juju- log server.go:325 certificates:25: certificates relation data not yet valid. (3 validation errors for Data error.missing) error.missing) error.missing) load-balancer/ 1.juju- log server.go:325 certificates:25: Certificates evaluation: Waiting for certificates load-balancer/ 1.juju- log server.go:325 certificates:25: Relation certificates has yet to set 'common_name'. load-balancer/ 1.juju- log server.go:325 certificates:25: Waiting for certificate
2024-04-27 08:58:07 DEBUG juju.worker.
2024-04-27 08:58:07 DEBUG juju.worker.uniter agent.go:22 [AGENT-STATUS] executing: running certificates-
2024-04-27 08:58:07 DEBUG juju.worker.
2024-04-27 08:58:07 DEBUG unit.kubeapi-
2024-04-27 08:58:09 DEBUG juju.worker.
2024-04-27 08:58:10 DEBUG unit.kubeapi-
2024-04-27 08:58:10 ERROR unit.kubeapi-
ca
field required (type=value_
client.cert
field required (type=value_
client.key
field required (type=value_
2024-04-27 08:58:10 INFO unit.kubeapi-
2024-04-27 08:58:10 WARNING unit.kubeapi-
2024-04-27 08:58:10 INFO unit.kubeapi-