-
Notifications
You must be signed in to change notification settings - Fork 6k
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: tools: add a tool to rebuild mon store from OSD #11125
Conversation
632f407
to
6cea4ce
Compare
1cf474f
to
e09a10d
Compare
will update the x-refs of commits not merged in master yet. |
46ea5f2
to
bc4edd6
Compare
changelog
|
@tchaikov In all likelihood, 0.94.10 will be the last hammer release. If we include this new tool, and it has bugs, there won't be another release in which to fix those (admittedly hypothetical) bugs. If that's OK with you, then I'm in favor of inclusion since I'm sure the new tool is useful. |
@smithfarm, this tool has been tested on jewel and master, so it should work well. i am okay to include it in this hammer release. |
@tchaikov Can we ignore the new warning "This branch is out-of-date with the base branch" ? |
a75d6a9
to
12ae1b5
Compare
@tchaikov Thanks, updated tracker and PR description. |
…tore from OSD Reviewed-by: Nathan Cutler <ncutler@suse.com>
…tore from OSD Reviewed-by: Nathan Cutler <ncutler@suse.com>
@tchaikov This backport passed a rados suite at http://tracker.ceph.com/issues/17151#note-7 with failures that I believe have been addressed (except for http://tracker.ceph.com/issues/15139 which is caused by the build system no longer providing dumpling-era packages). I have rebuilt the integration branch to include the two fixes and scheduled a new run at http://tracker.ceph.com/issues/17151#note-14 Do you think it's OK to merge provided the second run succeeds? |
@tchaikov Also, could you provide the text of a hammer 0.94.10 release notes entry describing this new tool? |
…tore from OSD Reviewed-by: Nathan Cutler <ncutler@suse.com>
…tore from OSD Reviewed-by: Nathan Cutler <ncutler@suse.com>
Second run succeeded; third run here: http://pulpito.front.sepia.ceph.com/smithfarm-2016-11-21_11:52:41-rados-hammer-backports---basic-smithi/ |
@smithfarm sure thing! will do it tmr. |
so ceph-objectstore-tool is able to use it when rebuilding monitor db. Fixes: http://tracker.ceph.com/issues/17179 Signed-off-by: Kefu Chai <kchai@redhat.com> (cherry picked from commit 19ef4f1)
Fixes: http://tracker.ceph.com/issues/17179 Signed-off-by: Kefu Chai <kchai@redhat.com> (cherry picked from commit 24faea7) Conflicts: src/tools/Makefile-server.am: add rebuild_mondb.{cc,h}, as autotools support is dropped in master ceph_objectstore_tool.cc, rebuild_mondb.cc: remove C++11ish adapt to hammer
Fixes: http://tracker.ceph.com/issues/17179 Signed-off-by: Kefu Chai <kchai@redhat.com> (cherry picked from commit d909fa0) Conflicts: ceph_monstore_tool.cc: remove C++11ish
document the process to recover from leveldb corruption. Fixes: http://tracker.ceph.com/issues/17179 Signed-off-by: Kefu Chai <kchai@redhat.com> (cherry picked from commit 79a9f29)
In general we return negative codes for error cases, so there is no need perform the cast here. Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn> (cherry picked from commit 6a1c01d)
…ompatible In this case "r" will be >= 0 and caller will be able to catch this kind of error. Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn> (cherry picked from commit ac7c1dc)
As follow: [ 72%] Building CXX object src/tools/CMakeFiles/ceph-objectstore-tool.dir/RadosDump.cc.o /home/jenkins-build/build/workspace/ceph-pull-requests/src/tools/rebuild_mondb.cc: In function ‘int update_mon_db(ObjectStore&, OSDSuperblock&, const string&, const string&)’: /home/jenkins-build/build/workspace/ceph-pull-requests/src/tools/rebuild_mondb.cc:289:22: warning: ‘crc’ may be used uninitialized in this function [-Wmaybe-uninitialized] if (have_crc && osdmap.get_crc() != crc) { ^ /home/jenkins-build/build/workspace/ceph-pull-requests/src/tools/rebuild_mondb.cc:238:14: note: ‘crc’ was declared here uint32_t crc; Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn> (cherry picked from commit f16a314)
…e.db we should rebuild pgmap_meta table from the collected osdmaps Fixes: http://tracker.ceph.com/issues/17400 Signed-off-by: Kefu Chai <kchai@redhat.com> (cherry picked from commit cdfa7a6) Conflicts: src/tools/ceph_monstore_tool.cc: remove C++11-ism
we take it as an error if no caps is granted to an entity in the specified keyring file when rebuilding the monitor db. Signed-off-by: Kefu Chai <kchai@redhat.com> (cherry picked from commit b4bd400)
to make sure the recovered monitor store is ready for use. Signed-off-by: Kefu Chai <kchai@redhat.com> (cherry picked from commit af8e211)
Signed-off-by: Kefu Chai <kchai@redhat.com>
12ae1b5
to
10472f0
Compare
@smithfarm done, and rebased against master. |
Conflicts: we don't use C++11 in hammer. and this fix addresses the issue introduced by ceph#11125, where we are iterating in a plain array instead of a std::vector in master. so this change is not cherry-picked from master. Signed-off-by: huangjun <hjwsm1989@gmail.com>
Conflicts: we don't use C++11 in hammer. and this fix addresses the issue introduced by ceph#11125, where we are iterating in a plain array instead of a std::vector in master. so this change is not cherry-picked from master. Fixes: http://tracker.ceph.com/issues/19070 Signed-off-by: huangjun <hjwsm1989@gmail.com>
Conflicts: we don't use C++11 in hammer. and this fix addresses the issue introduced by ceph#11125, where we are iterating in a plain array instead of a std::vector in master. so this change is not cherry-picked from master. Fixes: http://tracker.ceph.com/issues/19070 Signed-off-by: huangjun <hjwsm1989@gmail.com>
http://tracker.ceph.com/issues/17291
http://tracker.ceph.com/issues/17602