rancher: Worker node stuck in `Waiting for Node Ref` in a DO RKE2 cluster
Rancher Server Setup
- Rancher version: 2.6-head commit id:
d4089da - Installation option (Docker install/Helm Chart): docker install
Information about the Cluster
- Kubernetes version:
v1.21.9+rke2r1 - Cluster Type (Local/Downstream): DO RKE2 Node driver cluster
User Information
- What is the role of the user logged in? (Admin/Cluster Owner/Cluster Member/Project Owner/Project Member/Custom) admin
Describe the bug
Worker node stuck in Waiting for Node Ref in a DO RKE2 cluster
To Reproduce
- Deploy an RKE2 DO cluster.
- 1 node - ETCD+CP and 3 worker nodes
- One of the worker nodes is stuck in
Waiting for node refstate - On this node,
# journalctl -u rancher-system-agent
No journal files were found.
-- No entries --
Expected Result All the nodes should come up Active.
Note: I have 3 other DO clusters deployed, where this issue isnt seen.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 27 (3 by maintainers)
@mateuszdrab my one control node got broken, so I wanted to replace it, bringing me now to this completely broken state of the cluster. Recovery not working, adding nodes not working… crazy. I’m using VMs with a custom cluster, so no vSphere
@sowmyav27 There is a bug in Digital Ocean where logs are not appearing in journald for services. Restarting journald with
systemctl restart systemd-journaldshould get the logs to appear. If that doesn’t work then restarting the droplet withshutdown -r nowwill work (but will take longer).Once you have the logs, can you supply them here so we can investigate further? There is also a chance that restarting the droplet fixes the issue, but having the logs will help us determine the root cause.
@datton94 @mateuszdrab thank you for your responses! So I do have etcd backups and I have a multi-node cluster, so my hope was to start that again. How can I force a certain control node to be a boostrap node? But in general I seem to run in any for me unknown problem, that a node just doesn’t get bootstrapped… it will stay forever in the Waiting for node ref…
I’ve finally figured out what’s wrong with me ! In some tests, I tried to set up just a control-plane + etcd node , but to bootstrap a cluster, you need one of each type. I just add a dedicated worker node and everything works fine now.
But it’s clearly written in the top banner
The issue returned in my env, it’s been almost a year since I last reprovisioned the nodes since K8s version upgrades happened in-place on the VMs without requiring their reprovisioning. My nodes have 40GB disks so I doubt it’s a space issue.
Same problem with 2.6.5 with docker install. Same issue using both RKE2 and K3S cluster provisioning via Harvester. Any solutions to this yet?