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
Sage Weil
f2a1d0afe8
qa/tasks/ceph: replace wait_for_osds_up with manager.wait_for_all_osds_up
...
Signed-off-by: Sage Weil <sage@redhat.com>
2019-11-21 10:46:54 -06:00
Sage Weil
7c0eacb780
qa/tasks/ceph: healthy: use manager helpers (instead of teuthology/misc ones)
...
Signed-off-by: Sage Weil <sage@redhat.com>
2019-11-21 10:46:54 -06:00
Kefu Chai
02a2a04ad2
qa/tasks/ceph.py: remove unused variables
...
Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-10-21 12:37:56 +08:00
Kefu Chai
09863ef3d9
qa/tasks/ceph: tolerate 'T' or ' ' as date and time separator
...
str.replace() does not change the string in-place, so we need to assign
its return value to `t`.
Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-10-21 12:18:58 +08:00
Kefu Chai
548098668e
qa/tasks/ceph_manager: do not panic of "pg_num_target" is missing
...
we don't have "pg_num_target" in "osd dump" back in mimic, so we don't
need to check it if it is missing when performing upgrade test.
Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-10-21 12:18:58 +08:00
Kefu Chai
0a8448e0c7
Merge pull request #30829 from kshtsk/wip-misc-drop-legacy-code-in-skeleton_config
...
tasks/ceph: drop testdir replacement in skeleton_config
Reviewed-by: Kefu Chai <kchai@redhat.com>
2019-10-18 16:06:23 +08:00
Patrick Donnelly
463d8731d7
Merge PR #30873 into master
...
* refs/pull/30873/head:
qa: get rid of iterkeys for py3 compatibility
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
2019-10-14 13:01:36 -07:00
Kefu Chai
e660ca0880
Merge pull request #30792 from kshtsk/wip-python3-no-iteritems-ceph-task
...
tasks/ceph: get rid of iteritems for python3
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2019-10-14 22:26:36 +08:00
Kyr Shatskyy
5f95b532aa
qa: get rid of iterkeys for py3 compatibility
...
Fixes: https://tracker.ceph.com/issues/42287
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2019-10-11 18:54:29 +02:00
Kyr Shatskyy
f1a96b55dc
tasks/ceph: drop testdir replacement in skeleton_config
...
The str.format is not used anymore for ceph.conf.template
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2019-10-10 02:51:11 +02:00
Venky Shankar
e646524567
qa: tolerate ECONNRESET errcode during logrotate
...
Fixes: http://tracker.ceph.com/issues/41800
Signed-off-by: Venky Shankar <vshankar@redhat.com>
2019-10-09 08:46:35 -04:00
Kyr Shatskyy
9b5bd6c715
tasks/ceph: get rid of iteritems for python3
...
For python3 compatibility use items() instead of iteritems().
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2019-10-08 16:41:32 +02:00
Sage Weil
b078dd002f
qa/tasks/ceph: restart: stop osd, mark down, then start
...
If we stop, start, and then mark down, we may (likely) end up marking
the *new* instance down, which is noisy (generates a cluster warning
message) and inefficient.
Signed-off-by: Sage Weil <sage@redhat.com>
2019-09-05 21:25:27 -05:00
Kefu Chai
b0aec38341
Merge pull request #29090 from liewegas/wip-40792
...
mon/MonClient: ENXIO when sending command to down mon
Reviewed-by: Kefu Chai <kchai@redhat.com>
2019-08-27 17:34:13 +08:00
Patrick Donnelly
d30af45a54
Merge PR #29715 into master
...
* refs/pull/29715/head:
qa: fix broken ceph.restart marking of OSDs down
qa: add debugging failed osd-release setting
Reviewed-by: Sage Weil <sage@redhat.com>
2019-08-23 10:09:17 -07:00
Patrick Donnelly
231f79030b
qa: stop DaemonWatchdog for each cluster in daemon roles
...
Fixes: https://tracker.ceph.com/issues/41398
Introduced-by: 08b99eef277b00a3ea423cbf085bd114a805813f
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2019-08-22 09:00:49 -07:00
Patrick Donnelly
73c7d14eab
qa: fix broken ceph.restart marking of OSDs down
...
Sage noticed `osd down` was not being performed. Bug was that the role
format had changed so splitting no longer worked correctly.
Fixes: https://tracker.ceph.com/issues/40773
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2019-08-22 08:55:52 -07:00
Sage Weil
662dbf9c6c
qa/tasks/ceph: retry several times to tell mons ot stop logging health
...
If we have any sort of failure injection, one attempt is not enough.
Signed-off-by: Sage Weil <sage@redhat.com>
2019-08-21 15:12:48 -07:00
Jos Collin
5a296278f6
qa/tasks: Fix typo
...
Signed-off-by: Jos Collin <jcollin@redhat.com>
2019-08-06 06:36:45 +05:30
Jos Collin
08b99eef27
qa/tasks: start DaemonWatchdog when ceph starts
...
* Start DaemonWatchdog when ceph starts
* Drop the DaemonWatchdog starting in mds_thrash.py
* Bring the thrashers in mds_thrash.py into the context
Fixes: http://tracker.ceph.com/issues/10369
Signed-off-by: Jos Collin <jcollin@redhat.com>
2019-08-06 06:36:33 +05:30
Kefu Chai
90022b35ab
Merge pull request #17619 from liuchang0812/wip-ec-below-min-size
...
osd: allow EC PGs to do recovery below min_size
Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2019-06-22 12:58:55 +08:00
Sage Weil
b747ae1711
qa/tasks/ceph: tolerate 'T' or ' ' as date and time separator
...
Signed-off-by: Sage Weil <sage@redhat.com>
2019-05-29 14:12:15 -05:00
Greg Farnum
0ee63a0450
qa: extend get_pool_property() to allow non-int values
...
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
2019-05-10 10:45:25 +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
Casey Bodley
0aebb55af5
qa/mon: fix cluster support for monmap bootstrap
...
-filter out mons from other clusters
-fix parsing of mon name from role
Fixes: http://tracker.ceph.com/issues/38115
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2019-01-30 12:24:36 -05:00
Sage Weil
236c8a4528
qa/tasks/ceph.py: bracket addrvecs in mon_host etc
...
Signed-off-by: Sage Weil <sage@redhat.com>
2019-01-16 08:33:03 -06:00
Sage Weil
54c5202b74
qa/tasks/ceph: stop any split/merge activity before scrubbing
...
If there are leftover merges at the end of the run they can take a long
time to get through, blowing our timeout for (waiting for pgs to become
active and to stop splitting/merge) and scrubbing pgs. Stop all of that
at the end of the run so that we don't have to wait so long.
Signed-off-by: Sage Weil <sage@redhat.com>
2019-01-14 06:51:21 -06:00
Sage Weil
a19b8e5b14
qa/tasks/ceph: set initial monmap features with using addrvec addrs
...
The --add option will only infer a bare IP to include a v2 addr if the
NAUTILUS feature is there, and that isn't normally present on a freshly
generate monmap. Add it if we are doing addrvecs!
Signed-off-by: Sage Weil <sage@redhat.com>
2019-01-03 11:17:31 -06:00
Sage Weil
241d402d7c
qa/tasks/ceph: only use monmaptool --addv if addr has [,:v]
...
Otherwise, we want the --add path, which has the logic to infer ports,
v2+v1, etc.
Signed-off-by: Sage Weil <sage@redhat.com>
2019-01-03 11:17:31 -06:00
Sage Weil
545df766be
qa/tasks/ceph: keep mon addrs in ctx namespace
...
Signed-off-by: Sage Weil <sage@redhat.com>
2019-01-03 11:17:31 -06:00
Sage Weil
1ab352dd31
qa/tasks/ceph.py: move methods from teuthology.git into ceph.py directly; support mon bind * options
...
Having these live in teuthology.git is silly, since they are only consumed
by the ceph task, and it is hard to revise the behavior.
Revise the behavior by adding mon_bind_* options.
Signed-off-by: Sage Weil <sage@redhat.com>
2019-01-03 11:17:31 -06:00
Sage Weil
de9b77cd38
qa/tasks/ceph: add 'mon_bind_addrvec' and 'mon_bind_msgr2' options
...
- Sometimes we don't want to use v2 addrs
- Sometimes we don't want addrvecs at all (e.g., upgrades)
Signed-off-by: Sage Weil <sage@redhat.com>
2018-12-21 15:31:32 -06:00
Sage Weil
6f06e394e4
qa/tasks/ceph: wait for splits/merges before final scrub
...
Signed-off-by: Sage Weil <sage@redhat.com>
2018-12-19 14:37:01 -06:00
Sage Weil
c9d275a0e2
Merge PR #21444 into master
...
* refs/pull/21444/head:
qa: Replace 'ceph' with cluster name in restart()
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2018-11-25 21:20:44 -06:00
Sage Weil
2ec2c5ef9e
Merge PR #24795 into master
...
* refs/pull/24795/head:
qa/tasks/ceph: gather crash dumps
2018-11-20 17:34:54 -06:00
Sage Weil
4c0632df91
qa/tasks/ceph: gather crash dumps
...
Gather crash dumps as part of the teuthology run.
Signed-off-by: Sage Weil <sage@redhat.com>
2018-11-20 06:49:20 -06:00
Shilpa Jagannath
a7e0c4c8ca
qa: Replace 'ceph' with cluster name in restart()
...
Enabled ctx.managers to take cluster name from config in restart() method instead of default 'ceph'.
Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
2018-11-19 12:10:27 +05:30
Sage Weil
d941b28089
Merge PR #19987 into master
...
* refs/pull/19987/head:
qa/tasks/ceph: ignore failure when chown ceph:ceph
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2018-11-16 00:22:17 -06:00
Kefu Chai
4b0e2c8ed4
qa: fix typos
...
Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-09-21 12:41:42 +08:00
Sage Weil
d6def8ba11
ceph-authtool: remove auid options
...
Signed-off-by: Sage Weil <sage@redhat.com>
2018-08-31 09:26:19 -05:00
Patrick Donnelly
91942df5a6
qa: add test for snap format upgrade
...
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2018-05-03 09:09:03 -07:00
Douglas Fuller
7d97a6e6f8
cephfs: kill allow_dirfrags
...
As dirfrags are now standard in CephFS, remove the machinery for
tracking and enabling this feature.
ceph fs set <fs> allow_dirfrags is now deprecated and prints a warning
message.
Signed-off-by: Douglas Fuller <dfuller@redhat.com>
2018-04-17 11:01:03 -07:00
Shengjing Zhu
2cbba835aa
misc: fix various spelling errors
...
Signed-off-by: Shengjing Zhu <i@zhsj.me>
2018-03-10 23:39:20 +08:00
Sage Weil
e44e10d6e0
qa/tasks/ceph.py: --no-mon-config during ceph-osd mkfs
...
Signed-off-by: Sage Weil <sage@redhat.com>
2018-03-06 14:44:50 -06:00
Sage Weil
c2d28e2750
Merge pull request #18971 from liewegas/wip-pg-scrub-preempt
...
osd/PG: allow scrub preemption
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2018-01-18 12:37:48 -06:00
Kefu Chai
9f5238037a
qa/tasks/ceph: ignore failure when chown ceph:ceph
...
we didn't have ceph:ceph user back in hammer. so ignore this error.
ceph-common will create this user in newer version. and `ceph` task will
take care of this, when upgrading to a newer version.
Fixes: http://tracker.ceph.com/issues/22597
Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-01-17 23:55:35 +08:00
David Zafman
9f103f013c
tests: recovery-unfound-found test needs to account for correct misplaced calculations
...
The test expected HEALTH_OK when in a state with misplaced objects therefore HEALTH_WARN
Signed-off-by: David Zafman <dzafman@redhat.com>
2018-01-16 10:52:21 -08:00
Sage Weil
3f922e79c3
qa/tasks/ceph: disable osd_debug_deep_scrub_sleep in case it is set
...
Otherwise the final scrub may take too long.
Signed-off-by: Sage Weil <sage@redhat.com>
2018-01-14 10:47:24 -06:00
Kefu Chai
185d2f5375
qa/tasks/ceph: add mon-health-to-clog option to "restart"
...
Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-11-29 20:04:44 +08:00