John Spray
951102df37
tasks/cephfs: rename Filesystem.reset to recreate
...
Name was ambiguous wrt "fs reset"
Signed-off-by: John Spray <john.spray@redhat.com>
2016-03-11 10:36:43 +00:00
John Spray
b02afb2a2a
tasks: fix mds_thrash for multi filesystems
...
Signed-off-by: John Spray <john.spray@redhat.com>
2016-03-11 10:36:43 +00:00
John Spray
22b350de86
tasks: generalise cephfs classes for multi-fs
...
Signed-off-by: John Spray <john.spray@redhat.com>
2016-03-11 10:36:43 +00:00
John Spray
8528cccf63
tasks: add cephfs TestMultiFilesystems
...
Signed-off-by: John Spray <john.spray@redhat.com>
2016-03-11 10:36:42 +00:00
John Spray
ec0db68b95
tasks: add TestDamage.test_damaged_dentry
...
A more detailed test for the case of damaged dentries,
because the handling involves the system passing through
a state where the containing dir has invalid stats,
and has the complete flag set even though the
dentry in question is missing.
Signed-off-by: John Spray <john.spray@redhat.com>
2016-03-03 21:56:47 +00:00
John Spray
356579be97
tasks/cephfs: update TestDamage
...
...to account for the behavioural changes with
the addition of DamageTable.
Signed-off-by: John Spray <john.spray@redhat.com>
2016-03-03 21:56:47 +00:00
John Spray
aa193b31be
tasks: move wait_for_health up into CephFSTestCase
...
...so that TestDamage can use it too.
Signed-off-by: John Spray <john.spray@redhat.com>
2016-03-03 21:56:47 +00:00
John Spray
67b711dee5
tasks/cephfs: optionally stat() in background
...
Signed-off-by: John Spray <john.spray@redhat.com>
2016-03-03 21:56:47 +00:00
John Spray
7a97fcbe42
tasks/cephfs: avoid sleep in test_client_cache_size
...
Instead of waiting 30s and then checking, use
wait_until_true to complete as soon as the
condition is met. Test runs faster this way.
Signed-off-by: John Spray <john.spray@redhat.com>
2016-03-03 21:56:47 +00:00
John Spray
41747d6f3f
tasks/cephfs: remove extraneous ;s in test_client_limits
...
These are harmless but they stand out in some editors.
Signed-off-by: John Spray <john.spray@redhat.com>
2016-03-03 21:56:47 +00:00
Yan, Zheng
21348aba27
tasks/cephfs: add test case for scrub repair
...
Signed-off-by: Yan, Zheng <zyan@redhat.com>
2016-03-03 21:56:47 +00:00
Sage Weil
bb2f575598
tasks/cephfs/filesystem: ceph_file_layout -> file_layout_t
...
Signed-off-by: Sage Weil <sage@redhat.com>
2016-03-01 09:27:59 -05:00
Gregory Farnum
73e02e8e87
Merge pull request #776 from ceph/wip-sharded-scan
...
tasks/cephfs: test sharded cephfs-data-scan
2016-02-18 06:46:13 -08:00
Gregory Farnum
64c469abf4
Merge pull request #789 from ceph/wip-14146
...
tasks/cephfs: check status asok output while in reconnect
2016-02-17 22:38:19 -08:00
Gregory Farnum
88eb2e73a8
Merge pull request #787 from ceph/wip-13903
...
Wip 13903 tests
2016-02-17 22:37:53 -08:00
Greg Farnum
3c76c57065
cephfs/test_full: add some gratuitous debugging
...
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
2016-02-15 10:52:52 -08:00
John Spray
17e310f57c
tasks/cephfs: add TestConfigCommands
...
Get some coverage on the otherwise rarely touched
injectargs and `config set` interfaces.
Fixes : #14365
Signed-off-by: John Spray <john.spray@redhat.com>
2016-02-10 12:22:06 +00:00
John Spray
86b4231a64
tasks/cephfs: run ceph-fuse in foreground
...
Previously was running this in background, which prevented
checking for nonzero exit codes.
Signed-off-by: John Spray <john.spray@redhat.com>
2016-02-10 12:22:05 +00:00
John Spray
08c28765ce
tasks/cephfs: optionally check result of fuse proc on umount
...
For cases where the client process successfully unmounts,
but then crashes before finishing.
Signed-off-by: John Spray <john.spray@redhat.com>
2016-02-10 12:22:05 +00:00
John Spray
9fd891f078
tasks/cephfs: make FuseMount.admin_socket public
...
For tests that specifically want to exercise an
asok operation (the test is responsible for
verifying that its mount object really is a
FuseMount and not a KernelMount)
Signed-off-by: John Spray <john.spray@redhat.com>
2016-02-10 12:22:05 +00:00
John Spray
9cf37080fc
tasks/cephfs: test sharded cephfs-data-scan
...
Signed-off-by: John Spray <john.spray@redhat.com>
2016-01-29 10:26:32 +00:00
Greg Farnum
afbc90b9a6
Merge remote-tracking branch 'origin/wip-full-msg' into greg-fs-testing
...
https://github.com/ceph/ceph-qa-suite/pull/786
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2016-01-18 16:06:45 -08:00
Greg Farnum
4169ca9434
Merge remote-tracking branch 'origin/wip-global-config' into greg-fs-testing
...
https://github.com/ceph/ceph-qa-suite/pull/784
Conflicts:
tasks/cephfs/vstart_runner.py
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
2016-01-18 16:06:02 -08:00
Greg Farnum
0e9b07f046
Merge remote-tracking branch 'origin/wip-14048' into greg-fs-testing
...
https://github.com/ceph/ceph-qa-suite/pull/767
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2016-01-18 15:53:47 -08:00
Greg Farnum
10d9fe1de6
Merge remote-tracking branch 'origin/wip-manila' into greg-fs-testing
...
https://github.com/ceph/ceph-qa-suite/pull/680
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2016-01-18 14:42:14 -08:00
Greg Farnum
617d8cce74
Merge remote-tracking branch 'origin/jewel-14254' into greg-fs-testing
...
https://github.com/ceph/ceph-qa-suite/pull/798
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2016-01-18 14:33:38 -08:00
Yan, Zheng
9b0e2a3ace
tasks/cephfs: test for race between cap flush and clientreplay
...
Signed-off-by: Yan, Zheng <zyan@redhat.com>
2016-01-15 13:49:19 +08:00
John Spray
500aac599d
tasks/cephfs: override max_pgs_per_osd in TestVolumeClient
...
Because volume client cues its PG counts from the
mon pg warn max per osd setting, the teuthology template's
ultra-high 10000 setting causes problems. Force it down
to the usual sensible default for this test.
Also update vstart_runner to populate ctx.daemons so that the test
can restart daemons the same way on vstart as in full blown teuthology.
For branch wip-manila
Signed-off-by: John Spray <john.spray@redhat.com>
2016-01-14 22:55:29 +00:00
John Spray
d1c3ef1fee
tasks/cephfs: pg_num check in volume_client test
...
Signed-off-by: John Spray <john.spray@redhat.com>
2016-01-14 22:55:29 +00:00
John Spray
fb2e38f2df
tasks/cephfs: fix raising from RemoteProcess.wait()
...
...in the case where we call wait() on an already-finished
process.
Signed-off-by: John Spray <john.spray@redhat.com>
2016-01-14 22:55:29 +00:00
John Spray
55a04930e3
tasks/cephfs: fix vstart's LocalDaemon.proc
...
This class is meant to quack like a DaemonState,
so it needs to expose a .proc attribute. This
was breaking TestDamageTable.
Signed-off-by: John Spray <john.spray@redhat.com>
2016-01-14 22:55:29 +00:00
John Spray
5c525219c4
tasks/cephfs: fix wait in test_volume_client
...
Signed-off-by: John Spray <john.spray@redhat.com>
2016-01-14 22:55:29 +00:00
John Spray
627c33054c
tasks/cephfs: add test_volume_client
...
Signed-off-by: John Spray <john.spray@redhat.com>
2016-01-14 22:55:29 +00:00
John Spray
523d84b5f0
tasks/cephfs: fix fuse killing in vstart
...
The "ps au" output was truncating lines which could cause
processes to get missed in some cases, like where there
is a long --client-mountpoint argument.
Signed-off-by: John Spray <john.spray@redhat.com>
2016-01-14 22:55:29 +00:00
John Spray
cb699cccfe
tasks/cephfs: write_n_mb optionally background
...
Signed-off-by: John Spray <john.spray@redhat.com>
2016-01-14 22:55:29 +00:00
John Spray
b94b35b68f
tasks/cephfs: reset IDs of mounts between tests
...
because volumeclient test twiddles the IDs to
match the auth identities it creates.
Signed-off-by: John Spray <john.spray@redhat.com>
2016-01-14 22:55:29 +00:00
John Spray
7a19b6dc0d
tasks/cephfs: clear extra auth ids on test start
...
Because new volumeclient tests will be creating IDs
instead of modifying the default ones.
Signed-off-by: John Spray <john.spray@redhat.com>
2016-01-14 22:55:29 +00:00
John Spray
addf313c24
tasks/cephfs: add test case auth_list helper
...
Signed-off-by: John Spray <john.spray@redhat.com>
2016-01-14 22:55:29 +00:00
Gregory Farnum
3b37c245b3
Merge pull request #743 from ceph/wip-root-metadata
...
tasks/cephfs: add TestSessionMap.test_session_reject
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2016-01-14 10:37:04 -08:00
John Spray
b010b6fe35
tasks: add TestSessionMap.test_[mount|tell]_conn_close
...
To check that teardown is happening correctly when
sending commands to an MDS.
Fixes : #14048
Signed-off-by: John Spray <john.spray@redhat.com>
2016-01-13 09:29:08 +00:00
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
John Spray
5c06511697
tasks/cephfs: add TestStrays.test_dir_deletion
...
test_ops_throttle was catching misbehaviour when
deleting lots of files in a directory, but
we should have a non-throttle test for that case
so that it's clearer what's gone wrong.
Signed-off-by: John Spray <john.spray@redhat.com>
2016-01-11 20:10:07 +00:00
John Spray
028a140acf
tasks/cephfs: better message from test_full_fsync
...
When it gives an error from the unexpected place,
say so.
Signed-off-by: John Spray <john.spray@redhat.com>
2016-01-11 15:15:10 +00:00
John Spray
aafa06eb9d
tasks/cephfs: generate mount paths on the fly
...
...because new tests that modify the client ID will
get confused about whether they're mounted or not, otherwise.
Signed-off-by: John Spray <john.spray@redhat.com>
2016-01-11 14:04:05 +00:00
John Spray
acff449c04
tasks/cephfs: support mount_path in Mount subclasses
...
For e.g. volumeclient guests that want to mount
a subpath.
Signed-off-by: John Spray <john.spray@redhat.com>
2016-01-11 13:26:58 +00:00
Yan, Zheng
6082cb2b71
Merge pull request #785 from ceph/wip-14257
...
tasks/cephfs: fix wait_for_state timing
2016-01-07 22:22:32 +08:00
John Spray
58c13c1a28
tasks/cephfs: fix wait_for_state timing
...
Return actual elapsed wallclock time instead of
the number of times we polled.
Fixes : #14257
Signed-off-by: John Spray <john.spray@redhat.com>
2016-01-07 11:24:57 +00:00
John Spray
00f1523170
tasks/cephfs: update vstart_runner for teuthology change
...
Previously teuthology read test path from ctx.teuthology_config,
now it reads it from the global teuthology.config.config object.
This was breaking test_journal_migration because it uses tasks/workunit,
when run with vstart_runner.
Signed-off-by: John Spray <john.spray@redhat.com>
2016-01-06 23:57:54 +00:00
Greg Farnum
eb1d4f607c
Merge remote-tracking branch 'origin/jewel-14196'
2016-01-05 23:11:32 -08:00
Greg Farnum
8488a991a9
Merge remote-tracking branch 'origin/wip-13583'
2016-01-05 22:57:51 -08:00