[Users] ovirt 3.3 vnic profile with bonding & vlans problem

Sven Kieske S.Kieske at mittwald.de
Thu Apr 3 11:21:00 EDT 2014


Hi,

I am attempting a little test with vnic profiles.

I got a profile named "100mbit" with
average: 100
peak: 100
burst: 0

(ovirt warns you can't set peak below average
which is not true from libvirt perspective, it
is an optional field)
I attached this profile to a logical network
with a vlan id, which is connected
to one vm.

when I start the vm, I see the correct
information in the libvirtxml:

   <interface type='bridge'>
      <mac address='MY_MAC'/>
      <source bridge='MY_BRIDGE'/>
      <target dev='vnet0'/>
      <model type='virtio'/>
      <filterref filter='vdsm-no-mac-spoofing'/>
      <link state='up'/>
      <bandwidth>
        <inbound average='12800' peak='12800'/>
        <outbound average='12800' peak='12800'/>
      </bandwidth>

However when I test the download and upload speed
inside this vm, just the download (inbound) gets
limited correctly, here is a sample test:


Upload (too fast for 100mbit):

 root at qostest:~# tnftp -u ftp://ftphost.example.com/test/
install-amd64-minimal-20140220.iso
Connected to ftphost.example.com.
220 (vsFTPd 2.2.2)
331 Please specify the password.
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
200 Switching to Binary mode.
250 Directory successfully changed.
local: install-amd64-minimal-20140220.iso remote:
install-amd64-minimal-20140220.iso
229 Entering Extended Passive Mode (|||13353|)
150 Ok to send data.
100%
|******************************************************************************************************************************************************************************************************************|
64979 KiB   40.77 MiB/s    00:00 ETA226 Transfer complete.
66539088 bytes sent in 00:01 (40.43 MiB/s)



Download (works):


root at qostest:~# tnftp ftp://myuser:mypassword@ftphost.example.com
/test//install-amd64-minimal-20140220.iso
Connected to ftphost.example.com.
220 (vsFTPd 2.2.2)
331 Please specify the password.
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
200 Switching to Binary mode.
250 Directory successfully changed.
local: install-amd64-minimal-20140220.iso remote:
install-amd64-minimal-20140220.iso
229 Entering Extended Passive Mode (|||46847|)
150 Opening BINARY mode data connection for
install-amd64-minimal-20140220.iso (266338304 bytes).
100%
|******************************************************************************************************************************************************************************************************************|
  254 MiB   11.94 MiB/s    00:00 ETA226 Transfer complete.
266338304 bytes received in 00:21 (11.94 MiB/s)
221 Goodbye.

This is a CentOS based VM-Host
with the following versions:

rpm -qa | grep vdsm
vdsm-4.13.3-3.el6.x86_64
vdsm-python-4.13.3-3.el6.x86_64
vdsm-xmlrpc-4.13.3-3.el6.noarch
vdsm-cli-4.13.3-3.el6.noarch

rpm -qa | grep libvirt
libvirt-client-0.10.2-29.el6_5.3.x86_64
libvirt-lock-sanlock-0.10.2-29.el6_5.3.x86_64
libvirt-python-0.10.2-29.el6_5.3.x86_64
libvirt-0.10.2-29.el6_5.3.x86_64

ovirt engine 3.3.3-2.el6

I triple checked the libvirt xml, it looks correct.
it also works for downloads, but not for uploads.

The network setup is as following:

eth0 and eth1 -> bond0 -> bond0.X (vlan) -> vm_net


According to http://www.ovirt.org/Features/Network_QoS#VDSM

libvirt version 1.0.1 or higher is needed, but this can't
be true because of 2 things:

1. it works for downloads
2. http://libvirt.org/formatnetwork.html#elementQoS
states:
"The <bandwidth> element allows setting quality of service for a
particular network (since 0.9.4)"


Any help would be greatly appreciated.

Could this be related to bonding?
I'm pretty sure this worked before I bonded eth0 and eth1.

-- 
Mit freundlichen Grüßen / Regards

Sven Kieske

Systemadministrator
Mittwald CM Service GmbH & Co. KG
Königsberger Straße 6
32339 Espelkamp
T: +49-5772-293-100
F: +49-5772-293-333
https://www.mittwald.de
Geschäftsführer: Robert Meyer
St.Nr.: 331/5721/1033, USt-IdNr.: DE814773217, HRA 6640, AG Bad Oeynhausen
Komplementärin: Robert Meyer Verwaltungs GmbH, HRB 13260, AG Bad Oeynhausen


More information about the Users mailing list