Skip to content

[reef] os/bluestore: fix _extend_log seq advance - #61653

Merged
SrinivasaBharath merged 2 commits into
ceph:reeffrom
aclamk:wip-aclamk-pereman2-bluefs-expand-bug-reef
Mar 21, 2025
Merged

SrinivasaBharath merged 2 commits into
ceph:reeffrom
aclamk:wip-aclamk-pereman2-bluefs-expand-bug-reef

Conversation

@aclamk

@aclamk aclamk commented Feb 4, 2025 •

Copy link
Copy Markdown
Contributor

when extending the log, the sequence was left on a bad state because it would first create a transaction to update with the current seq number but leave the "real" transaction with the same sequence number which should be extend_log_transaction.seq + 1.

Signed-off-by: Pere Diaz Bou [email protected]
(cherry picked from commit 63f0a0d)

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

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
  • 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

@aclamk
aclamk requested a review from a team as a code owner February 4, 2025 20:23
@github-actions github-actions Bot added this to the reef milestone Feb 4, 2025
@aclamk
aclamk requested review from ifed01 and sajibreadd February 4, 2025 20:24
@aclamk aclamk added the needs-qa label Feb 4, 2025
@ifed01

ifed01 commented Feb 5, 2025

Copy link
Copy Markdown
Contributor

jenkins test make check

@ifed01

ifed01 commented Feb 5, 2025

Copy link
Copy Markdown
Contributor

@aclamk - any rationales why not backporting the full orginal PR from Pere?

@rfakit

rfakit commented Feb 5, 2025

Copy link
Copy Markdown

we have the same issue when upgrading from 16.2.13 to 17.2.8.
would youe plz tell whether they are same of not?

https://serverfault.com/questions/1172161/osds-stability-issues-post-upgrade-to-ceph-quincy-17-2-8

@ifed01

ifed01 commented Feb 5, 2025

Copy link
Copy Markdown
Contributor

we have the same issue when upgrading from 16.2.13 to 17.2.8. would youe plz tell whether they are same of not?

https://serverfault.com/questions/1172161/osds-stability-issues-post-upgrade-to-ceph-quincy-17-2-8

@rfakit - thanks for asking. Yes, your crash looks similar to the one this patch targeted against. Unfortunately I doubt Quincy will get this fix as it's at EOL. So you should either upgrade to the next Reef release or do your own custom build.

@rfakit

rfakit commented Feb 6, 2025

Copy link
Copy Markdown

we have the same issue when upgrading from 16.2.13 to 17.2.8. would youe plz tell whether they are same of not?
https://serverfault.com/questions/1172161/osds-stability-issues-post-upgrade-to-ceph-quincy-17-2-8

@rfakit - thanks for asking. Yes, your crash looks similar to the one this patch targeted against. Unfortunately I doubt Quincy will get this fix as it's at EOL. So you should either upgrade to the next Reef release or do your own custom build.

Thanks for your replying. sorry but is there a change to get me a link or document in order to create custom package of the 17.2.8 source code with cherry-pick of 26a8867?

now i need to build the code and create rpm package and install it inside the container image or what?

@ifed01

ifed01 commented Feb 7, 2025 •

Copy link
Copy Markdown
Contributor

we have the same issue when upgrading from 16.2.13 to 17.2.8. would youe plz tell whether they are same of not?
https://serverfault.com/questions/1172161/osds-stability-issues-post-upgrade-to-ceph-quincy-17-2-8

@rfakit - thanks for asking. Yes, your crash looks similar to the one this patch targeted against. Unfortunately I doubt Quincy will get this fix as it's at EOL. So you should either upgrade to the next Reef release or do your own custom build.

Thanks for your replying. sorry but is there a change to get me a link or document in order to create custom package of the 17.2.8 source code with cherry-pick of 26a8867?

That's a bit tricky procedure if you're not a developer which I believe isn't well documented.
Some basic initial steps for building ceph could be found at https://docs.ceph.com/en/reef/dev/quick_guide/

now i need to build the code and create rpm package and install it inside the container image or what?

Yes - build the required commit on top of 17.2.8, make rpms and update container image if you use containers.

@rfakit

rfakit commented Feb 7, 2025

Copy link
Copy Markdown

we have the same issue when upgrading from 16.2.13 to 17.2.8. would youe plz tell whether they are same of not?
https://serverfault.com/questions/1172161/osds-stability-issues-post-upgrade-to-ceph-quincy-17-2-8

@rfakit - thanks for asking. Yes, your crash looks similar to the one this patch targeted against. Unfortunately I doubt Quincy will get this fix as it's at EOL. So you should either upgrade to the next Reef release or do your own custom build.

Thanks for your replying. sorry but is there a change to get me a link or document in order to create custom package of the 17.2.8 source code with cherry-pick of 26a8867?

That's a bit tricky procedure if you're not a developer which I believe isn't well documented. Some basic initial steps for building ceph could be found at https://docs.ceph.com/en/reef/dev/quick_guide/

now i need to build the code and create rpm package and install it inside the container image or what?

Yes - build the required commit on top of 17.2.8, make rpms and update container image if you use containers.

Thanks, sure , i will do that. again thanks for replying.

@shraddhaag

Copy link
Copy Markdown
Contributor

Pere Diaz Bou added 2 commits March 20, 2025 15:04
Signed-off-by: Pere Diaz Bou <[email protected]>
(cherry picked from commit 8c68a50)
when extending the log, the sequence was left on a bad state because it would first create a transaction to update with the current seq number but leave the "real" transaction with the same sequence number which should be `extend_log_transaction.seq + 1`.

Signed-off-by: Pere Diaz Bou <[email protected]>
(cherry picked from commit 63f0a0d)

Fixes: https://tracker.ceph.com/issues/69764
@aclamk
aclamk force-pushed the wip-aclamk-pereman2-bluefs-expand-bug-reef branch from 26a8867 to 0210f57 Compare March 20, 2025 15:22
@github-actions github-actions Bot added the tests label Mar 20, 2025
@SrinivasaBharath

Copy link
Copy Markdown
Contributor

jenkins test make check

@SrinivasaBharath
SrinivasaBharath merged commit e893270 into ceph:reef Mar 21, 2025
@dvanders dvanders mentioned this pull request May 1, 2025
14 tasks
@idryomov idryomov modified the milestones: reef, v18.2.7 May 5, 2025
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.

6 participants