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
tools: Backport ceph-objectstore-tool changes to firefly #3866
Conversation
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de> (cherry picked from commit 8620609)
Signed-off-by: David Zafman <david.zafman@inktank.com> (cherry picked from commit 398b418)
New function get_omap_batch() Create a TYPE_OMAP section for each batch Signed-off-by: David Zafman <david.zafman@inktank.com> (cherry picked from commit 501dd3c)
…rary dout output Suppress dout output with CODE_ENVIRONMENT_UTILITY_NODOUT ceph_filestore_dump turns on dout output if --debug specified When used it can still be enable with --log-to-stderr --err-to-stderr Signed-off-by: David Zafman <david.zafman@inktank.com> (cherry picked from commit f7f9b25)
Signed-off-by: David Zafman <david.zafman@inktank.com> (cherry picked from commit 087c0f9)
Signed-off-by: David Zafman <david.zafman@inktank.com> (cherry picked from commit 44b261d)
…REPLAY and SKIP_MOUNT_OMAP) Only FileStore cares about these flags, so passed on during create() Signed-off-by: David Zafman <david.zafman@inktank.com> (cherry picked from commit 3d9fde9) Conflicts: src/os/FileStore.cc
Signed-off-by: David Zafman <david.zafman@inktank.com> (cherry picked from commit 2e9dcb2)
Signed-off-by: David Zafman <david.zafman@inktank.com> (cherry picked from commit c05f895) Changes: Adjusted for older shard_t
…binary strings Signed-off-by: David Zafman <david.zafman@inktank.com> (cherry picked from commit 3a574cc)
Signed-off-by: David Zafman <david.zafman@inktank.com> (cherry picked from commit 7520e50)
Signed-off-by: David Zafman <david.zafman@inktank.com> (cherry picked from commit d4a9daf)
…ands Signed-off-by: David Zafman <david.zafman@inktank.com> (cherry picked from commit 605caec)
Signed-off-by: David Zafman <david.zafman@inktank.com> (cherry picked from commit 844dabb)
Signed-off-by: David Zafman <david.zafman@inktank.com> (cherry picked from commit 00c6b06)
Signed-off-by: David Zafman <david.zafman@inktank.com> (cherry picked from commit 48890c7)
Signed-off-by: David Zafman <david.zafman@inktank.com> (cherry picked from commit 869dd92)
Signed-off-by: David Zafman <david.zafman@inktank.com> (cherry picked from commit 3c24d1f)
Signed-off-by: David Zafman <david.zafman@inktank.com> (cherry picked from commit 55d43c0)
Signed-off-by: David Zafman <david.zafman@inktank.com> (cherry picked from commit 95554e0)
Signed-off-by: David Zafman <david.zafman@inktank.com> (cherry picked from commit 465d777)
Signed-off-by: David Zafman <david.zafman@inktank.com> (cherry picked from commit b50c43c)
Signed-off-by: David Zafman <david.zafman@inktank.com> (cherry picked from commit 50cd57e)
Signed-off-by: David Zafman <david.zafman@inktank.com> (cherry picked from commit 0fc6bd2)
Signed-off-by: David Zafman <david.zafman@inktank.com> (cherry picked from commit 30c0f31)
Signed-off-by: David Zafman <david.zafman@inktank.com> (cherry picked from commit b4d95cc)
Rename ceph_filestore_dump.cc and ceph_filestore_dump.py Remove ceph_filestore_tool.cc Signed-off-by: David Zafman <david.zafman@inktank.com> (cherry picked from commit 7786419)
with unified ceph_objectstore_tool Move list-lost-objects and fix-lost-objects features from ceph_filestore_tool to ceph_objectstore_tool as list-lost, fix-lost Change --type to --op for info, log, export...operations Add --type for the ObjectStore type (defaults to filestore) Change --filestore-path to --data-path Update installation, Makefile.am, and .gitignore Fix and rename test case to match Add some additional invalid option checks Signed-off-by: David Zafman <david.zafman@inktank.com> (cherry picked from commit 83fbc91)
Signed-off-by: David Zafman <david.zafman@inktank.com> (cherry picked from commit f01e334)
Make all non-error non-debug output to stdout Fix a message Signed-off-by: David Zafman <david.zafman@inktank.com> (cherry picked from commit a2bd2aa)
Also, earlier check for invalid --pgid with import op Signed-off-by: David Zafman <dzafman@redhat.com> (cherry picked from commit da3be80)
…nger in pg Signed-off-by: David Zafman <dzafman@redhat.com> (cherry picked from commit 68b27e2) Conflicts: src/tools/ceph_objectstore_tool.cc
Fail import if import data doesn't include OSDMap and can't find it locally See if local map can be read for import's epoch Jump to current epoch like a split would if local map not present Fixes: #9781 Signed-off-by: David Zafman <dzafman@redhat.com> (cherry picked from commit afda6e4) Conflicts: src/tools/ceph_objectstore_tool.cc
…h object Add object_info_t to object_begin so we have at object create time This will be useful for importing from multiple erasure coded exports Signed-off-by: David Zafman <dzafman@redhat.com> (cherry picked from commit 05d916e)
SUCCESS: the output of run-make-check.sh on centos-7 for 9938595 is http://paste2.org/XBZYML9x |
rados:thrash results |
@dzafman it's in the firefly-backport integration branch now |
@dzafman a rados suite came back green ( http://tracker.ceph.com/issues/11090#teuthology-run-b0d9b862d7f1a9a98cf4b41ff7cb0eb428740633-march-2015 ). Good to merge in my opinion. Since it's a very large patch series, could you confirm that it's ready to merge in your opinion ? |
@dachary @athanatos The only issue I found in my testing using the ceph/ceph-qa-suite#361 is a race with pool deletion causing a ceph-objectstore-tool --op list-pgs to SIGSEGV. I'll file a bug report. This is ready to merge subject to code review. I think Sam should look at it, but another set of eyes would be nice. A suggested way to code review would be as follows. Examine all changes NOT in src/tools/ceph_objectstore_tool.cc. Then check-out the differences in the tool with git diff hammer wip-cot-firefly -- src/tools/ceph_objectstore_tool.cc. All the changes should be to newer features/changes like map CRC checking, removal changes, META_COLL, NO_SHARD etc... |
Backport ceph-objectstore-tool changes to firefly Reviewed-by: Loic Dachary <ldachary@redhat.com>
http://tracker.ceph.com/issues/12327
This passes unit test and the ceph-qa-suite test tasks/ceph_objectstore_tool.py.
Currently scheduled rados:thrash suite
Requires ceph/ceph-qa-suite#361 to test.