Commit Graph

14 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
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
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
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
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
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
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
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