[SOLVED] New node listed with IP instead of hostname

Claudiu Popescu

Active Member
Jul 24, 2018
15
0
41
Hi,

I am facing a problem with a production cluster.
I added a new node today and I see it listed using IP address instead of name.
Code:
# pvecm nodes

Membership information
----------------------
    Nodeid      Votes Name
         1          1 n (local)
         3          1 n1
         2          1 n2
         4          1 1.1.1.5

Due to this when I try to execute any action, like migration, on that node, I get an error with:
no such cluster node 'n4' (500)
In my case the node name should be n4 and not IP address like listed above.

Any ideas on what might be wrong?

Thank you.
 
Hi,

I guess you have mixed IP addresses and hostnames.
please send the /etc/pve/corosync.conf
 
Yes, you are right, I added this node using IP instead of hostname, I think I saw a deprecation message in the past and switched to IP.
This node has ring0_addr set to an IP and all other nodes have host name.
Any easy way of fixing this without removing the node and reinstalling it with a new host name?
 
You have to change the hostnames against the IP addresses in the /etc/pve/corosync.conf.
Then restart on all cluster members the corosync process.
This is only possible if you do not use HA.