Skip to content

Commit 300932f

Browse files
authored
Merge pull request #6124 from chloerh/VIRT-296327
Update case of virtual network - qos
2 parents 9f16c71 + aecb32d commit 300932f

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

libvirt/tests/cfg/virtual_network/qos/check_actual_network_throughput.cfg

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,7 @@
3232
iface_attrs = {'type_name': 'bridge', 'source': {'bridge': br_name}, 'model': 'virtio', **${iface_bw_attrs}}
3333
- ovs_br:
3434
iface_attrs = {'type_name': 'bridge', 'source': {'bridge': br_name}, 'model': 'virtio', **${iface_bw_attrs}, 'virtualport': {'type': 'openvswitch'}}
35-
35+
libvirtd_debug_file = /var/log/libvirt/libvird.log
36+
libvirtd_debug_level = 1
37+
expect_msg = warning.*Setting different .peak. value than .average. for QoS for OVS interface.*might have unexpected results
38+
throuput_bw = 1024

libvirt/tests/src/virtual_network/qos/check_actual_network_throughput.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ def run(test, params, env):
3838
net_attrs = eval(params.get('net_attrs', '{}'))
3939
inbound = eval(params.get('inbound'))
4040
outbound = eval(params.get('outbound'))
41+
throuput_bw = params.get('throuput_bw')
42+
expect_msg = params.get('expect_msg')
4143

4244
vmxml = vm_xml.VMXML.new_from_inactive_dumpxml(vm_name)
4345
bkxml = vmxml.copy()
@@ -65,6 +67,9 @@ def run(test, params, env):
6567

6668
vm.start()
6769
vm_sess = vm.wait_for_serial_login()
70+
if expect_msg:
71+
libvirt.check_logfile(expect_msg,
72+
params.get("libvirtd_debug_file"))
6873

6974
iface = network_base.get_iface_xml_inst(vm_name, 'on vm')
7075
mac = iface.mac_address
@@ -105,7 +110,7 @@ def run(test, params, env):
105110

106111
network_base.check_throughput(
107112
vm_sess.cmd, lambda x: process.run(x).stdout_text,
108-
vm_ip, inbound["average"], 'inbound'
113+
vm_ip, throuput_bw if throuput_bw else inbound["average"], 'inbound'
109114
)
110115

111116
network_base.check_throughput(

0 commit comments

Comments
 (0)