rke2 not starting after IP address Change #4400
Replies: 7 comments 6 replies
-
Servers must have static IP addresses. If you must change the address, you should delete the node from the cluster and re-add it with the new address. In the case of a single-node cluster, you can stop the rke2-server service, run |
Beta Was this translation helpful? Give feedback.
-
Hi, |
Beta Was this translation helpful? Give feedback.
-
Just what you would expect - stop the service, |
Beta Was this translation helpful? Give feedback.
-
I have the same problem, but (on my single node rke2 cluster) I haven't changed the IP address of the node. The rke2-server expects the correct IP address but gets the wrong IP for the etcd name. So the error looks like this: The node's IP has not changed, but after manually running: systemctl stop rke2-server
rke2 certificate rotate
systemctl start rke2-server Would anyone be willing to help me troubleshoot what might have happened here, ideally fix it or at least try to prevent it from happening again in the future? |
Beta Was this translation helpful? Give feedback.
-
@Bermos where's the other IP coming from? Do you have multiple interfaces configured on the node, both with default routes? If so, and you can't rely on specific ordering, you may need to add |
Beta Was this translation helpful? Give feedback.
-
I'm going to convert this to a discussion, as there's no clear bug with rke2 |
Beta Was this translation helpful? Give feedback.
-
What's the reasoning behind the requirement to have a static IP address? Can it be relaxed somehow? Our use case for RKE2 is to use it as a single-node cluster on a laptop that's naturally going to be moving between networks and thus getting DHCP addresses. What is your recommendation here? Should we cook up a script that executes It is hard for us to decide what we should do when we don't know why it works like this in the first place. Is it just because the IP is used to specify the host's name/identity? If so, couldn't we pass some configuration option to set it up statically ourselves, ignoring the IP? |
Beta Was this translation helpful? Give feedback.
-
Environmental Info:
RKE2 Version:
rke2 version v1.23.8+rke2r1 (f2f1ecd)
go version go1.17.5b7
Node(s) CPU architecture, OS, and Version:
Linux install 5.14.21-150400.22-default #1 SMP PREEMPT_DYNAMIC Wed May 11 06:57:18 UTC 2022 (49db222) x86_64 x86_64 x86_64 GNU/Linux
Cluster Configuration:
1 Server installed follwing the Quick Installation guide
Describe the bug:
When changing the IP address from dhcp to static ip of the server the rke2 server is not starting
Steps To Reproduce:
Expected behavior:
The rke2 server is starting and able to work with the new IP address
Actual behavior:
The rke server is failing to start
Additional context / logs:
Beta Was this translation helpful? Give feedback.
All reactions