Commit Graph

261 Commits

Author SHA1 Message Date
Ramana Raja
02fc6d6acc tasks/cephfs: add function to configure guest credentials
In the test_volume_client module, refactor code to add a function
that configures credentials for a guest to mount a volume. The
function could be used by tests to setup a guest client to mount
a volume with fewer lines of code.

Signed-off-by: Ramana Raja <rraja@redhat.com>
2016-05-23 14:24:31 +05:30
John Spray
b97065a83a Merge pull request #934 from ceph/wip-15266
tasks/cephfs: add TestVolumeClient.test_purge

Reviewed-by: Ramana Raja <rraja@redhat.com>
2016-05-19 14:21:29 +01:00
John Spray
e340d2e455 Merge pull request #974 from ceph/wip-15599
tasks/cephfs: test 'df' output in volumeclient

Reviewed-by: Ramana Raja <rraja@redhat.com>
2016-05-18 14:21:16 +01:00
Gregory Farnum
145bb3d326 Merge pull request #991 from ceph/wip-15857
tasks/cephfs: fix ps usage to not truncate cmds

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2016-05-13 13:40:19 -07:00
Gregory Farnum
5e0185dbb2 tasks/cephfs: update failover test for standby changesReviewed-by: Greg Farnum <gfarnum@redhat.com>
tasks/cephfs: update failover test for standby changes

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2016-05-13 13:39:39 -07:00
John Spray
4e9635e855 tasks/cephfs: test 'df' output in volumeclient
Fixes: http://tracker.ceph.com/issues/15599
Signed-off-by: John Spray <john.spray@redhat.com>
2016-05-12 11:47:25 +01:00
John Spray
8e6a164dfb tasks/cephfs: fix ps usage to not truncate cmds
Now that daemon commandlines include "--cluster" they
easily overflow ps's default behaviour.

Fixes: http://tracker.ceph.com/issues/15857
Signed-off-by: John Spray <john.spray@redhat.com>
2016-05-12 11:23:11 +01:00
Josh Durgin
26c7dab57e tasks: fix {testdir}/data paths
The multi-cluster branch updated these to have a '$cluster.' prefix

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
2016-05-11 12:08:32 -07:00
John Spray
798c50e9bc tasks/cephfs: add TestVolumeClient.test_purge
For reproducing error handling paths during purge,
such as #15266 (ASCII exception)

Fixes: http://tracker.ceph.com/issues/15266
Signed-off-by: John Spray <john.spray@redhat.com>
2016-05-11 17:25:12 +01:00
John Spray
4ec26a9e16 Merge pull request #975 from xiaoxichen/prefix
fs/volume_client: exercise the configurable prefix and ns_prefix.

Reviewed-by: John Spray <john.spray@redhat.com>
2016-05-11 09:08:29 -05:00
John Spray
3197fe3461 Merge pull request #968 from ajarr/wip-15045
tasks/cephfs: test volume client eviction

Reviewed-by: John Spray <john.spray@redhat.com>
2016-05-11 07:23:12 -05:00
Josh Durgin
a9872182d3 tasks: update ctx.ceph.conf readers to use per-cluster conf
Just use the default cluster name for now, since these tasks aren't used
for multi-cluster tests yet.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
2016-05-09 14:55:27 -07:00
Xiaoxi Chen
42f63dc6a6 fs/volume_client: exercise the configurable prefix and ns_prefix.
Also ensure namespace_prefix and vol_prefix are set to default values
if they are not explicitly passed.

Fixes #15417

Signed-off-by: Xiaoxi Chen <xiaoxchen@ebay.com>
2016-05-09 17:13:45 +08:00
Ramana Raja
cbadb384f2 tasks/cephfs: test volume client eviction
Test whether the CephFSVolumeClient can evict a client based on its
auth ID and the volume path it has mounted.

Fixes: http://tracker.ceph.com/issues/15045

Signed-off-by: Ramana Raja <rraja@redhat.com>
2016-05-04 18:54:08 +05:30
Ramana Raja
64869a3e4d tasks/cephfs: make mount point more configurable
The mount points of the test clients were created based on the auth
ID they used. So two clients using the same auth ID could not create
different mount points in a straight forward way. Expose the
directory name of the mount point as a public attribute allowing
client mount points to be easily changed whenever needed.

Signed-off-by: Ramana Raja <rraja@redhat.com>
2016-05-04 18:54:08 +05:30
John Spray
8931fa2f92 tasks/cephfs: add TestStandbyReplay.test_standby_replay_unused
For the case where we have a daemon come up that
wants to be a standby replay, but someone else
is already following the target, so he has to
be just a regular standy instead.

Signed-off-by: John Spray <john.spray@redhat.com>
2016-04-29 20:07:16 +01:00
John Spray
d9309b57e3 tasks/cephfs: update failover test for standby changes
Previously, an MDS could be used as a replay even
if it had "standby replay = false", this is changed
now so that replays will only happen explicitly.

Signed-off-by: John Spray <john.spray@redhat.com>
2016-04-28 22:26:56 +01:00
John Spray
35cb248ce5 Merge pull request #959 from xiaoxichen/add_ns_check
tasks/cephfs: check data written to NS.

Reviewed-by: John Spray <john.spray@redhat.com>
2016-04-26 12:22:48 -05:00
Xiaoxi Chen
226a5068ed tasks/cephfs: check data written to NS.
NS is always used for security isolation.

Signed-off-by: Xiaoxi Chen <xiaoxchen@ebay.com>
2016-04-17 17:27:57 +08:00
Gregory Farnum
827bf93d80 Merge pull request #936 from ceph/wip-layout-snafu-followup
tasks/cephfs: test health messages from readonly stat
2016-04-12 07:50:02 -07:00
Gregory Farnum
7cd48dbe82 Merge pull request #933 from ceph/wip-fs-lockouts
cephfs: update tests to enable multimds when needed
2016-04-12 07:49:51 -07:00
Gregory Farnum
89b15788f9 Reproducer for 15303
Reproducer for http://tracker.ceph.com/issues/15303
2016-04-12 07:47:07 -07:00
Greg Farnum
a739533cd1 FIXUP 'cephfs: update tests to enable multimds when needed' 2016-04-11 21:46:12 -07:00
Greg Farnum
1c4e019ad4 cephfs: enable dirfrags in test_data_scan fragmentation test
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
2016-04-11 14:16:30 -07:00
Greg Farnum
5e7e017d7d cephfs: update tests to enable multimds when needed
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
2016-04-06 16:32:44 -07:00
John Spray
ac383735ae tasks/cephfs: test health messages from readonly stat
Signed-off-by: John Spray <john.spray@redhat.com>
2016-04-06 17:17:32 +01:00
John Spray
9263bef283 tasks/cephfs: update vstart_runner for cmake build changes
All binaries now go into bin/

Signed-off-by: John Spray <john.spray@redhat.com>
2016-03-29 12:13:37 +01:00
John Spray
240c0dd2f0 tasks/cephfs: reproducer for #15303 client bug
Run through two-client scenario where the first client
thinks a dir is empty even though the second client
has written some files to it.

Signed-off-by: John Spray <john.spray@redhat.com>
2016-03-29 12:13:15 +01:00
John Spray
4f33f263eb tasks/cephfs: tidy Mount.ls to return [] on empty dir
Previously returned ['']

Signed-off-by: John Spray <john.spray@redhat.com>
2016-03-29 12:13:15 +01:00
Sage Weil
826aaad0bd Merge remote-tracking branch 'gh/jewel' 2016-03-28 12:39:11 -04:00
Gregory Farnum
11963dcd3e Merge pull request #905 from ceph/wip-15065
tasks/cephfs: extend TestMultiFilesystems
2016-03-24 18:01:41 -07:00
Yan, Zheng
b977e86f5d tasks/cephfs: test for request caps during lookup/open
Signed-off-by: Yan, Zheng <zyan@redhat.com>
2016-03-24 17:47:53 -07:00
Gregory Farnum
f5a1cab663 Merge pull request #874 from ceph/jewel-15008
Jewel 15008

Reviewed-by: John Spray <john.spray@redhat.com>
2016-03-23 17:09:02 -07:00
John Spray
41b27979f1 tasks/cephfs: extend TestMultiFilesystems
...with cases for standby_for_rank and standby_for_fscid.

Fixes: #15065
Signed-off-by: John Spray <john.spray@redhat.com>
2016-03-22 12:03:13 +00:00
Sage Weil
7567c80885 Merge remote-tracking branch 'gh/jewel' 2016-03-17 09:27:07 -04:00
Gregory Farnum
7413c38bdf Merge pull request #875 from ceph/wip-15124
tasks/cephfs: support old mdsmap command during setup
2016-03-15 22:33:29 -07:00
Gregory Farnum
6254215399 Merge pull request #861 from ceph/wip-vstart-fixes
tasks/cephfs: vstart & fuse improvements
2016-03-15 12:41:07 -07:00
Gregory Farnum
5116fb07f0 Merge pull request #867 from ceph/jewel-15050
tasks/cephfs: cover fancy layout in test_strays
2016-03-15 12:27:47 -07:00
John Spray
9e202b44c8 tasks/cephfs: support old mdsmap command during setup
While Filesystem at large requires the new commands, for
use from the `ceph` task we must support old style commands,
as the ceph task is used to instantiate old clusters during
upgrade testing.

Fixes: #15124, #15049, #15106

Signed-off-by: John Spray <john.spray@redhat.com>
2016-03-15 16:52:49 +00:00
Yan, Zheng
4a65da5962 cephfs/test_client_limits.py: trim cache when mounting into subdir
Signed-off-by: Yan, Zheng <zyan@redhat.com>
2016-03-15 19:48:01 +08:00
Yan, Zheng
a54bf91de6 tasks/cephfs: cover fancy layout in test_strays
Signed-off-by: Yan, Zheng <zyan@redhat.com>
2016-03-11 20:15:56 +08:00
John Spray
9915752acd tasks/cephfs: enable multi fs flag
Cluster won't let you create more than without
setting this flag explicitly.

Signed-off-by: John Spray <john.spray@redhat.com>
2016-03-11 10:40:12 +00:00
John Spray
e1634ed2ed tasks/cephfs: debug in wait_for_daemons
Signed-off-by: John Spray <john.spray@redhat.com>
2016-03-11 10:40:11 +00:00
John Spray
e666fddf51 tasks/cephfs: switch off extra daemons in TestStrays
Signed-off-by: John Spray <john.spray@redhat.com>
2016-03-11 10:39:37 +00:00
John Spray
53f4430d03 tasks/cephfs: further thrasher fixes
Move the thrasher-specific methods out of CephManager
into MDSThrasher and plumb them into MDSCluster.

Signed-off-by: John Spray <john.spray@redhat.com
2016-03-11 10:39:37 +00:00
John Spray
9ca3721d72 tasks/cephfs: simplify recreate()
Signed-off-by: John Spray <john.spray@redhat.com>
2016-03-11 10:39:36 +00:00
John Spray
09f239f262 tasks/cephfs: update test_journal_repair for multi fs
Signed-off-by: John Spray <john.spray@redhat.com>
2016-03-11 10:36:43 +00:00
John Spray
c94d50258d tasks/cephfs: add TestStandbyReplay
In addition to the multi-fs tests, more localised
standby-replay cases.

Signed-off-by: John Spray <john.spray@redhat.com>
2016-03-11 10:36:43 +00:00
John Spray
212a507e04 tasks/cephfs: fix datascan for multiple filesystems
Signed-off-by: John Spray <john.spray@redhat.com>
2016-03-11 10:36:43 +00:00
John Spray
e2176667a0 tasks/cephfs: move the journaltool smoke test into python land
This is one of those things that had a convoluted .yaml file
because it predated the ability to write explicit procedural
python tests.

Signed-off-by: John Spray <john.spray@redhat.com>
2016-03-11 10:36:43 +00:00