After upgrade 1.12 to 1.14, /srv/kubernetes directory was removed.

Bug #1825288 reported by Seyeong Kim
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Kubernetes API Load Balancer
Fix Released
High
Unassigned

Bug Description

This is the customer's issue.

They upgrade cdk from 1.12 to 1.14.

After that, they found out /srv/kubernetes directory was removed.

Because nginx refer to /srv/kubernetes for cert files, service was down.

Revision history for this message
George Kraft (cynerva) wrote :

Can you tell us more about their deployment? Is kubeapi-load-balancer colocated with another unit on the same machine?

I ask because kubernetes-master and kubernetes-worker both delete /srv/kubernetes [1][2] on charm upgrade, and this seems like the most likely explanation.

[1]: https://github.com/charmed-kubernetes/charm-kubernetes-master/blob/28610d903ac798b3f9df4897b8f5d8bf9652e9fe/reactive/kubernetes_master.py#L269
[2]: https://github.com/charmed-kubernetes/charm-kubernetes-worker/blob/1006bb62681be7f7a74e90e2c3d7401afffb51c4/reactive/kubernetes_worker.py#L194

Changed in charm-kubeapi-load-balancer:
status: New → Triaged
importance: Undecided → High
Revision history for this message
Seyeong Kim (seyeongkim) wrote :

Right, I checked the customer's env

then I found out that kubernetes-master and kubeapi-load-balance unit are in the same node each.

I let them do below to regenerate it

juju config kubeapi-load-balancer extra_sans="IP_OF_LB"
juju config kubeapi-load-balancer extra_sans=""

and it was regenerated.

Is this fixable?

Revision history for this message
George Kraft (cynerva) wrote :

> Is this fixable?

Yeah. We can remove the lines from kubernetes-master and kubernetes-worker that delete /srv/kubernetes. That's old upgrade code that's no longer relevant today - it was added over 2 years ago, and predates general availability of CDK.

Revision history for this message
Tim Van Steenburgh (tvansteenburgh) wrote :
Changed in charm-kubeapi-load-balancer:
status: Triaged → Fix Committed
Revision history for this message
George Kraft (cynerva) wrote :
George Kraft (cynerva)
Changed in charm-kubeapi-load-balancer:
status: Fix Committed → Fix Released
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.