Race condition while generating resolv-for-kubelet.conf
#782
Labels
area/robustness
Robustness, reliability, resilience related
kind/bug
Bug
platform/openstack
OpenStack platform/infrastructure
How to categorize this issue?
/area robustness
/kind bug
/platform openstack
What happened:
/etc/resolv-for-kubelet.conf
was generated without anynameserver
in it.Observing the (redacted) logs:
and when checked:
What you expected to happen:
/etc/resolv-for-kubelet.conf
to always be generated with the latest data.How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
I see that we are handling this in https://github.com/gardener/gardener-extension-provider-openstack/blob/master/pkg/webhook/controlplane/ensurer.go#L390
We are generating a shell script that reacts on being called by a one shot service on path changes.
This works nicely on a file change but fails if called multiple times while systemd is processing the spawn of that process.
Issue stems from the way systemd will handle multiple calls from the same time if received for the state we are already in.
Environment:
kubectl version
): v1.28.6The text was updated successfully, but these errors were encountered: