[BUG] Glusterfs peered
doesn't understand loopback IP as localhost
#62273
Labels
peered
doesn't understand loopback IP as localhost
#62273
Description
In some situations,
glusterfs.peered
fails to detect a peer as being localhost.More concretely, in some cases
salt.utils.network.host_to_ips(name)
may return an address like127.0.1.1
. This happens for instance if the host name is associated to a loopback address in/etc/hosts
.This loopback address obviously never matches the addresses returned by
salt.utils.network.ip_addrs()
orsalt.utils.network.ip_addrs6()
, hence localhost detection fails.Setup
Moreover, the minions must have glusterd installed and running.
Steps to Reproduce the behavior
Expected behavior
Peering minion1 shouldn't fail, and instead the comment should have been "Peering with localhost is not needed".
Screenshots
If applicable, add screenshots to help explain your problem.
Versions Report
salt --versions-report
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)The text was updated successfully, but these errors were encountered: