Skip to content

rgw: fix zonegroup mismatch error during user creation for new realms - #63260

Closed
VinayakTiwari1103 wants to merge 1 commit into
ceph:mainfrom
VinayakTiwari1103:FIX-Bug-#71291
Closed

VinayakTiwari1103 wants to merge 1 commit into
ceph:mainfrom
VinayakTiwari1103:FIX-Bug-#71291

Conversation

@VinayakTiwari1103

Copy link
Copy Markdown
Contributor

Fixes a regression in RGWSI_Zone::do_start() where user creation fails if the zone is not found in the current period or zonegroup metadata.This commonly occurs when creating multiple realms and trying to create
a user in a new realm before committing its period.

This patch:

  • Sets zonegroup->realm_id = realm->get_id() immediately after realm load
  • Adds fallback logic for local zonegroup config:
    • If using_local is true and the zone is missing from the zonegroup,it reads zone_info.<zone_id> from RGW metadata using sysobj_svc
    • Decodes and injects it into the zonegroup
    • Sets master_zone if not already configured
  • Avoids returning -EINVAL, allowing user creation to proceed with a warning

This improves multisite bootstrapping behavior and brings RGW back to
supporting user creation without requiring immediate period commits.

Fixes: https://tracker.ceph.com/issues/71291
Signed-off-by: Vinayak Tiwari [email protected]

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

@VinayakTiwari1103
VinayakTiwari1103 requested a review from a team as a code owner May 13, 2025 07:45
@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

@github-actions github-actions Bot added the rgw label May 13, 2025

@batrick batrick left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Non-form reply note: @github fake emails are not permitted for sign offs.

Please sign your commits. This is required for your PR to be merged.

See this article on GitHub on how to amend commits and update your pull request.

@cbodley

cbodley commented May 13, 2025

Copy link
Copy Markdown
Contributor

@VinayakTiwari1103 thank you for looking at this, but i think the solution is less code in RGWSI_Zone, not more. i opened #63266 if you'd like to help with review/testing

@cbodley

cbodley commented May 19, 2025

Copy link
Copy Markdown
Contributor

@VinayakTiwari1103 thank you for looking at this, but i think the solution is less code in RGWSI_Zone, not more. i opened #63266 if you'd like to help with review/testing

#63266 merged to resolve https://tracker.ceph.com/issues/71291

@cbodley cbodley closed this May 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants