Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Juno KVM bandwidth quota issue

Hi,

I try to create an instance with bandwidth quota, but it doesn't work, I get the same bandwidth with a flavor with quota and without.

I don't see any error or warning in logs.

I create a flavor

nova flavor-create --is-public false limited auto 512 10 2

nova flavor-key limited set quota:vif_inbound_average=1024

nova flavor-key limited set quota:vif_outbound_average=1024

Then I boot an instance with this flavor, and then I run an iperf

Client connecting to XXX.XXX.XXX.XXX, UDP port 5001
Sending 1470 byte datagrams
UDP buffer size: 208 KByte (default)
-------------------------------------------------------------
[  3] local 192.168.1.106 port 36275 connected with XXX.XXX.XXX.XXX port 5001
[  3] Interval      Transfer        Bandwidth
[  3] 0.0-10.0 sec  1.25MBytes      1.05 Mbits/sec
[  3] Sent 893 datagrams

-

# tc qdisc
qdisc mq 0: dev eth0 root
qdisc mq 0: dev eth1 root
qdisc pfifo_fast 0: dev qvo658149a1-8f root refcnt 2 bands 3 priomap  1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
qdisc pfifo_fast 0: dev qvb658149a1-8f root refcnt 2 bands 3 priomap  1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
qdisc htb 1: dev tap658149a1-8f root refcnt 2 r2q 10 default 1 direct_packets_stat 0 direct_qlen 500
qdisc sfq 2: dev tap658149a1-8f parent 1:1 limit 127p quantum 1514b depth 127 divisor 1024 perturb 10sec
qdisc ingress ffff: dev tap658149a1-8f parent ffff:fff1 ----------------

-

ii nova-compute-kvm 1:2014.2.2-0ubuntu1~cloud0 all OpenStack Compute - compute node (KVM)
ii libvirt-bin 1.2.2-0ubuntu13.1.9 amd64 programs for the libvirt library
ii nova-compute-libvirt 1:2014.2.2-0ubuntu1~cloud0 all OpenStack Compute - compute node libvirt support
ii openvswitch-switch 2.3.1-0ubuntu1~cloud0 amd64 Open vSwitch switch implementations