Commit Graph

291 Commits

Author SHA1 Message Date
Gregory Farnum
c2efbd39c1 Merge pull request #1112 from jcsp/wip-16909
tasks/cephfs: test standby replay teardown on rank stop

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2016-08-31 14:03:24 -07:00
John Spray
f23e15c9fa tasks/cephfs: test standby replay teardown on rank stop
Fixes: http://tracker.ceph.com/issues/16909
Signed-off-by: John Spray <john.spray@redhat.com>
2016-08-09 14:29:13 +01:00
Douglas Fuller
e01ff2e3c1 cephfs/vstart_runner: add -ww option to ps
vstart_runner can't find arguments to ceph daemons to identify them with
ps -x because commands are cut off at terminal width. Add -ww for wide
output.

Signed-off-by: Douglas Fuller <dfuller@redhat.com>
2016-08-09 06:19:14 -07:00
John Spray
05a6c839e0 tasks/cephfs: check cache size health warning
Fortunately we already have a test that creates the condition,
so just tweak it to exceed the 150% threshold for the health warning,
and check that the health message appears.

Signed-off-by: John Spray <john.spray@redhat.com>
2016-07-29 12:42:30 +01:00
Josh Durgin
cee7a24183 cephfs/filesystem: remove unused var
flake8 passes now

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
2016-07-28 14:45:25 -07:00
Douglas Fuller
c669f1ecd5 cephfs: add test for dump tree admin socket command
Add test_dump_tree to validate the MDS admin socket command
dump tree. Add a parameter for path_to_ino to enable the use of
lstat() instead of stat()

See: http://tracker.ceph.com/issues/11171
See: https://github.com/ceph/ceph/pull/9925
Signed-off-by: Douglas Fuller <dfuller@redhat.com>
2016-07-28 11:35:56 +01:00
Vishal Kanaujia
ce99bcac2c cephfs: Added a inotable repair case to the test 2016-07-28 11:31:55 +01:00
Ramana Raja
08e3a49fa5 tasks/cephfs/test_volume_client: test authentication metadata
Test the usecases for the authentication metadata stored
by the volume client:

* Obtain the list of auth IDs having access to a volume.

* Restrict volume access to auth IDs of a single (OpenStack)
  tenant to enforce strong tenant isolation of volumes.

Signed-off-by: Ramana Raja <rraja@redhat.com>
2016-07-13 16:56:26 +05:30
Ramana Raja
335872355d vstart_runner: fix misleading log message
Message is logged as, filesystem is mounted,
despite the vstart_runner just trying to mount
at this stage.

Signed-off-by: Ramana Raja <rraja@redhat.com>
2016-06-30 23:44:55 +01:00
Ramana Raja
6d074bdb4c tasks/cephfs: rename 'long_running' decorator
Rename 'long_running' decorator as 'for_teuthology',
which is more intuitive.

Signed-off-by: Ramana Raja <rraja@redhat.com>
2016-06-30 23:44:54 +01:00
John Spray
5553e9c943 tasks/cephfs: use "blacklist clear"
... instead of iterating over all blacklist entries.  Fall
back to the old way if the new way doesn't work (i.e. on
old ceph)

Signed-off-by: John Spray <john.spray@redhat.com>
2016-06-30 23:44:20 +01:00
John Spray
adfb757c89 tasks/cephfs: fix race while mounting
This could fail if the mount hadn't finished
coming up.

Signed-off-by: John Spray <john.spray@redhat.com>
2016-06-30 23:44:20 +01:00
John Spray
bb517c6415 tasks/cephfs: fix vstart_runner with cmake
This needed updating for the CLI living in bin/ now

Signed-off-by: John Spray <john.spray@redhat.com>
2016-06-30 23:44:19 +01:00
John Spray
9d3eee3461 tasks/cephfs: disable setuid test in vstart environ
``long_running`` needs a better name, it's really just a
marker that says a test is for use in teuthology but not vstart.

Signed-off-by: John Spray <john.spray@redhat.com>
2016-06-30 23:44:19 +01:00
Patrick Donnelly
dc165e632a
cephfs: test fragment size limit
The fragment configuration uses 10000 for the fragment max size. The reason for
this is that many tests add 1000 files to a single directory which will hit
this limit without fragmentation catching up.

The test_dirfrag_limit test confirms:

o That the directory fragment size cannot exceed mds_bal_fragment_size_max (using a limit of 50 in all configurations).
o That fragmentation (forced) will allow more entries to be created.
o That unlink fails when the stray directory fragment becomes too large and that unlinking may continue once those strays are purged.

Tests: https://github.com/ceph/ceph/pull/9789
Issue: http://tracker.ceph.com/issues/16164

Signed-off-by: Patrick Donnelly <batrick@batbytes.com>
2016-06-29 11:20:26 -04:00
John Spray
cad11a9612 Merge pull request #1036 from david-z/master
Adjust wait_for_health to be more flexible

Reviewed-by: John Spray <john.spray@redhat.com>
2016-06-15 23:41:11 +01:00
Gregory Farnum
c30de00707 Merge pull request #1046 from batrick/wip-readahead
cephfs: test readahead is working

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2016-06-12 14:39:21 -07:00
John Spray
e866c29014 Merge pull request #924 from ceph/wip-mountbyfsname
tasks/cephfs: update tests for mount-by-fs-name

Reviewed-by: John Spray <john.spray@redhat.com>
2016-06-10 11:35:40 +01:00
Yan, Zheng
1b76c6b1c3 Merge pull request #1018 from ceph/wip-16022
tasks/cephfs: reproducer for #16022
2016-06-09 20:52:01 -05:00
Patrick Donnelly
367973b015
cephfs: test readahead is working
Test case for: https://github.com/ceph/ceph/pull/9374
Issue: http://tracker.ceph.com/issues/16024

Signed-off-by: Patrick Donnelly <batrick@batbytes.com>
2016-06-09 11:07:45 -04:00
John Spray
4d3b4cd753 tasks/cephfs: fix vstart runner _get_pid
Dropping the 'x' caused the ps lines not to include
the "-i <myid>" part of the command line that we use
to find named daemons' pids.

Signed-off-by: John Spray <john.spray@redhat.com>
2016-06-08 16:23:13 +01:00
John Spray
fc7d268e3b Merge pull request #1043 from batrick/ps-uid
vstart_runner: only kill/look at user's processes

Reviewed-by: John Spray <john.spray@redhat.com>
2016-06-08 10:46:47 +01:00
Patrick Donnelly
77a23a87fd
vstart_runner: move info message for loaded mods
The message was printing loaded modules before loading each module.
2016-06-07 17:03:15 -04:00
Patrick Donnelly
1675a47d0f
vstart_runner: only kill/look at user's processes
This prevents vstart_runner.py from trying to kill other user's
ceph-mds/ceph-fuse instances.
2016-06-07 16:38:06 -04:00
Zhi Zhang
f83db056d8 Adjust wait_for_health to be more flexsible
Signed-off-by: Zhi Zhang <zhangz.david@outlook.com>
2016-06-06 13:01:27 +08:00
John Spray
b75e2a7da1 tasks/cephfs: reproducer for #16022
Even though check_subs was broken, the multiclient
test was still passing because it didn't test that
clients survived a failover in the multi-filesystem
case.

Fixes: http://tracker.ceph.com/issues/16022
Signed-off-by: John Spray <john.spray@redhat.com>
2016-05-26 14:23:32 +01:00
John Spray
66901ccc04 tasks/cephfs: find processes correctly
Don't mistake the daemon-helper line for the actual
daemon process.

Fixes: http://tracker.ceph.com/issues/15900
Signed-off-by: John Spray <john.spray@redhat.com>
2016-05-23 19:52:21 +01:00
John Spray
76809b1af5 tasks/cephfs: fix mount wait in test_mount_conn_close
Fixes: http://tracker.ceph.com/issues/15900
Signed-off-by: John Spray <john.spray@redhat.com>
2016-05-23 16:00:37 +01:00
Ramana Raja
aab9a03c4c tasks/cephfs: test read-only authorization for volumes
Test whether mount access to volumes can be restricted to read-only.

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

Signed-off-by: Ramana Raja <rraja@redhat.com>
2016-05-23 14:24:42 +05:30
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