Dear community,
while my MK8S cluster (4 nodes, Raspberry Pi, no HA) was running fine for about 2 weeks, I noticed today that there is some pods hung in termination and after further investigation I found out that one node is not even ready.
Checking the node, I found out that the specific node is running a SNAP REFRESH task: “error: snap “microk8s” has “auto-refresh” change in progress”
nap tasks --last=auto-refresh
Status Spawn Ready Summary
Done today at 15:02 CET today at 15:02 CET Ensure prerequisites for “microk8s” are available
Done today at 15:02 CET today at 15:02 CET Download snap “microk8s” (1892) from channel “1.20/stable”
Done today at 15:02 CET today at 15:02 CET Fetch and check assertions for snap “microk8s” (1892)
Done today at 15:02 CET today at 15:02 CET Mount snap “microk8s” (1892)
Done today at 15:02 CET today at 15:02 CET Run pre-refresh hook of “microk8s” snap if present
Done today at 15:02 CET today at 15:04 CET Stop snap “microk8s” services
Done today at 15:02 CET today at 15:04 CET Remove aliases for snap “microk8s”
Done today at 15:02 CET today at 15:04 CET Make current revision for snap “microk8s” unavailable
Doing today at 15:02 CET - Copy snap “microk8s” data
Do today at 15:02 CET - Setup snap “microk8s” (1892) security profiles
Do today at 15:02 CET - Make snap “microk8s” (1892) available to the system
Do today at 15:02 CET - Automatically connect eligible plugs and slots of snap “microk8s”
Do today at 15:02 CET - Set automatic aliases for snap “microk8s”
Do today at 15:02 CET - Setup snap “microk8s” aliases
Do today at 15:02 CET - Run post-refresh hook of “microk8s” snap if present
Do today at 15:02 CET - Start snap “microk8s” (1892) services
Do today at 15:02 CET - Clean up “microk8s” (1892) install
Do today at 15:02 CET - Run configure hook of “microk8s” snap if present
Do today at 15:02 CET - Run health check of “microk8s” snap
Doing today at 15:02 CET - Consider re-refresh of “microk8s”
This seems to be a not so new issue and I wonder why I could not find anything related to it here - is nobody facing this problem (anymore)?
Reference: https://forum.snapcraft.io/t/snap-refresh-breaks-microk8s-cluster/15906/3
Thx,
JF