Commit Graph

942 Commits

Author SHA1 Message Date
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
vasukulkarni
68dbf3f84f Merge pull request #1008 from ceph/wip-systemd-tests
Wip systemd tests
2016-06-30 09:42:00 -07:00
John Spray
eee61627f5 Merge pull request #1069 from batrick/i16164
cephfs: test fragment size limit

Reviewed-by: John Spray <john.spray@redhat.com>
2016-06-30 12:46:43 +01:00
Vasu Kulkarni
2fe88cdd12 Few comment fixes
Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
2016-06-29 11:30:02 -07: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
David Zafman
25abf9893a Merge pull request #1063 from ceph/wip-no-fuse
Revert "tasks/scrub_test: use fuse path (do not assume filestore!)"
2016-06-23 18:25:02 -07:00
Zack Cerza
990c4c4ac8 Merge pull request #1059 from ceph/wip-s3roundtrip-wusui
Allow force-branch for s3roundtrip tests.
2016-06-23 15:05:09 -06:00
Samuel Just
d4efcf62d3 Revert "tasks/scrub_test: use fuse path (do not assume filestore!)"
This reverts commit 9e2b455f45.
2016-06-23 10:44:47 -07:00
vasukulkarni
9156943ac5 Merge pull request #970 from ceph/wip-fix-cd-override
Fix for 'branch' overrides to work
2016-06-22 14:54:02 -07:00
Josh Durgin
3d9daf8d1a Merge pull request #1058 from ceph/wip-15016
tasks/ceph-deploy: Run on multiple Python versions (2, 3)

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Vasu Kulkarni <vasu@redhat.com>
2016-06-22 14:03:31 -07:00
Samuel Just
3d27b5802a Merge pull request #1002 from athanatos/wip-osd-recovery
osd_recovery: add delay to ensure maps propogate

Reviewed-by: Sage Weil <sage@redhat.com>
2016-06-22 11:16:47 -07:00
Samuel Just
0fa12144b2 Merge pull request #1062 from athanatos/wip-resolve-peering
resolve_stuck_peering: reset stats while looping

Reviewed-by: Sage Weil <sage@redhat.com>
2016-06-22 11:16:36 -07:00
Samuel Just
1df6a3e5af Merge pull request #1060 from athanatos/wip-flush-pg-stats
[ec_]lost_unfound: don't flush_pg_stats at the beginning

Reviewed-by: Sage Weil <sage@redhat.com>
2016-06-22 11:15:52 -07:00
Oleh Prypin
c5dbbfc545 tasks/ceph-deploy: Install appropriate Python version before running
Related to RM-15016

Signed-off-by: Oleh Prypin <oleh@pryp.in>
2016-06-22 19:19:12 +03:00
Warren Usui
45900d81f5 Allow force-branch for s3roundtrip tests.
Fixes tracker bug 15453
Signed-off-by: Warren Usui <wusui@redhat.com>
2016-06-21 18:11:12 -07:00
Kefu Chai
dd235a5253 Merge pull request #1050 from ceph/wip-fix-scrub-test
test: Eliminate racey scrubbing in scrub_test.py

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-06-21 18:36:28 +08:00
Sage Weil
9e2b455f45 tasks/scrub_test: use fuse path (do not assume filestore!)
Signed-off-by: Sage Weil <sage@redhat.com>
2016-06-20 14:08:49 -04:00
Vasu Kulkarni
a8b336d9e6 Add sleep after stop to avoid checking deactivating state
Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
2016-06-17 12:38:27 -07:00
Samuel Just
9db7d4c9f9 [ec_]lost_unfound: don't flush_pg_stats at the beginning
The upgrade tests restart the daemons right before that part, and the
restart marks the osds down causing the flush_pg_stats to fail.  It's
not necessary anymore anyway.

Signed-off-by: Samuel Just <sjust@redhat.com>
2016-06-17 08:16:58 -07:00
Josh Durgin
2f753d07ce Merge pull request #1049 from ceph/wip-rbd-nbd
rbd: added rbd-nbd fsx test case

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2016-06-16 14:17:03 -07:00
Gregory Farnum
2b5b66d6c4 Merge pull request #1053 from ceph/wip-thrash-raise
task/mds_thrash: don't drop exceptions from thrasher
2016-06-16 07:25:16 -07:00
David Zafman
29985efc7c test: Eliminate racey scrubbing in scrub_test.py
Enhance get_pgid() to return passed value if it is already a pgid

Signed-off-by: David Zafman <dzafman@redhat.com>
2016-06-15 23:31:12 -07: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
Oleh Prypin
9c1a28210e tasks/ceph-deploy: Run on multiple Python versions (2, 3)
Related to RM-15016

Signed-off-by: Oleh Prypin <oleh@pryp.in>
2016-06-15 12:55:18 +03:00
John Spray
eeebc1b536 Merge pull request #1051 from gregsfortytwo/wip-fix-mdsthrash
reference the kill_mds_by_rank function in the right location

Reviewed-by: John Spray <john.spray@redhat.com>
2016-06-13 16:52:49 +01:00
John Spray
40ed110c55 tasks/mds_thrash: fix more references to self.manager
Signed-off-by: John Spray <john.spray@redhat.com>
2016-06-13 16:51:53 +01:00
John Spray
9d7a91c91b task/mds_thrash: don't drop exceptions from thrasher
Previously, when there was an exception in the thrasher
main loop, it would log it but ultimately "succeed"
the teuthology task.

Signed-off-by: John Spray <john.spray@redhat.com>
2016-06-13 12:08:36 +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
Greg Farnum
ca4728b49c reference the kill_mds_by_rank function in the right location
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
2016-06-10 15:05:43 -07:00
Jason Dillaman
7425e2d7a6 rbd: added rbd-nbd fsx test case
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-06-10 10:56:45 -04: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
Vasu Kulkarni
a2ce966d3e Systemd script to test ceph init files
Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
2016-06-04 14:03:24 -07:00
Josh Durgin
cfc48e36da tasks: fix non-existent sleep function
CephManager has no sleep function. Use time.sleep() instead.

Ran into this while testing a branch. Apparently it doesn't happen
much since this hasn't changed in years, but the error was copied
into several tasks.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
2016-06-03 11:15:36 -07:00
Samuel Just
c3498b5f3d Merge pull request #1014 from ceph/wip-ceph-restart-wusui
tasks/ceph.restart osd fix

Reviewed-by: Samuel Just <sjust@redhat.com>
2016-06-01 13:54:53 -07:00
David Zafman
68400e9552 scrub_test: Shards are not marked in error when osd guesses
Signed-off-by: David Zafman <dzafman@redhat.com>
2016-05-27 16:56:17 -07:00
Loic Dachary
4d47b2d1b0 openstack: ovh renamed flavors : s/eg/hg/
http://travaux.ovh.net/?do=details&id=17532

Signed-off-by: Loic Dachary <loic@dachary.org>
2016-05-27 09:10:05 +02: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