Skip to content

rgw/multisite: fall back to plain endpoint when all resolved IPs are down - #71233

Merged
BBoozmen merged 2 commits into
ceph:mainfrom
BBoozmen:wip-oozmen-79722
Aug 28, 2026
Merged

BBoozmen merged 2 commits into
ceph:mainfrom
BBoozmen:wip-oozmen-79722

Conversation

@BBoozmen

Copy link
Copy Markdown
Contributor

Fixes: https://tracker.ceph.com/issues/79722

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

…down

get_endpoint() returned -EINVAL once every resolved IP of every
endpoint was marked down, so sync stalled until one of those IPs
recovered. When/If the endpoint is a DNS farm name, the farm may have
had healthy members all along, just not the ones we resolved at
startup.

Return an endpoint URL without a connect_to hint instead, letting
libcurl resolve the hostname itself.

Keep reporting the condition at the default log level, but report it
once on entering and once on leaving it.

Fixes: https://tracker.ceph.com/issues/79722
Signed-off-by: Oguzhan Ozmen <[email protected]>
@BBoozmen BBoozmen self-assigned this Aug 21, 2026
@BBoozmen
BBoozmen requested a review from a team as a code owner August 21, 2026 21:05
@BBoozmen BBoozmen changed the title Wip oozmen 79722 rgw/multisite: fall back to plain endpoint when all resolved IPs are down Aug 21, 2026
@BBoozmen BBoozmen added the wip-oozmen-testing for teuthology integration testing to be used via build-integration-branch.sh label Aug 21, 2026
@BBoozmen

Copy link
Copy Markdown
Contributor Author

Preliminary Teuthology Test Runs

Analysis od Test Results

81 total jobs: 79 PASSED, 2 FAILED. Failed ones are not related to this PR:

Multisite Suite

Both 2-zone and 2-zonegroup suites PASSED.

@BBoozmen BBoozmen added TESTED and removed wip-oozmen-testing for teuthology integration testing to be used via build-integration-branch.sh labels Aug 25, 2026
@BBoozmen

Copy link
Copy Markdown
Contributor Author

A final note....We use this feature in our squid clusters and tested there with a real DNS endpoint in a small cluster where we can easily reproduce partial discovery scenario as described in the parent tracker (https://tracker.ceph.com/issues/79722).

Test Bed: 2-zone multisite setup. Each zone having 2 rgw nodes and each node having 2 radosgw instances to serve client requests and 1 radosgw instance (rep.1) to serve replication requests from the other zone.

Test Steps and Results: stopped both master zone's replication (rep.1) instances under a continuous client write load, forcing the secondary to mark both resolved master IPs down. When ALL IPs are down, the secondary correctly fell back to a plain endpoint (one log line per connection object, no spam) instead of hard-failing with -EINVAL, and even survived a secondary restart mid-outage where DNS returned zero addresses (health-aware internal DNS). Once master came back, replication resumed and fully caught up immediately.

@BBoozmen
BBoozmen merged commit eec3ce5 into ceph:main Aug 28, 2026
10 checks passed
@github-actions

Copy link
Copy Markdown

This is an automated message by src/script/redmine-upkeep.py.

I have resolved the following tracker ticket due to the merge of this PR:

No backports are pending for the ticket. If this is incorrect, please update the tracker
ticket and reset to Pending Backport state.

Update Log: https://github.com/ceph/ceph/actions/runs/33201909461

@smanjara smanjara mentioned this pull request Aug 28, 2026
14 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants