Kyr Shatskyy
683421ea24
qa/tasks/util/rgw: get rid of cString for py3
...
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2020-03-06 10:19:55 +01:00
Kyr Shatskyy
4cf205f285
qa/tasks/rgw_logsocket: get rid of cStringIO for py3
...
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2020-03-06 10:19:55 +01:00
Kyr Shatskyy
f0c5f56ef8
qa/tasks/ragweed: get rid of cString for py3
...
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2020-03-06 10:19:55 +01:00
Kyr Shatskyy
b3e42cf30c
qa/tasks/ragweed: get rid of itervalues for py3
...
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2020-03-06 10:19:55 +01:00
Kyr Shatskyy
0a224991cf
qa/tasks/radosgw_admin: get rid of cStringIO for py3
...
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2020-03-06 10:19:55 +01:00
Kyr Shatskyy
08b83007dc
qa/tasks/radosgw_admin: fix tab inconsistancy
...
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2020-03-06 10:19:55 +01:00
Kyr Shatskyy
eec9479f6d
qa/tasks/rgw: fix imports for py3
...
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2020-03-06 10:19:55 +01:00
Kyr Shatskyy
db7ae8eff6
qa/tasks/rbd_fio: get rid of StringIO for py3
...
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2020-03-06 10:19:55 +01:00
Kyr Shatskyy
7b72097cd1
qa/tasks/rbd: get rid of cStringIO for py3
...
Use io.BytesIO and six.ensure_str for py3 compatibility
instead of cStringIO.StringIO
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2020-03-06 10:19:55 +01:00
Kyr Shatskyy
ac2fa95b21
qa/tasks/ceph_fuse: fix import for py3
...
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2020-03-06 10:19:55 +01:00
Kyr Shatskyy
875b45f3c9
qa/tasks/cephfs/kernel_mount: get rid of StringIO.StringIO for py3
...
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2020-03-06 10:19:55 +01:00
Kyr Shatskyy
9f6c764f10
qa/tasks/cephfs: get rid of StringIO for py3
...
Use io.BytesIO and six.ensure_str for py3 compatibility
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2020-03-06 10:19:55 +01:00
Kefu Chai
da736c22c5
qa/tasks/ceph.py: quote "<kind>" in command line
...
otherwise bash will intepret "kind" as a file when handling command like
```
sudo zgrep <kind> /var/log/ceph/valgrind/* /dev/null | sort | uniq
```
and try to feed its content to zgrep, and write the output of zgrep
to /var/log/ceph/valgrind/*. this is not the intended behavior. what we
what to do is to pass "<kind>" as an argument to zgrep, along with
the globbed files names which matches "/var/log/ceph/valgrind/*".
in this change, "<kind>" is quoted as in the command line. it's also
what `pipes.quote()` does before the change of
35cf5131e7
.
this addresses the regression introduced by
35cf5131e7
.
Fixes: https://tracker.ceph.com/issues/44454
Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-03-06 12:17:42 +08:00
Sage Weil
d316156b1e
Merge PR #33744 into master
...
* refs/pull/33744/head:
qa/tasks/radosbench: fix usage of -O
Reviewed-by: Kefu Chai <kchai@redhat.com>
2020-03-05 16:41:48 -06:00
Sage Weil
8a84ddeaa8
Merge PR #33531 into master
...
* refs/pull/33531/head:
qa/tasks/mgr/test_orchestrator_cli: fix test_ps* tests
mgr/test_orchestrator: refactor listing services/daemons
mgr/dashboard: list services and daemons
Reviewed-by: Tiago Melo <tmelo@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
2020-03-05 13:20:21 -06:00
Alfonso Martínez
eaa0d84a13
mgr/dashboard: fix tasks.mgr.dashboard.test_rgw suite
...
Fixes: https://tracker.ceph.com/issues/44405
Signed-off-by: Alfonso Martínez <almartin@redhat.com>
2020-03-05 16:22:55 +01:00
Sage Weil
bb126cf9ab
qa/tasks/mgr/test_orchestrator_cli: fix test_ps* tests
...
The ps output names daemons like 'type.foo', e.g., 'mgr.x'. Now that
the test_orchestrator impl is less bonkers this needs to be adjusted to
match reality.
Signed-off-by: Sage Weil <sage@redhat.com>
2020-03-05 08:00:42 -06:00
Sage Weil
da19fd14db
qa/tasks/radosbench: fix usage of -O
...
I tried to fix this in fb991fa5f6
but
was comparing an array to an int.
Signed-off-by: Sage Weil <sage@redhat.com>
2020-03-05 07:27:24 -06:00
Thomas Bechtold
46e22c422b
qa: Enable basic mypy support for qa/ directory
...
A first step to do more automatic code checks on the qa/
directory. This is useful while transitioning to python3.
Also use log_exc to top-level to not run into:
error: Argument 1 to "log_exc" has incompatible type
"Callable[[OSDThrasher], Any]"; expected "OSDThrasher"
Signed-off-by: Thomas Bechtold <tbechtold@suse.com>
2020-03-05 06:54:56 +01:00
Thomas Bechtold
f5e77561e9
qa: Fix problems detected by mypy
...
This is a first step to enable mypy on the qa/ directory.
Signed-off-by: Thomas Bechtold <tbechtold@suse.com>
2020-03-05 06:53:31 +01:00
Sage Weil
86a27e5a9a
Merge PR #33047 into master
...
* refs/pull/33047/head:
qa/rgw: exercise DeleteRange in test_bucket_index_log_trim
Reviewed-by: Vikhyat Umrao <vikhyat@redhat.com>
2020-03-04 09:58:45 -06:00
Sage Weil
c8981f9657
Merge PR #33705 into master
...
* refs/pull/33705/head:
qa/suites/upgrade/nautilus-x/parallel: restart mgr.x before mons
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2020-03-04 08:53:24 -06:00
Kefu Chai
bd3dccd6fa
Merge pull request #33709 from tchaikov/wip-ceph-py-py3-rados
...
qa/tasks: py3 compat (tasks exercised by rados suites)
Reviewed-by: Kefu Chai <kchai@redhat.com>
2020-03-04 21:16:21 +08:00
Kefu Chai
00af2eddf5
Merge pull request #33690 from rhcs-dashboard/44237-remove-config-opt-read-from-system-roles
...
mgr/dashboard: remove 'config-opt: read' perm. from system roles.
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
2020-03-04 20:54:42 +08:00
Kefu Chai
6ac4348712
Merge pull request #33701 from tchaikov/wip-mgr-orch-exception
...
mgr/orch: try harder when pickle fails to marshal an exception
Reviewed-by: Joshua Schmid <jschmid@suse.de>
2020-03-04 20:47:44 +08:00
Kyr Shatskyy
982ba399b3
qa/tasks/ceph_deploy: get rid of cStringIO for py3
...
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2020-03-04 13:09:17 +08:00
Kyr Shatskyy
5f876961ef
qa/tasks/manypools: get rid of itervalues for py3 compat
...
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2020-03-04 13:09:17 +08:00
Kyr Shatskyy
49592af400
qa/tasks/vstart_runner: use io.BytesIO for py3 compat
...
Use io.BytesIO instead of StringIO for py3 compatibility.
Signed-off-by: Kefu Chai <kchai@redhat.com>
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2020-03-04 13:09:17 +08:00
Kyr Shatskyy
4c992baf25
qa/tasks/ceph_manager: ensure str for py3 compat
...
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2020-03-04 13:09:17 +08:00
Kyr Shatskyy
b502bc17d1
qa/tasks/ceph_objectstore_tool: get rid of cStringIO for py3
...
Signed-off-by: Kefu Chai <kchai@redhat.com>
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2020-03-04 13:09:17 +08:00
Kyr Shatskyy
b6eefbb028
qa/tasks/divergent_priors2: get rid of cStringIO for py3
...
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2020-03-04 13:09:17 +08:00
Kyr Shatskyy
7ffcd00b65
qa/tasks/radosbenchsweep: get rid of cStringIO for py3
...
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2020-03-04 13:09:17 +08:00
Kyr Shatskyy
fa16954df9
qa/tasks/reg11184: get rid of cStringIO for py3
...
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2020-03-04 13:09:17 +08:00
Kyr Shatskyy
71ada20a0e
qa/tasks: get rid of cStringIO for py3
...
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2020-03-04 13:09:17 +08:00
Kyr Shatskyy
99e9e82d64
qa/tasks: get rid of cStringIO for py3
...
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2020-03-04 13:09:17 +08:00
Kyr Shatskyy
fa3db2529f
qa/tasks/netem: get rid of cStringIO for py3
...
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2020-03-04 13:09:17 +08:00
Kyr Shatskyy
1d6c4228cd
qa/tasks/scrub_test: get rid of cStringIO for py3
...
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2020-03-04 13:09:17 +08:00
Kyr Shatskyy
a28d347305
qa/tasks/systemd: get rid of cStringIO for py3
...
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2020-03-04 13:09:17 +08:00
Kyr Shatskyy
3eb341db27
qa/tasks/admin_socket: get rid of cStringIO for py3
...
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2020-03-04 13:09:17 +08:00
Kyr Shatskyy
145ba3e100
qa/tasks/cephadm: get rid of cStringIO for py3
...
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2020-03-04 13:09:17 +08:00
Kyr Shatskyy
1140b5f027
qa/tasks/omapbench: get rid of itervalues for py3
...
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2020-03-04 13:09:16 +08:00
Kyr Shatskyy
eb10276c1c
qa/tasks/mgr: get rid of itervalues for py3
...
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2020-03-04 13:09:16 +08:00
Kyr Shatskyy
6e328edcbc
qa/tasks/watch_notify_stress: get rid of itervalues for py3
...
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2020-03-04 13:09:16 +08:00
Kyr Shatskyy
b2d52220e3
qa/tasks/osd_max_pg_per_osd: get rid of itervalues for py3
...
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2020-03-04 13:09:16 +08:00
Kyr Shatskyy
3b21067bbb
qa/tasks/radosbench.py: get rid of itervalues for py3 compat
...
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2020-03-04 13:09:16 +08:00
Kyr Shatskyy
dd8bacdb13
qa/tasks/rados: get rid of itervalues for py3
...
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2020-03-04 13:09:16 +08:00
Kyr Shatskyy
8e1526d1d6
qa/tasks/daemonwatchdog: py3 compat
...
Address error:
RuntimeError: dictionary changed size during iteration
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2020-03-04 13:09:16 +08:00
Kyr Shatskyy
ae6befb3be
qa/tasks/workunit: py3 compat
...
Use six.ensure_str for `get_file()` output in order to
make code py3 compatible
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2020-03-04 13:09:16 +08:00
Kyr Shatskyy
1c81d3873d
qa/tasks: fix import module path for py3 compat
...
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2020-03-04 13:09:16 +08:00
Kyr Shatskyy
c26ea687d4
qa/tasks/thrashosds: fix imports for py3
...
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2020-03-04 13:09:16 +08:00