Skip to content

os/bluestore: fix invalid omap name conversion when upgrading to per-pg. - #43687

Merged
neha-ojha merged 3 commits into
ceph:masterfrom
ifed01:wip-ifed-fix-omap-upgrade
Nov 1, 2021
Merged

neha-ojha merged 3 commits into
ceph:masterfrom
ifed01:wip-ifed-fix-omap-upgrade

Conversation

@ifed01

@ifed01 ifed01 commented Oct 27, 2021 •

Copy link
Copy Markdown
Contributor

Fixes: https://tracker.ceph.com/issues/53062
Signed-off-by: Igor Fedotov [email protected]

Checklist

  • References tracker ticket
  • Updates documentation if necessary
  • Includes tests for new functionality or reproducer for bug

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

@sebastian-philipp

Copy link
Copy Markdown
Contributor

Great to see you found a new home!

@ifed01

ifed01 commented Oct 27, 2021

Copy link
Copy Markdown
Contributor Author

Great to see you found a new home!

Thanks! :)

@neha-ojha neha-ojha 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.

Fix looks good, tests to reproduce the issue are in progress - let's hold off on merge until then.

@ifed01

ifed01 commented Oct 27, 2021

Copy link
Copy Markdown
Contributor Author

@neha-ojha, @yuriw - so now this has got a UT case which covers the issue. It should be enough for the first trial.
As a side not this PR now relies on my already-approved but not-yet-merged PR: #42832
This allows to mkfs a store with old OMAP format which is crucial for the new UT case.

@neha-ojha

Copy link
Copy Markdown
Member

@neha-ojha, @yuriw - so now this has got a UT case which covers the issue. It should be enough for the first trial. As a side not this PR now relies on my already-approved but not-yet-merged PR: #42832 This allows to mkfs a store with old OMAP format which is crucial for the new UT case.

let's run #43687 + #42832 together through teuthology testing (rados+upgrade suites)

We can expand upgrade test coverage to reproduce https://tracker.ceph.com/issues/53062 in parallel.

@ifed01

ifed01 commented Oct 27, 2021 •

Copy link
Copy Markdown
Contributor Author

let's run #43687 + #42832 together through teuthology testing (rados+upgrade suites)

#42832 is now included in this PR, so no need to add it explicitly.

We can expand upgrade test coverage to reproduce https://tracker.ceph.com/issues/53062 in parallel.
Will take a look at this stuff tomorrow...

@ifed01
ifed01 force-pushed the wip-ifed-fix-omap-upgrade branch from 171cf09 to ffe2e9b Compare October 28, 2021 12:56
Primarily for debug purposes...

Signed-off-by: Igor Fedotov <[email protected]>
@tmolitor-stud-tu

Copy link
Copy Markdown

@ifed01 is there a way to recover my crashing osds without this pull request (e.g. vanilla 16.2.6)? See my post on the ceph-users list here: https://lists.ceph.io/hyperkitty/list/[email protected]/thread/NM7UCWXMUDWJECCFW6B2LMMKOXCXSPN3/

@ifed01

ifed01 commented Nov 1, 2021

Copy link
Copy Markdown
Contributor Author

@ifed01 is there a way to recover my crashing osds without this pull request (e.g. vanilla 16.2.6)? See my post on the ceph-users list here: https://lists.ceph.io/hyperkitty/list/[email protected]/thread/NM7UCWXMUDWJECCFW6B2LMMKOXCXSPN3/

answered in the ceph-users mailing list

@ifed01

ifed01 commented Nov 1, 2021

Copy link
Copy Markdown
Contributor Author

@ifed01 is there a way to recover my crashing osds without this pull request (e.g. vanilla 16.2.6)? See my post on the ceph-users list here: https://lists.ceph.io/hyperkitty/list/[email protected]/thread/NM7UCWXMUDWJECCFW6B2LMMKOXCXSPN3/

@tmolitor-stud-tu - forget to mentions - this specific patch doesn't recover already corrupted data - it just avoids that for new repairs...

@neha-ojha

Copy link
Copy Markdown
Member

@ifed01

ifed01 commented Nov 1, 2021

Copy link
Copy Markdown
Contributor Author

@neha-ojha

Copy link
Copy Markdown
Member

@ifed01 can you please add a note about this bug in https://github.com/ceph/ceph/blob/master/PendingReleaseNotes?

@neha-ojha - will do

@ifed01 I will go ahead and merge this PR. Please open a separate PR for the release notes, and let's backport the fix and the release notes changes in a single pacific backport PR.

@neha-ojha
neha-ojha merged commit fa74cae into ceph:master Nov 1, 2021
@ifed01
ifed01 deleted the wip-ifed-fix-omap-upgrade branch November 1, 2021 20:50
aclamk added a commit to aclamk/ceph that referenced this pull request Nov 9, 2021
Added assert to verify that omap prefixes between cloned objects are exactly the same.
If they would differ rewrite_omap_key() will possibly overwrite user key potion of data,
or move some part of prefix into user key.

This is a follow up from
ceph#43687

Signed-off-by: Adam Kupczyk <[email protected]>
aclamk added a commit to aclamk/ceph that referenced this pull request Nov 13, 2021
This is fix to regression introduced by fix to omap upgrade: ceph#43687
The problem was that we always skipped first omap entry.
This worked fine with objects having omap header key.
For objects without header key we skipped first actual omap key.

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

Signed-off-by: Adam Kupczyk <[email protected]>
aclamk added a commit to aclamk/ceph that referenced this pull request Nov 17, 2021
This is fix to regression introduced by fix to omap upgrade: ceph#43687
The problem was that we always skipped first omap entry.
This worked fine with objects having omap header key.
For objects without header key we skipped first actual omap key.

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

Signed-off-by: Adam Kupczyk <[email protected]>
ifed01 pushed a commit to ifed01/ceph that referenced this pull request Nov 19, 2021
This is fix to regression introduced by fix to omap upgrade: ceph#43687
The problem was that we always skipped first omap entry.
This worked fine with objects having omap header key.
For objects without header key we skipped first actual omap key.

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

Signed-off-by: Adam Kupczyk <[email protected]>
(cherry picked from commit 65a3f37)
neha-ojha pushed a commit to neha-ojha/ceph that referenced this pull request Nov 19, 2021
This is fix to regression introduced by fix to omap upgrade: ceph#43687
The problem was that we always skipped first omap entry.
This worked fine with objects having omap header key.
For objects without header key we skipped first actual omap key.

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

Signed-off-by: Adam Kupczyk <[email protected]>
(cherry picked from commit 65a3f37)
andriytk pushed a commit to andriytk/ceph-old that referenced this pull request Dec 10, 2021
This is fix to regression introduced by fix to omap upgrade: ceph/ceph#43687
The problem was that we always skipped first omap entry.
This worked fine with objects having omap header key.
For objects without header key we skipped first actual omap key.

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

Signed-off-by: Adam Kupczyk <[email protected]>
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.

8 participants