Commit Graph

9 Commits

Author SHA1 Message Date
John Spray
f566cf7713 tasks/cephfs: check status asok output while in reconnect
Mostly checking the output from the status asok is awkward
because you need to get the system stuck in a particular
state to do so.  However, we already have a test here
that sticks the system in reconnect, so here's some
very light test coverage for that asok.

Signed-off-by: John Spray <john.spray@redhat.com>
2016-01-11 23:15:37 +00:00
Greg Farnum
8488a991a9 Merge remote-tracking branch 'origin/wip-13583' 2016-01-05 22:57:51 -08:00
John Spray
0cd6cb10ac tasks/cephfs: update for run_shell vs. sudo
(TestStrays.test_snapshot_remove blocked on the sudo change)

Signed-off-by: John Spray <john.spray@redhat.com>
2015-12-02 23:30:55 +00:00
Yan, Zheng
375c53bb76 cephfs/test_client_recovery: check fsync waits for unsafe requests
make sure fsync wait for unsafe requests that created/modified the
file.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
2015-11-26 15:10:30 +08:00
John Spray
684e0deb6f tasks/cephfs: split up TestClientRecovery
...into the part that requires a network-isolated
client and the part that doesn't.

This happens to also be the part that won't work with
vstart vs. the part that will.  teuthology yaml will
still pick up and run both parts.

Signed-off-by: John Spray <john.spray@redhat.com>
2015-10-02 17:41:16 +01:00
John Spray
ffe79e9f31 tasks/cephfs: timeout on wait in test_network_death
So that we can get a failure instead of a hang in

Signed-off-by: John Spray <john.spray@redhat.com>
2015-08-28 13:57:23 +01:00
John Spray
6d3b5c6b5e tasks/cephfs: add TestClientRecovery.test_fsync
To test that metadata written recently is
preserved across a client+server crash when
barriered with a directory fsync.

Signed-off-by: John Spray <john.spray@redhat.com>
2015-05-29 14:33:01 +01:00
Greg Farnum
f780f1894b cephfs/test_client_recovery: check FUSE version before invoking flock
flock only works properly on FUSE versions >=2.9, which is newer
than eg Ubuntu Precise. So check the version on our client mounts and
only test flock if it's at least that new.

Fixes: #9995

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
2015-05-12 14:43:19 -07:00
John Spray
2b5137bf06 tasks: generalise cephfs test runner
...to avoid having boilerplate in each test module,
and gain the ability to run them all in one go
with a nice test-by-test pass/fail report.

Signed-off-by: John Spray <john.spray@redhat.com>
2015-04-14 14:13:39 +01:00