Commit Graph

15 Commits

Author SHA1 Message Date
Sage Weil
a61dc2a1c1 tasks/scrub_test: use fuse path (do not assume filestore!)
Signed-off-by: Sage Weil <sage@redhat.com>
2016-09-08 10:13:28 -04:00
Samuel Just
d4efcf62d3 Revert "tasks/scrub_test: use fuse path (do not assume filestore!)"
This reverts commit 9e2b455f45.
2016-06-23 10:44:47 -07:00
Kefu Chai
dd235a5253 Merge pull request #1050 from ceph/wip-fix-scrub-test
test: Eliminate racey scrubbing in scrub_test.py

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-06-21 18:36:28 +08:00
Sage Weil
9e2b455f45 tasks/scrub_test: use fuse path (do not assume filestore!)
Signed-off-by: Sage Weil <sage@redhat.com>
2016-06-20 14:08:49 -04:00
David Zafman
29985efc7c test: Eliminate racey scrubbing in scrub_test.py
Enhance get_pgid() to return passed value if it is already a pgid

Signed-off-by: David Zafman <dzafman@redhat.com>
2016-06-15 23:31:12 -07:00
David Zafman
68400e9552 scrub_test: Shards are not marked in error when osd guesses
Signed-off-by: David Zafman <dzafman@redhat.com>
2016-05-27 16:56:17 -07:00
David Zafman
5992384700 scrub_test: Handle list-inconsistent-obj changes in pull #8983
Add checking of error in the shards

Signed-off-by: David Zafman <dzafman@redhat.com>
2016-05-18 19:37:55 -07:00
David Zafman
b25392451e scrub_test: Fix swapped assert error messages
Signed-off-by: David Zafman <dzafman@redhat.com>
2016-05-03 09:11:51 -07:00
David Zafman
4d0c668e9e scrub_test: Fixes need with wip-13507
Accept an attribute if not present as False
Change required due change to dict with "epoch" and "inconsistents"

Signed-off-by: David Zafman <dzafman@redhat.com>
2016-05-03 09:11:33 -07:00
Kefu Chai
3a6bf7d258 tasks/scrub_test: match the NOSNAP with "head"
* rados cli prints "head" at seeing CEPH_NOSNAP, so update the test
  accordingly
* print inconsistent objs before testing them

Fixes: #14924
Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-03-01 14:09:28 +08:00
Kefu Chai
9a3252c17e tasks/scrub_test: add test for get-inconsistent-* commands
Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-02-22 18:35:50 +08:00
Kefu Chai
bdf998c816 tasks/scrub_test: restore the changes to omap after the test
because the repair for digest mismatch will rewrite the omap digest
in the corresponding OI attribute with the one calculated from the
omap read from disk. this is fine. but the succeeding test can not
use the same way used before to mess up the victim object in hope
to get an inconsistent object, as we have accepted it as an authroized
copy and populate the change to its replicas. to address this
problem, the crime scene of the `test_repair_bad_omap()` is cleaned
up before calling `repair()`. it helps with isolating the different
tests, so new tests should not worry about what the current omap
should look like.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-02-22 15:57:40 +08:00
Kefu Chai
362abf7e34 tasks/scrub_test: refactor this test
prepare for the scrub API tests

Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-02-17 21:34:01 +08:00
Sage Weil
d46c3a53ab tasks/scrub_test: sudo ls ...
/var/lib/ceph/osd/* is owned by ceph now; ubuntu user can't read
it.

Fixes: #12878
Signed-off-by: Sage Weil <sage@redhat.com>
2015-09-02 22:01:58 -04:00
Zack Cerza
0e1df3cc72 Import teuthology tasks (master branch)
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-08-07 08:24:58 -06:00