Project

General

Profile

Actions

Bug #59728

open

[test] single node "ip netns"-based latency injection for rbd-mirror

Added by Ilya Dryomov 12 months ago. Updated 10 months ago.

Status:
In Progress
Priority:
Normal
Assignee:
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
pacific,quincy
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Initially just an integration test for https://tracker.ceph.com/issues/59393. Might be expanded in the future to vary injected latency, take measurements and assert on results according to the model.

Script to apply latency to NIC+destination IP

NIC=enp1s0

function apply() {
tc qdisc add dev ${NIC} root handle 1: prio priomap 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
tc qdisc add dev ${NIC} parent 1:2 handle 20: netem delay 0ms
tc filter add dev ${NIC} parent 1:0 protocol ip u32 match ip src `hostname -I` flowid 1:2
tc qdisc add dev ${NIC} parent 1:1 handle 10: netem delay 151ms

#NODES should be IPs of remote cluster you want to
#inject latency to. Include IPs for Mgr, Mon, Osd, etc
NODES=( 8.8.8.8 184.50.33.11 )
for i in ${NODES[@]}
do
tc filter add dev ${NIC} parent 1:0 protocol ip prio 1 u32 match ip dst ${i} flowid 1:1
done
}

function cleanup() {
tc qdisc del dev ${NIC} root
}

cleanup
apply


Related issues 1 (0 open1 closed)

Related to rbd - Bug #59393: rbd-mirror cannot grab lock in time with latencyResolvedChristopher Hoffman

Actions
Actions

Also available in: Atom PDF