ClusterLabs / anvil

The Anvil! Intelligent Availability™ Platform, mark 3
5 stars 6 forks source link

When the hostname is changed during the OS install, the old host names need to be removed #606

Open digimer opened 3 months ago

digimer commented 3 months ago

The old host names compete with the new one, and if fence_pacemaker translates the IP to the old hostname, it fails to find the pacemaker node and exits, breaking fencing.

digimer commented 3 months ago

Note: For 3.0, put in the release notes that the old hostname needs to be removed

digimer commented 3 months ago

Possible fix; Look through the list of IPs in 'ip_addresses' connected to hosts we manage, and if those IPs are in the hosts file, delete them if the host name doesn't match the name in the hosts table. This will clear up renamed hosts on all managed machines.

digimer commented 1 week ago

This should be resolved in pr #674