Patrick Donnelly
7925394ddf
qa: add test for standby-replay disable
...
Causes all standby-replay daemons to be removed.
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2021-03-15 20:52:07 -07:00
Patrick Donnelly
1015e935ea
qa: check for rank hole without racy joinable flag gymnastics
...
Fixes: https://tracker.ceph.com/issues/48770
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2021-01-06 11:30:15 -08:00
Patrick Donnelly
79a027bb4a
qa: skip client mounts for TestResize
...
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2021-01-06 11:30:14 -08:00
Patrick Donnelly
4bd9ef0965
qa: update tests concerning setting of multifs
...
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2020-12-14 10:42:23 -08:00
Venky Shankar
5afdf26943
test: Filesystem class helpers to grow and shrink MDS cluster
...
These routines were test specific. Make them a part of Filesystem
class.
Signed-off-by: Venky Shankar <vshankar@redhat.com>
2020-10-12 07:34:51 -04:00
Rishabh Dave
07e493ffb5
qa/cephfs: allow reusing mount objects and add remount method
...
This commit introduces following two set of changes -
First, make client keyring path, mountpoint on host FS and CephFS and
CephFS's name attributes of the object representing the mount
and update all the mount object creation calls accordingly. Also,
rewrite all the mount object creation to use keyword arguments instead
of positional arguments to avoid mistakes, especially since a new
argument was added in this commit.
Second, add remount method to mount.py so that it's possible to unmount
safely, modify the attributes of the object representing the mount and
mount again based on new state of the object *in a single call*. The
method is placed in mount.py to avoid duplication.
This change has two leads to two more changes: upgrading interface of
mount() and mount_wait() and upgrading testsuites to adapt to these
change.
Signed-off-by: Rishabh Dave <ridave@redhat.com>
2020-09-10 17:10:51 +05:30
Kefu Chai
76c4e68be4
qa/tasks/cephfs: drop python2 support
...
Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-07-21 19:52:11 +08:00
Kefu Chai
21ad5bf2eb
qa/tasks/cephfs: flake8 fixes
...
Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-06-24 10:12:11 +08:00
Xiubo Li
5c24d91327
qa/tasks/cephfs: add mount_wait() support to simplify the code
...
Mostly we should wait the mountpoint to get ready, especially for
the fuse mountpoint, sometimes it may take a few seconds to get
ready.
Fixes: https://tracker.ceph.com/issues/44044
Signed-off-by: Xiubo Li <xiubli@redhat.com>
2020-04-14 07:47:04 -04:00
Kefu Chai
dd8d929c9c
qa,tes: s/xrange/range/
...
use six.moves.range for python3 copatibility, we can drop six after
migrating to python3.
Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-04-07 20:33:47 +08:00
Kefu Chai
947a74349d
qa: import with full path
...
to be py3 compatible
Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-03-24 18:27:55 +08:00
Patrick Donnelly
2c9642131f
qa: add tests for mds_join_fs cluster affinity
...
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2020-02-13 07:51:10 -08:00
Thomas Bechtold
0127cd1e88
qa: Enable flake8 tox and fix failures
...
There were a couple of problems found by flake8 in the qa/
directory (most of them fixed now). Enabling flake8 during the usual
check runs hopefully avoids adding new issues in the future.
Signed-off-by: Thomas Bechtold <tbechtold@suse.com>
2019-12-12 10:21:01 +01:00
Patrick Donnelly
19c724c1d6
qa: wait for MDS to come back after removing it
...
Fixes: http://tracker.ceph.com/issues/40967
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2019-07-25 14:42:34 -07:00
Patrick Donnelly
1071f73c76
qa: use skipTest method instead of exception
...
This is the recommended method to skip a test according to [1]. It also lets us
avoid an unnecessary import.
[1] https://docs.python.org/2/library/unittest.html#unittest.TestCase.skipTest
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2019-04-24 09:38:52 -07:00
Patrick Donnelly
9aaf6118a4
qa: unmount clients prior to marking fs down
...
Evicted RHEL7.5 clients may hang.
Fixes: http://tracker.ceph.com/issues/38677
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2019-03-11 09:15:37 -07:00
Patrick Donnelly
4fa4eda9ee
qa: update discontinous map test to use mds freezing
...
and stop using standby_for_*.
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2019-02-27 21:39:17 -08:00
Patrick Donnelly
8cbdad9f9b
qa: update testing for standby-replay
...
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2019-02-27 21:39:12 -08:00
Patrick Donnelly
cabefdeba0
qa: add test that down fs does not ERR
...
Also fix other test cases to not rely on health warning.
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2019-01-17 18:14:10 -08:00
Yan, Zheng
5e843162da
qa/tasks/cephfs: add test for discontinuous mdsmap
...
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
2018-07-19 14:34:29 +08:00
Patrick Donnelly
378a6fcfe8
qa: check old_max_mds is not wiped by marked down twice
...
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2018-04-19 11:57:45 -07:00
Patrick Donnelly
dde9ee1628
qa: add max_mds thrash test
...
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2018-04-17 11:26:56 -07:00
Patrick Donnelly
88922255e9
qa: add test for cluster resizing
...
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2018-04-17 11:26:56 -07:00
Patrick Donnelly
5503b2014c
qa: remove use of mds deactivate
...
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2018-04-17 11:26:56 -07:00
Patrick Donnelly
f6e1a797d4
Revert "Merge PR #19369 into master"
...
This reverts commit 3189ba19a7
, reversing
changes made to b7620de020
.
Despite the change in json format being positive, the unfortunate side-effect
is that it broke upgrade testing (because the QA framework must handle the
transition of mdsmap["info"] to a list from object) and the ceph-mgr.
Fixes: http://tracker.ceph.com/issues/22527
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2018-01-04 09:42:37 -08:00
Patrick Donnelly
1f1a2a27ef
qa: update handling of fs status format
...
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2017-12-21 10:35:09 -08:00
Patrick Donnelly
3a5f090a1e
qa: remove usage of mds dump
...
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2017-10-24 11:32:43 -07:00
Patrick Donnelly
183646c919
qa: remove use of obsolete mds commands
...
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2017-10-01 17:22:36 -07:00
Yan, Zheng
e4844706b0
qa/cephfs: don't use int() to convert string of float point number
...
Fixes: http://tracker.ceph.com/issues/20582
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
2017-07-13 15:55:22 +08:00
Sage Weil
25717f7e84
qa/tasks/ceph_test_case.py: update health check helpers
...
Signed-off-by: Sage Weil <sage@redhat.com>
2017-07-12 12:52:03 -04:00
John Spray
b6cfa35458
qa: no longer need to explicitly enable multimds
...
Signed-off-by: John Spray <john.spray@redhat.com>
2017-06-23 17:07:34 +01:00
Patrick Donnelly
02c41f683d
qa: add health warning test for insufficient standbys
...
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2017-05-10 11:05:09 -04:00
John Spray
bf39f561e9
qa: fix test_standby_for_invalid_fscid with vstart_runner
...
Signed-off-by: John Spray <john.spray@redhat.com>
2017-03-31 12:13:57 -04:00
Patrick Donnelly
cf9e0da078
qa: use fs methods for setting configs
...
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2017-02-06 14:07:13 -05:00
Sage Weil
c01f2ee0e2
move ceph-qa-suite dirs into qa/
2016-12-14 11:29:55 -06:00