Commit Graph

6 Commits

Author SHA1 Message Date
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