Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Squid]rgw/cloud-transition: fix the crash with publish_commit #57466

Merged
merged 2 commits into from
May 30, 2024

Conversation

soumyakoduri
Copy link
Contributor

@soumyakoduri soumyakoduri commented May 14, 2024

This is backport of the mainline fix - #57356

As part of cloud transition, object's head/attrs may get updated and hence state->attrs will not be valid anymore. Fetch obj_state post the transition to access the attrs.

Fixes: https://tracker.ceph.com/issues/65999
Signed-off-by: Soumya Koduri skoduri@redhat.com

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
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox
  • jenkins test windows
  • jenkins test rook e2e

The obj_state may not be valid anymore post LC operations (esp.,
cloud-transition). Hence read and store etag prior to them to be used
later by notification (publish_commit).

Fixes: https://tracker.ceph.com/issues/65862
Signed-off-by: Soumya Koduri <skoduri@redhat.com>
(cherry picked from commit e3207e3)
LC Cloud transition should use set_atomic() to prevent any overwrite
while updating the HEAD object.

Signed-off-by: Soumya Koduri <skoduri@redhat.com>
(cherry picked from commit 5be9503)
@soumyakoduri soumyakoduri requested a review from a team as a code owner May 14, 2024 11:30
@github-actions github-actions bot added the rgw label May 14, 2024
@soumyakoduri soumyakoduri requested review from cbodley and removed request for a team May 14, 2024 11:30
@cbodley cbodley added this to the squid milestone May 14, 2024
@cbodley
Copy link
Contributor

cbodley commented May 20, 2024

passed qa in https://pulpito.ceph.com/cbodley-2024-05-14_19:08:03-rgw-wip-cbodley2-testing-distro-default-smithi/ but waiting to merge until after the squid rc is cut

@cbodley cbodley merged commit 3d89acc into ceph:squid May 30, 2024
11 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants