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

hammer: osd: is_split crash in handle_pg_create #8805

Merged
merged 1 commit into from Aug 4, 2016

Conversation

smithfarm
Copy link
Contributor

if we have a wrong "created", OSD receiving an osd_pg_create message
could fail to project its history and crash. a bad split_bits could
mislead the monitor and osd, and hence cause problems.
* set child.info.history.epoch_created to osdmap.get_epoch() instead of
  using the parent's epoch_created
* set child.info.stats.parent_split_bits to the calculated split_bits
  instead using the parent's split_bits

Fixes: http://tracker.ceph.com/issues/15426
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 8b98556)
@smithfarm smithfarm self-assigned this Apr 28, 2016
@smithfarm smithfarm added this to the hammer milestone Apr 28, 2016
smithfarm added a commit that referenced this pull request Jun 1, 2016
Reviewed-by: Nathan Cutler <ncutler@suse.com>
smithfarm added a commit that referenced this pull request Jun 27, 2016
Reviewed-by: Nathan Cutler <ncutler@suse.com>
smithfarm added a commit that referenced this pull request Jul 18, 2016
Reviewed-by: Nathan Cutler <ncutler@suse.com>
smithfarm added a commit that referenced this pull request Jul 24, 2016
Reviewed-by: Nathan Cutler <ncutler@suse.com>
@smithfarm
Copy link
Contributor Author

@tchaikov This PR is in the latest round of hammer-backports integration tests, which passed a rados run (the only failures are a valgrind false positive that has since been fixed by ceph/teuthology#915 and http://tracker.ceph.com/issues/15139 which is an infrastructure issue with two of the tests) - for details, see: http://tracker.ceph.com/issues/15895#note-18

Do you think this PR is OK to merge?

@smithfarm
Copy link
Contributor Author

@tchaikov This PR passed a /200 rados run on Ubuntu. None of the failures were reproducible. For details see http://tracker.ceph.com/issues/15895#note-18

Do you think it's OK to merge?

@smithfarm
Copy link
Contributor Author

@tchaikov @athanatos OK to merge?

@athanatos
Copy link
Contributor

I'm ok with it if @tchaikov is.

@tchaikov
Copy link
Contributor

tchaikov commented Aug 3, 2016

@smithfarm sorry for the latency! lgtm

@smithfarm smithfarm merged commit 4a12a88 into ceph:hammer Aug 4, 2016
@smithfarm smithfarm deleted the wip-15482-hammer branch August 4, 2016 19:39
@smithfarm smithfarm changed the title hammer: is_split crash in handle_pg_create hammer: osd: is_split crash in handle_pg_create Aug 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants