Libvirt QoS rate limit for instances's network interfaces doesn't work

Bug #1653116 reported by Denis Kostryukov
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
Status tracked in 10.0.x
10.0.x
Invalid
Low
Unassigned
7.0.x
Won't Fix
High
Anton Chevychalov
8.0.x
Won't Fix
High
Anton Chevychalov
9.x
Invalid
High
Unassigned

Bug Description

Upstream bug: https://bugs.launchpad.net/juniperopenstack/+bug/1367095

Tried to apply QoS rate limits for network interfaces on instances.

Set needed values in flavor metadata, the parameters appear in libvirt XML files, but rate limits aren't applied and the instance can reach up to 2Gbit/sec

Please provide a patch.

- Similar bug: https://bugs.launchpad.net/juniperopenstack/+bug/1367095
- MOS 8.0 with Contrail
- Libvirt packages:

libsys-virt-perl 1.2.1-1
libvirt-bin 1.2.9-9~u14.04+mos5+mos8.0+1
libvirt-clients 1.2.9-9~u14.04+mos5+mos8.0+1
libvirt-daemon 1.2.9-9~u14.04+mos5+mos8.0+1
libvirt-daemon-system 1.2.9-9~u14.04+mos5+mos8.0+1
libvirt0 1.2.9-9~u14.04+mos5+mos8.0+1
python-libvirt 1.2.15-1~u14.04+mos1

/mnt/nova/instances/eff4b218-2ce8-48e0-acbd-0489e158c3ec/libvirt.xml

<interface type="ethernet">
<mac address="02:9e:e6:d5:60:6d"/>
<model type="virtio"/>
<script path=""/>
<target dev="tap9ee6d560-6d"/>
<bandwidth>
<inbound average="12800"/>
<outbound average="12800"/>
</bandwidth>
</interface>

/etc/libvirt/qemu/instance-000013a3.xml

<interface type='ethernet'>
<mac address='02:9e:e6:d5:60:6d'/>
<bandwidth>
<inbound average='12800'/>
<outbound average='12800'/>
</bandwidth>
<script path=''/>
<target dev='tap9ee6d560-6d'/>
<model type='virtio'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
</interface>

/run/libvirt/qemu/instance-000013a3.xml

<interface type='ethernet'>
<mac address='02:9e:e6:d5:60:6d'/>
<bandwidth>
<inbound average='12800'/>
<outbound average='12800'/>
</bandwidth>
<script path=''/>
<target dev='tap9ee6d560-6d'/>
<model type='virtio'/>
<alias name='net0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
</interface>

Changed in mos:
importance: Undecided → High
Roman Rufanov (rrufanov)
tags: added: ct1
description: updated
Revision history for this message
Roman Podoliaka (rpodolyaka) wrote :

MOS 9.2 and MOS 10.0 come with newer libvirt versions (1.3.1 and 2.1.0) that support QoS on contrail.

tags: added: area-linux
Revision history for this message
Denis Meltsaykin (dmeltsaykin) wrote :

Our version of libvirt doesn't support network rate-limiting. This is clearly not a bug, but a feature request. Also, MOS7/8 were certified with libvirts of their version, changing this demands re-certification (since libvirt is an essential part of the product).

Revision history for this message
Denis Meltsaykin (dmeltsaykin) wrote :

Denis, could did you use this patch by Dmitry Teselkin: https://review.fuel-infra.org/#/c/29707/ ?

Revision history for this message
Anton Chevychalov (achevychalov) wrote :

Mark that bug as "Won't Fix" for MOS 7 and MOS 8, because libvirt upgrade too bit to be done over maintenance updates. Call support if you need that patch.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.