From e57570c1ddda76c4d33f6f51dfbbee8d93189f37 Mon Sep 17 00:00:00 2001 From: liwenlong Date: Thu, 22 Apr 2021 14:57:09 +0800 Subject: [PATCH] ignore local ip for ipv6 --- ceph_deploy/util/net.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ceph_deploy/util/net.py b/ceph_deploy/util/net.py index fe30efe4..60b7d675 100644 --- a/ceph_deploy/util/net.py +++ b/ceph_deploy/util/net.py @@ -38,7 +38,7 @@ def get_nonlocal_ip(host, subnet=None): return ip - if not ip.startswith('127.'): + if not ip.startswith('127.') and not ip.startswith('::1'): if subnet: LOG.warning('could not match ip (%s) for host (%s) for cluster subnet (%s)' % ( ip,