Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update case of virtual network - qos #6124

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,7 @@
iface_attrs = {'type_name': 'bridge', 'source': {'bridge': br_name}, 'model': 'virtio', **${iface_bw_attrs}}
- ovs_br:
iface_attrs = {'type_name': 'bridge', 'source': {'bridge': br_name}, 'model': 'virtio', **${iface_bw_attrs}, 'virtualport': {'type': 'openvswitch'}}

libvirtd_debug_file = /var/log/libvirt/libvird.log
libvirtd_debug_level = 1
expect_msg = warning.*Setting different .peak. value than .average. for QoS for OVS interface.*might have unexpected results
throuput_bw = 1024
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ def run(test, params, env):
net_attrs = eval(params.get('net_attrs', '{}'))
inbound = eval(params.get('inbound'))
outbound = eval(params.get('outbound'))
throuput_bw = params.get('throuput_bw')
expect_msg = params.get('expect_msg')

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

vm.start()
vm_sess = vm.wait_for_serial_login()
if expect_msg:
libvirt.check_logfile(expect_msg,
params.get("libvirtd_debug_file"))

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

network_base.check_throughput(
vm_sess.cmd, lambda x: process.run(x).stdout_text,
vm_ip, inbound["average"], 'inbound'
vm_ip, throuput_bw if throuput_bw else inbound["average"], 'inbound'
)

network_base.check_throughput(
Expand Down