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

tools: Backport ceph-objectstore-tool changes to firefly #3866

Merged
97 commits merged into from Mar 16, 2015
Merged

Conversation

dzafman
Copy link
Contributor

@dzafman dzafman commented Mar 4, 2015

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.

dalgaaf and others added 30 commits March 3, 2015 09:51
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)
dzafman and others added 8 commits March 3, 2015 11:21
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)
* backported the subprocess.check_output from python2.7

Fixes: #10756

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 15350a0)

Conflicts:
	src/test/ceph_objectstore_tool.py
Fixes: #8121

Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit b9a0484)
From load_pgs() the superblock hasn't been published yet
so we need to retrieve the value of oldest_map depending on the context.

Fixes: #10427

Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit 7fb721c)

Conflicts:
	src/osd/OSD.cc
Fixed OSD::build_past_intervals_parallel() and PG::generate_past_intervals()

Fixes: #10430

Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit 0c5b66d)

Conflicts:
	src/osd/OSD.cc
@loic-bot
Copy link

loic-bot commented Mar 4, 2015

SUCCESS: the output of run-make-check.sh on centos-7 for 9938595 is http://paste2.org/XBZYML9x

:octocat: Sent from GH.

@dzafman
Copy link
Contributor Author

dzafman commented Mar 5, 2015

rados:thrash results
139 PASSED
26 fail wget failures - infrastructure
1 dead - timeout trying to copy an export file - infrastructure
1 fail - unexplained ceph-objectstore-tool SIGSEGV doing list-pgs (no core or log found)
1 running hung because /dev/sdg failed on burnupi50

@ghost ghost assigned ghost and unassigned athanatos Mar 10, 2015
@ghost ghost added core and removed needs-qa labels Mar 10, 2015
@ghost
Copy link

ghost commented Mar 10, 2015

@dzafman it's in the firefly-backport integration branch now

@ghost ghost assigned dzafman and unassigned ghost Mar 11, 2015
@ghost ghost added this to the firefly milestone Mar 11, 2015
@ghost
Copy link

ghost commented Mar 11, 2015

@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 ?

@dzafman
Copy link
Contributor Author

dzafman commented Mar 11, 2015

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

ghost pushed a commit that referenced this pull request Mar 16, 2015
Backport ceph-objectstore-tool changes to firefly

Reviewed-by: Loic Dachary <ldachary@redhat.com>
@ghost ghost merged commit e79e5f8 into firefly Mar 16, 2015
@dzafman dzafman deleted the wip-cot-firefly branch March 18, 2015 18:37
@ghost ghost changed the title Backport ceph-objectstore-tool changes to firefly tools: Backport ceph-objectstore-tool changes to firefly Jul 14, 2015
smithfarm added a commit to SUSE/ceph that referenced this pull request Sep 7, 2015
…NO_SHARD

This commit extends the changes from dedd8e2 to
src/tools/ceph_objectstore_tool.cc, which was backported to firefly
(after dedd8e2) by ceph#3866

Signed-off-by: Nathan Cutler <ncutler@suse.com>
smithfarm added a commit to SUSE/ceph that referenced this pull request Oct 8, 2015
…NO_SHARD

This commit extends the changes from dedd8e2 to
src/tools/ceph_objectstore_tool.cc, which was backported to firefly
(after dedd8e2) by ceph#3866

Signed-off-by: Nathan Cutler <ncutler@suse.com>
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
8 participants