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

mon/OSDMonitor: set FLAG_SELFMANAGED_SNAPS on cephfs snap removal #21756

Merged
merged 2 commits into from May 2, 2018

Conversation

liewegas
Copy link
Member

@liewegas liewegas commented May 1, 2018

Dump both the json and hexdump at debug level 20.

Hunting http://tracker.ceph.com/issues/23949

Signed-off-by: Sage Weil <sage@redhat.com>
@liewegas liewegas added bug-fix core cephfs Ceph File System labels May 1, 2018
@liewegas liewegas added this to the mimic milestone May 1, 2018
@batrick batrick requested a review from ukernel May 1, 2018 17:55
CephFS uses a different path to remove selfmanaged snaps than librados,
so while the librados path goes through pg_pool_t::remove_unmanaged_snap(),
we open code the snap addition to the pool's removed_snaps here.  If we
don't set FLAG_SELFMANAGED_SNAPS at that time, we will implicitly set it
during decode and get a CRC mismatch.

Fix by explicitly setting FLAG_SELFMANAGED_SNAPS flag here.

Fixes: http://tracker.ceph.com/issues/23949
Signed-off-by: Sage Weil <sage@redhat.com>
@batrick
Copy link
Member

batrick commented May 1, 2018

@tchaikov tchaikov merged commit 65a74d4 into ceph:master May 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants