Commit Graph

376 Commits

Author SHA1 Message Date
John Spray
cc2e9ff579 tasks/cephfs: allow stdin for Filesystem.rados
Useful for puts when injecting data to test
corruption handling.

Signed-off-by: John Spray <john.spray@redhat.com>
2015-06-18 11:22:12 +01:00
John Spray
655d197a6b tasks/cephfs: add CephFSMount.stat
Signed-off-by: John Spray <john.spray@redhat.com>
2015-06-18 11:22:11 +01:00
Dan Mick
b5b668edb2 calamari_setup.py: fix tarball installs
May be obsolete soon, but in tarballs, ice_setup is still a script

Fixes: #12046
Signed-off-by: Dan Mick <dan.mick@redhat.com>
2015-06-16 15:36:43 -07:00
Dan Mick
8defa73000 calamari_setup.py: tear down mounted ISO
Fixes: #11457
Signed-off-by: Dan Mick <dan.mick@redhat.com>
2015-06-16 15:36:43 -07:00
Travis Rhoden
1c6fed70a8 Merge pull request #454 from ceph/wip-cdtests
Single node ceph-deploy tests to exercise commonly used cli

Reviewed-by: Travis Rhoden <trhoden@redhat.com>
2015-06-15 14:02:10 -07:00
Vasu Kulkarni
b455e4a7c9 Single Node Ceph-deploy tests to exercise commonly used CLI and test init startup
- Add 1node tests to Smoke and include ceph-deploy test
   - Review Comments , add rgw cli test

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
2015-06-12 15:07:52 -04:00
John Spray
3d935a363d Merge pull request #460 from ceph/wip-logrotate-fix
ceph: fix up log rotation stopper

Reviewed-by: John Spray <john.spray@redhat.com>
2015-06-12 19:20:17 +01:00
Greg Farnum
451c5ca79d ceph: fix up log rotation stopper
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
2015-06-12 11:19:24 -07:00
John Spray
63a563d0e7 tasks/cephfs: fix race in test_full
Sometimes mount A would get a cap revoke when mount
B did its last IO, resulting in mount A's OSD epoch
getting updated too.

Fix by making sure mount B is the last one to have
done IO before we do the barrier, so that when
it does IO again after the barrier, mount A can't
be holding any caps that B would need.

Fixes: #11913
Signed-off-by: John Spray <john.spray@redhat.com>
2015-06-11 11:21:26 +01:00
Loic Dachary
14112110e2 Merge pull request #455 from ceph/wip-11937
thrasher: Can't test ceph-objectstore-tool if nodes turned off (power…

Reviewed-by: Yuri Weinstein <yweinste@redhat.com>
Reviewed-by: Loic Dachary <ldachary@redhat.com>
2015-06-10 17:48:37 +02:00
Greg Farnum
6573e92fb3 ceph: update log rotation for review comments
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
2015-06-09 16:16:50 -07:00
David Zafman
b255db820f thrasher: Can't test ceph-objectstore-tool if nodes turned off (powercycle)
Signed-off-by: David Zafman <dzafman@redhat.com>
2015-06-09 14:24:47 -07:00
Greg Farnum
96f3eb9dbe ceph: support arbitrarily-named daemons in logrotate
And make it more configurable in terms of sizes.

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
2015-06-08 17:36:49 -07:00
Greg Farnum
5935f86e49 ceph: enable mds log rotation
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
2015-06-08 17:36:49 -07:00
Gregory Farnum
7f8b8660d9 Merge pull request #449 from ceph/wip-fsync
tasks/cephfs: add TestClientRecovery.test_fsync

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2015-06-05 13:50:17 -07:00
Samuel Just
5cb2631e7c Merge pull request #451 from athanatos/wip-11677
Wip 11677

Reviewed-by: Sage Weil <sage@redhat.com>
2015-05-29 15:17:22 -07:00
John Spray
6d3b5c6b5e tasks/cephfs: add TestClientRecovery.test_fsync
To test that metadata written recently is
preserved across a client+server crash when
barriered with a directory fsync.

Signed-off-by: John Spray <john.spray@redhat.com>
2015-05-29 14:33:01 +01:00
John Spray
df91f98e5b tasks/cephfs: fix typo in blacklist clearing
Broken in aa0ffb3

Signed-off-by: John Spray <john.spray@redhat.com>
2015-05-29 13:46:01 +01:00
Samuel Just
3127cda33a rados: add write_excl and append_excl
Signed-off-by: Samuel Just <sjust@redhat.com>
2015-05-28 15:36:41 -07:00
Samuel Just
91b300d12c rados/thrash: add test for radosgw with snaps
Signed-off-by: Samuel Just <sjust@redhat.com>
2015-05-28 15:36:39 -07:00
Gregory Farnum
d9959b18ba Merge pull request #443 from ceph/wip-11301
tasks/cephfs: reset osd blacklist between tests

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2015-05-27 14:29:26 -07:00
Gregory Farnum
4a79c75daf Merge pull request #447 from ceph/wip-11779
tasks/cephfs: fix timing in test_full

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2015-05-27 14:17:27 -07:00
John Spray
5ff2743de4 tasks/cephfs: fix timing in test_full
The interval between writes was too short because
it was not taking account of the way OSDMap full
flags are set on tick rather than immediately.

Fixes: #11779

Signed-off-by: John Spray <john.spray@redhat.com>
2015-05-27 12:40:49 +01:00
Yan, Zheng
bd542353f5 tasks/cephfs: mount fusectl before listing fuse connections
Fixes: #11756
Signed-off-by: Yan, Zheng <zyan@redhat.com>
2015-05-26 22:18:57 +08:00
John Spray
aa0ffb313c tasks/cephfs: reset osd blacklist between tests
...to avoid OSDMap modifications happening in the
background due to blacklist expiry.

Fixes: #11301

Signed-off-by: John Spray <john.spray@redhat.com>
2015-05-22 11:04:46 +01:00
Gregory Farnum
fed8837c98 Merge pull request #442 from ceph/wip-client-cache-size
cephfs/test_client_limits.py: invalidate kernel dcache according to client cache size

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2015-05-15 10:36:16 -07:00
Gregory Farnum
8eb3255a4c Merge pull request #425 from ceph/wip-flock-optional
cephfs/mount: check FUSE version before invoking flock

Reviewed-by: John Spray <john.spray@redhat.com>
2015-05-14 21:52:30 -07:00
Gregory Farnum
d9e4433630 Merge pull request #398 from ceph/wip-quota-full
Test for CephFS full handling with pool quotas (#11276)

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2015-05-14 16:38:05 -07:00
David Zafman
aaacfb8e4d Merge pull request #402 from ceph/wip-11343
Reviewed-by: Samuel Just <sjust@redhat.com>
2015-05-14 10:56:20 -07:00
Yan, Zheng
c7e8e544a8 cephfs/test_client_limits.py: invalidate kernel dcache according to client_cache_size
Signed-off-by: Yan, Zheng <zyan@redhat.com>
2015-05-13 14:40:28 +08:00
Greg Farnum
f780f1894b cephfs/test_client_recovery: check FUSE version before invoking flock
flock only works properly on FUSE versions >=2.9, which is newer
than eg Ubuntu Precise. So check the version on our client mounts and
only test flock if it's at least that new.

Fixes: #9995

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
2015-05-12 14:43:19 -07:00
John Spray
13c7f97d89 tasks/cephfs: cover pool quota in test_full
Run the same procedure as TestClusterFull, but
instead of limiting OSD memstore size, use pool
quota on the data pool.

Signed-off-by: John Spray <john.spray@redhat.com>
2015-05-08 14:09:59 +01:00
Josh Durgin
3f0706019f Merge pull request #426 from ceph/wip-11372
add new valgrind tests to rbd suite

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-05-07 09:25:51 -07:00
David Zafman
38160ecfaa reg11184: Add regression test for 11184
Create divergent priors and a split and then move a pg using
ceph-objectstore-tool export/import
Add yaml file to run the reg11184 task

Fixes: #11343

Signed-off-by: David Zafman <dzafman@redhat.com>
2015-05-06 12:27:34 -07:00
David Zafman
b10558021f divergent_priors2: Do divergent priors and ceph-objectstore-tool export/import
Based on tasks/divergent_priors.py but also do simple export/remove/import on
same osd.
Add yaml file to run the divergent_priors2 task

Signed-off-by: David Zafman <dzafman@redhat.com>
2015-05-06 12:27:34 -07:00
David Zafman
a6a4aaf3d3 divergent_priors: Fix divergent_priors task
Flake8 fixes
Use new set_recovery_delay admin socket command
Fix bad value set for filestore_blackhole
Make sure log trims and only require 100 objects
Use kick_recovery_wq to properly set osd_recovery_delay_start to 0
Write and remove divergent and verify removal was undone
Fix to make compatible with wip-10809-11135-10290
Make sure to set_recovery_delay in a non-racey way (while osd running but down)
Leave divergent "in" so its PGs aren't treated as strays
Add yaml file to run the divergent_priors task

Signed-off-by: David Zafman <dzafman@redhat.com>
2015-05-06 12:27:34 -07:00
Samuel Just
3970ad9fbd Merge pull request #428 from athanatos/wip-11429
suites/rados: add test for 11429

Reviewed-by: Zack Cerza <zack@redhat.com>
2015-05-04 16:37:45 -07:00
Samuel Just
91bc0e9186 squash: use != not is not in radosbench 2015-05-04 14:22:59 -07:00
Samuel Just
73577f1077 squash: remove utility, moved to teuthology.git 2015-05-04 14:21:58 -07:00
Samuel Just
2a60852a1d squash: ceph_manager: add utility_task doc string 2015-05-04 14:21:31 -07:00
Samuel Just
015ed70f8a suites/rados: add test for 11429
This patch also adds some convenience facilities for making
some of the ceph_manager methods into tasks usable from a
yaml file.

Signed-off-by: Samuel Just <sjust@redhat.com>
2015-05-04 11:53:54 -07:00
Yuri Weinstein
3f600b164b Merge pull request #423 from ceph/wip-11495
Fix ceph_deploy task with multiple mons
2015-04-30 09:34:39 -07:00
Gregory Farnum
3337cc6cb8 Merge pull request #421 from ceph/wip-client-osd-caps
tasks/cephfs: add test_pool_perm

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Reviewed-by: John Spray <john.spray@redhat.com>
2015-04-29 16:13:23 -07:00
John Spray
99951f8150 tasks/ceph_deploy: remove some dead code
Signed-off-by: John Spray <john.spray@redhat.com>
2015-04-29 19:59:27 +01:00
John Spray
dbe2ad2421 tasks/ceph_deploy: fix for multiple mons
Now that service IDs are modified during run, we have
to avoid repeatedly evaluating first_mon for where
to run ceph_deploy, as the answer will change.

Fixes: #11495
Signed-off-by: John Spray <john.spray@redhat.com>
2015-04-29 19:59:27 +01:00
Jason Dillaman
8392d7f213 tasks: add support for running fsx under valgrind
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-04-28 09:44:05 -04:00
Yan, Zheng
539117a38d tasks/cephfs: add test_pool_perm
This tests that client checks pool permission before
copy data to its cache.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
2015-04-28 20:38:32 +08:00
Josh Durgin
0c27c90240 rbd.xfstests: remove bad assert
Misguided input validation. A better error comes
from the run_xfstests() method later anyway.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
2015-04-27 11:29:19 -07:00
Josh Durgin
94d4b91f7f xfstests: fix typo
Signed-off-by: Josh Durgin <jdurgin@redhat.com>
2015-04-21 15:31:16 -07:00
Josh Durgin
4a1c434add xfstests: define defaults in root task
The early non-defaults caused failures due to xfstests_url: None not
being overridden by run_xfstests(). Move the defaults to xfstests() and
don pass xfstests_branch past that point.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
2015-04-21 15:02:40 -07:00