[Openstack] flavor disk io limits with cinder volumes not supported ?

John Griffith john.griffith at solidfire.com
Wed Jul 16 15:46:55 UTC 2014


On Wed, Jul 16, 2014 at 9:23 AM, Pavel Stano <stano at websupport.sk> wrote:

> Hi,
>
> i am trying to set io limits for VM with:
> nova flavor-key lb_proxy set quota:disk_total_bytes_sec=1024
> nova flavor-key lb_proxy set quota:disk_total_iops_sec=20
>
> but when i check virsh dumpxml instance-id, it shows it is only set for
> device='cdrom' (thats --config-drive), but no <iotune>...</iotune> is
> set for cinder volume <disk device='disk'>..</disk>.
> I am missing something or cinder volumes has no support for io limits ?
>
> (testing) root at test-osmng:~# nova flavor-show lb_proxy |grep
> extra_specs
> | extra_specs | {"quota:disk_total_iops_sec": "20",
> "quota:disk_total_bytes_sec": "1024"} |
>
>
> (testing) root at test-compute1:~# virsh dumpxml instance-00000003|sed -n
> '/<disk/,/<\/disk>/p'
>
> <disk type='file' device='disk'>
>       <driver name='qemu' type='raw' cache='none'/>
>       <source
>
> file='/var/lib/nova/mnt/21ada25d651c70702b9ecb8d530f188a/volume-63dddedb-f9b1-4b09-9005-a9183184fdef'/>
> <target dev='vda' bus='virtio'/>
> <serial>63dddedb-f9b1-4b09-9005-a9183184fdef</serial> <alias
> name='virtio-disk0'/> <address type='pci' domain='0x0000' bus='0x00'
> slot='0x06' function='0x0'/> </disk>
>
> <disk type='file' device='cdrom'>
>       <driver name='qemu' type='raw' cache='none'/>
>       <source
> file='/mnt/instances/73cf44d4-66b3-4610-85ca-10dacb0f888c/disk.config'/>
> <target dev='hdd' bus='ide'/> <iotune>
>         <total_bytes_sec>1024</total_bytes_sec>
>         <total_iops_sec>20</total_iops_sec>
>       </iotune>
>       <readonly/>
>       <alias name='ide0-1-1'/>
>       <address type='drive' controller='0' bus='1' target='0' unit='1'/>
>     </disk>
>
> --
> [ Ohodnotte kvalitu mailu: http://nicereply.com/websupport/Stano/ ]
>
> Pavel Stano | Troubleshooter
>
> http://WebSupport.sk
> *** BERTE A VYCHUTNAVAJTE ***
>
>
> _______________________________________________
> Mailing list:
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> Post to     : openstack at lists.openstack.org
> Unsubscribe :
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>
> ​If I remember correctly this worked if you set qos-specs on your Cinder
volume.  The way it worked was you set qos-specs on the volume via Cinder
and that info get's stuffed inside of the connection info of the volume
when it's picked up by Nova.  It should then grab that info on attach and
set things appropriately in libvirt.

It's been a while since I've tested it or tried it out, but looking at the
code everything seems to still be in place.

John​
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20140716/ac4e59c1/attachment.html>


More information about the Openstack mailing list