You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* use APIPA as last resort
Signed-off-by: Jimmy Bonds <[email protected]>
* Update CHANGELOG.md
Signed-off-by: Jimmy Bonds <[email protected]>
* tidy up changelog
Signed-off-by: Jimmy Bonds <[email protected]>
* avoid empty value overwrites, preserving APIPA
Signed-off-by: Jimmy Bonds <[email protected]>
* remove duplicates
Signed-off-by: Jimmy Bonds <[email protected]>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,7 @@
32
32
*[ENHANCEMENT] Distributor: Added distributors ring status section in the admin page. #4151
33
33
*[ENHANCEMENT] Added zone-awareness support to alertmanager for use when sharding is enabled. When zone-awareness is enabled, alerts will be replicated across availability zones. #4204
34
34
*[ENHANCEMENT] Added `tenant_ids` tag to tracing spans #4147
35
+
*[ENHANCEMENT] Ring, query-frontend: Avoid using automatic private IPs (APIPA) when discovering IP address from the interface during the registration of the instance in the ring, or by query-frontend when used with query-scheduler. APIPA still used as last resort with logging indicating usage. #4032
35
36
*[BUGFIX] Purger: fix `Invalid null value in condition for column range` caused by `nil` value in range for WriteBatch query. #4128
36
37
*[BUGFIX] Ingester: fixed infrequent panic caused by a race condition between TSDB mmap-ed head chunks truncation and queries. #4176
37
38
*[BUGFIX] Alertmanager: fix Alertmanager status page if clustering via gossip is disabled or sharding is enabled. #4184
// filterIPs attempts to return the first non automatic private IP (APIPA / 169.254.x.x) if possible, only returning APIPA if available and no other valid IP is found.
49
+
funcfilterIPs(addrs []net.Addr) string {
50
+
varipAddrstring
51
+
for_, addr:=rangeaddrs {
52
+
ifv, ok:=addr.(*net.IPNet); ok {
53
+
ifip:=v.IP.To4(); ip!=nil {
54
+
ipAddr=v.IP.String()
55
+
if!strings.HasPrefix(ipAddr, `169.254.`) {
56
+
returnipAddr
36
57
}
37
58
}
38
59
}
39
60
}
40
-
41
-
return"", fmt.Errorf("No address found for %s", names)
0 commit comments