RKE2 Server listening on ipv6, but not ipv4 #4778
-
Environmental Info: Node(s) CPU architecture, OS, and Version: Cluster Configuration: Describe the bug: when I try to register the second node, I get: I verified that the first node is only listening on ipv6:
trying to curl the cacerts via ipv4 manually fails, but if I run Steps To Reproduce:
Expected behavior: Actual behavior: Additional context / logs: I've been using these as reference: |
Beta Was this translation helpful? Give feedback.
Replies: 12 comments 1 reply
-
Thanks for creating the issue! Could you share your config for the server? Did you set node-ip or advertise-address or any other network config? |
Beta Was this translation helpful? Give feedback.
-
Is Please confirm that you have both A and AAAA records for |
Beta Was this translation helpful? Give feedback.
-
Hey!
the rancher server url has an A record as I'm just using ipv4. dig results:
|
Beta Was this translation helpful? Give feedback.
-
Can you confirm that you can Can you confirm that you've opened that port on any firewalls between the two nodes, and disabled any local firewall (firewalld/ufw) on that server? |
Beta Was this translation helpful? Give feedback.
-
from the first node(rancher1) I can do just curling 172.ipv4.of.rancher1:9345 works, but I receive a 404 from the node I'm trying to join it fails:
all firewalls between the two nodes (local/network) are currently disabled. all traffic should be open |
Beta Was this translation helpful? Give feedback.
-
it's worth noting that I can curl https://rancher.server.url without the port from rancher2 (the node I'm trying to join) and I get a 404, so I can successfully reach the server, just not on port 9345 |
Beta Was this translation helpful? Give feedback.
-
alright. I found the issue. It turns out that even though ufw was disabled, firewalld was running. not sure why it was setup this way. I was able to get past that, but the new node(rancher2) is now stuck at:
is this usually a long process? the first node only took a minute or so, and this has been going on loop for while |
Beta Was this translation helpful? Give feedback.
-
It appears to be waiting on etcd to start. Check the etcd pod logs under /var/log/pods. Can you confirm that you've also opened all the etcd ports between the nodes? https://docs.rke2.io/install/requirements#inbound-network-rules |
Beta Was this translation helpful? Give feedback.
-
I manually added all those rules to both nodes. the etcd log shows
|
Beta Was this translation helpful? Give feedback.
-
On If that doesn't fix it, I would probably use kubectl to delete the |
Beta Was this translation helpful? Give feedback.
-
I'm moving this to a discussion instead of an issue, as it is becoming clear that there were just some missed prerequisites, and there is not anything wrong with rke2. |
Beta Was this translation helpful? Give feedback.
-
doing a kill all and rerunning fixed it! not sure what the problem was. I really appreciate your help. I was following this ipv6 red herring, and not realizing it was such a simple fix. |
Beta Was this translation helpful? Give feedback.
Can you confirm that you can
curl -vks https://172.ipv4.of.rancher1:9345
from both that server, and the node you're trying to join?Can you confirm that you've opened that port on any firewalls between the two nodes, and disabled any local firewall (firewalld/ufw) on that server?