Wrong IP of node in cluster

Eugeny Pupkov

New Member
Jun 28, 2012
2
0
1
Hello!

I have a cluster with 3 nodes.

node1 ###.###.##.230
node2 ###.###.##.240
node3 ###.###.##.243

Generally it works fine, but today I've tried to migrate a container and got this error:

Code:
/usr/bin/ssh -c blowfish -o 'BatchMode=yes' [EMAIL="root@192.168.19.234"]root@###.###.##.234[/EMAIL] /bin/true
Jun 28 12:13:36 ssh: connect to host ###.###.##.234 port 22: No route to host
Jun 28 12:13:36 ERROR: migration aborted (duration 00:00:03): Can't connect to destination address using public key
TASK ERROR: migration aborted

So, it means, that cluster sees node3 with wrong IP

cat /etc/pve/.members :

Code:
{"nodename": "node2",
"version": 9,
"cluster": { "name": "clustername", "version": 7, "nodes": 3, "quorate": 1 },
"nodelist": {
  "node1": { "id": 1, "online": 1, "ip": "###.###.##.230"},
  "node2": { "id": 2, "online": 1, "ip": "###.###.##.240"},
  "node3": { "id": 3, "online": 1, "ip": "###.###.##.234"}
  }
}

Wrong IP of node3

Can you tell me please, is there a possibility to change IP in cluster configuration?

Thanx!
 
Seems you messed up ssh public key auth. You should be able to log into any node without specifying a password.

Normally /root/.ssh/authorized_keys is a symbolic link to /etc/pve/priv/authorized_keys, and that file contains all public keys.
 
Thanks for the answer!

I've already ran "pvecm updatecerts --force", but it did't help =(

So, what should I do now?
 
Again, youu ned to fix the keys in /etc/pve/priv/authorized_keys (or find out what heppened to that file).
 
So, it means, that cluster sees node3 with wrong IP

cat /etc/pve/.members :

Code:
{"nodename": "node2",
"version": 9,
"cluster": { "name": "clustername", "version": 7, "nodes": 3, "quorate": 1 },
"nodelist": {
  "node1": { "id": 1, "online": 1, "ip": "###.###.##.230"},
  "node2": { "id": 2, "online": 1, "ip": "###.###.##.240"},
  "node3": { "id": 3, "online": 1, "ip": "###.###.##.234"}
  }
}

Wrong IP of node3

Can you tell me please, is there a possibility to change IP in cluster configuration?

Thanx!

You can edit the file /etc/pve/.members ??
 
thanks, I resolved.


another query
from the web admin all the machines are turned off with errors


timeout
or
faillure comunication.

Best regards
 
No, you can't edit that file. We do reverse look-up hostname in /etc/hosts to get the IP address.

So, how does one go about changing it? My .members file has the wrong IP (from a long time ago). I've looked in the Proxmox web UI, as well as in my /etc/hosts and /etc/hostname and it all looks correct. I can ping each host from other hosts in the cluster and it resolves correctly. I can also SSH from one host to another without being prompted for a password.

Thanks in advance.