Commit Graph

6 Commits

Author SHA1 Message Date
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
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
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
Shilpa Jagannath
14da3f07f3 Adds an identifier to the greenlet spawned by task 'link_toggle', which can then looked up by task 'link_recover' to call end() on it. Also fixes task cleanup during unwind.
Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
2018-09-05 16:02:23 +05:30
Shilpa Jagannath
6da212f7cf Replaced hardcoded net interface names with yaml configurables.
Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
2018-09-05 16:02:13 +05:30
Shilpa Jagannath
e7d0cdacc1 qa: Task to emulate network delay and packet drop between two given hosts
The task uses netem to emulate wide area network delay.
Provides three different configurable options.
1. standard delay: Constant delay with +/- 5ms jitter with normal distribution as default.
2. variable delay: To provide a delay between two given min-max range in milliseconds.
3. packet drop: Toggles packet drop and recovery in regular interval.

Useful in simulating network delays between two clusters while testing
rgw multisite and rbd mirroring configurations.

Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
2018-09-05 16:01:11 +05:30