-
Notifications
You must be signed in to change notification settings - Fork 772
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
Debian - after ungraceful restart kube-apiserver and kubelite files are empty in /var/snap/microk8s/current/args/ #4089
Comments
Hey @naphtalidavies, thank you for reaching out. We have not come across a similar scenario, were there any operations such as a snap refresh or some addon being enabled at the time of ungraceful restart? It might be that in this scenario the write/copy operations for these files could've been interrupted, although this is just a guess. If there is a consistent way of reproducing, we can issue a bug fix for it. Other than that the usual warnings for updates/write operations Many thanks! |
Hi, This is about the time of the error. |
For the snap refresh issue I opened a forum topic in https://forum.snapcraft.io/t/no-ntp-sync-trying-auto-refresh-anyway/36093. The snappy people will get back to us. It is worth mentioning how you disabled the refreshes. What exactly commands did you use. For the empty files, I would like to know what was the reason for the ungraceful restarts? Is it possible the node run out of disk? On the |
Hi, |
Hi @naphtalidavies, could you share the full logs for the |
Hi, |
Hi, @sachinkumarsingh092 @berkayoz I deployed an OVF file with microk8s running on a VM From a check I made, the three files were emptied: It happens consistently every time the machine is powered off as soon as it is powered on- (powered on with microk8s running) inspection-report-20240125_105802.tar.gz @sachinkumarsingh092 - From the inspection, we can see that the apiserver-kicker restarted as you expected Who is the process responsible for these files? who is writing/overriding to them? |
Hi, |
I just had this happen on two different nodes on two consecutive days. As reported, both the kube-apiserver and kubelite files were empty. |
The only way I could restore the nodes was to uninstall/reinstall microk8s. |
Hi, when I copy and paste those files manually and stop-start microk8s - it works. |
I'm curious, why are these configuration files set to empty? If these files are only read when microk8s starts, why are there other processes opening these files? Maybe this is the reason why these configuration files are emptyed? |
Summary
I have a one node cluster running on Debian 11 with microk8s 1.25
After an ungraceful restart the cluster wasn't working, any command to microk8s return a connection was refused error.
In the syslog I found the following error:
debian microk8s.daemon-kubelite[2576]: Error: [--etcd-servers must be specified, service-account-issuer is a required flag, --service-account-signing-key-file and --service-account-issuer are required flags]
When looking for those settings, I saw they should be under /var/snap/microk8s/current/args/. Comparing to a clean installation, I saw that kube-apiserver and kubelite files were empty.
After replacing them with the files from the clean install and restarting microk8s, the system was up and running again.
What could have caused these files to be replaced/emptied out and how can I prevent such a situation again?
What Should Happen Instead?
After an ungraceful restart the system should be running
Reproduction Steps
Ungraceful restart
The text was updated successfully, but these errors were encountered: