Project

General

Profile

Actions

Enhancement #79722

closed
OO OO

rgw/multisite: fall back to plain DNS when all endpoint IPs are marked down

Enhancement #79722: rgw/multisite: fall back to plain DNS when all endpoint IPs are marked down

Added by Oguzhan Ozmen 3 months ago. Updated 3 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Fixed In:
v21.3.0-2716-geec3ce57db
Released In:
Upkeep Timestamp:
2026-08-28T19:03:38+00:00

Description

Related tracker items:

Summary & Motivation

I wasn't sure whether to open this as a bug or enhancement; I think this one sits at the borderline.

In our squid clusters, we started using the new feature #74677. As a side note, it works great with regards to performance; we see much better replication lags now. One issue we noticed in small clusters (e.g., a multisite cluster each zone having only 2 rgw nodes), an rgw node may see in-complete set of IPs since an rgw node resolves the endpoints only at startup.

For example, when this node (say zone1-node1) was starting, the endpoint resolved into just 1 IP (say zone2-node1) because one of the 2 rgw nodes (zone2-node2) was down for maintenance at the time. Later, when zone2-node1 is taken down, zone1-node1 ends up having an unreachable IP address although zone2-node2 already came from the maintenance.

Enhancement #79692 is opened to address this very issue so that an rgw node can discover the given endpoint periodically so that it can see the joining/leaving nodes dynamically and keep an up-to-date/complete list of IPs. In this example, zone1-node1 would have discovered zone2-node2 after it came back from maintenance and later when zone2-node1 went down for maintenance, it'd still have 1 reachable IP.

Opening this one as a related and complementary one to Enhancement #79692 - rgw/multisite: periodically re-resolve zone endpoint hostnames

Details

RGWRESTConn::get_endpoint() returns -EINVAL once every tracked IP of every configured endpoint is marked down, and the caller fails the request outright.

  • Scenario 1: When individual IPs/hostnames are given -> all of them have to be unreachable.
  • Scenario 2: When a DNS endpoint is given -> all of its resolved IPs have to be unreachable. * As described above, without Enhancement #79692, "all of its resolved IPs" can be stale and/or incomplete.

Instead of failing, we can return the endpoint URL without a connect_to hint and let libcurl resolve and connect on its own.

  • In Scenario 1: if ALL single IPs/hostnames are truly not reachable, we'd keep trying instead of waiting out rgw_rest_conn_ip_fail_timeout_secs first.
  • In Scenario 2: likewise, but we give libcurl a chance to resolve and see the up-to-date list of IPs.

OO Updated by Oguzhan Ozmen 3 months ago Actions #1

  • Status changed from New to Fix Under Review
  • Pull request ID set to 71233

UB Updated by Upkeep Bot 3 months ago Actions #2

  • Status changed from Fix Under Review to Resolved
  • Merge Commit set to eec3ce57db8e630f17c1ee00d693dfd63671acd9
  • Fixed In set to v21.3.0-2716-geec3ce57db
  • Upkeep Timestamp set to 2026-08-28T19:03:38+00:00
Actions

Also available in: PDF Atom