From b96b837f829e96a87e05149a50f32fdcabc2f7ac Mon Sep 17 00:00:00 2001 From: Thomas Goirand Date: Fri, 15 Jan 2021 11:26:14 +0000 Subject: [PATCH] Allow binding on lo Forwarded: https://github.com/ceph/ceph/pull/38925 Last-Update: 2021-01-15 Commmit 5cf0fa8, solves the issue that the osd can't restart after seting a virtual local loopback IP. However, this commit also prevents a bgp-to-the-host over unumbered Ipv6 local-link is setup, where OSD typically are bound to the lo interface. To solve this, this single char patch simply checks against "lo:" to match only virtual interfaces instead of anything that starts with "lo". Gbp-Pq: Name allow-binding-on-lo.patch --- src/common/ipaddr.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/ipaddr.cc b/src/common/ipaddr.cc index debf4ba2b..4b4161746 100644 --- a/src/common/ipaddr.cc +++ b/src/common/ipaddr.cc @@ -56,7 +56,7 @@ const struct ifaddrs *find_ipv4_in_subnet(const struct ifaddrs *addrs, if (addrs->ifa_addr == NULL) continue; - if (strcmp(addrs->ifa_name, "lo") == 0) + if (strcmp(addrs->ifa_name, "lo:") == 0) continue; if (numa_node >= 0 && !match_numa_node(addrs->ifa_name, numa_node)) -- 2.30.2