Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid nodes leases after datastore migration #232

Closed
bsctl opened this issue Dec 20, 2022 · 0 comments · Fixed by #233
Closed

Invalid nodes leases after datastore migration #232

bsctl opened this issue Dec 20, 2022 · 0 comments · Fixed by #233
Assignees

Comments

@bsctl
Copy link
Member

bsctl commented Dec 20, 2022

After a datastore migration of a Tenant Control Plane, the leases of nodes are no more valid since the kubelet on the tenant worker nodes cannot refresh because of the freeze of the control plane.

On the tenant worker node, the kubelet says

econfig=/etc/kubernetes/kubelet.conf --config=/var/lib/kubelet/config.yaml --container-runtime=remote --container-runtime-endpoint=unix:///var/run/containerd/containerd.sock --pod-infra-container-image=regist>

ed to update lease, error: admission webhook "migrate.kamaji.clastix.io" denied the request: the current Control Plane is in freezing mode due to a maintenance mode, all the changes are blocked: removing the >
ed to update lease, error: admission webhook "migrate.kamaji.clastix.io" denied the request: the current Control Plane is in freezing mode due to a maintenance mode, all the changes are blocked: removing the >
ed to update lease using latest lease, fallback to ensure lease, err: failed 5 attempts to update lease
ed to update lease, error: admission webhook "migrate.kamaji.clastix.io" denied the request: the current Control Plane is in freezing mode due to a maintenance mode, all the changes are blocked: removing the >
ed to update lease, error: admission webhook "migrate.kamaji.clastix.io" denied the request: the current Control Plane is in freezing mode due to a maintenance mode, all the changes are blocked: removing the >
ed to update lease, error: admission webhook "migrate.kamaji.clastix.io" denied the request: the current Control Plane is in freezing mode due to a maintenance mode, all the changes are blocked: removing the >
ed to update lease, error: admission webhook "migrate.kamaji.clastix.io" denied the request: the current Control Plane is in freezing mode due to a maintenance mode, all the changes are blocked: removing the >
ed to update lease, error: admission webhook "migrate.kamaji.clastix.io" denied the request: the current Control Plane is in freezing mode due to a maintenance mode, all the changes are blocked: removing the >
ed 5 attempts to update lease, will retry after 10s
ed to update lease, error: Operation cannot be fulfilled on leases.coordination.k8s.io "tenant-00-worker-01": the object has been modified; please apply your changes to the latest version and try again

Reference:
https://kubernetes.io/docs/concepts/architecture/nodes/#heartbeats

The leases are stored in the kube-node-lease namespace

kubectl -n kube-node-lease get lease

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants