<div dir="ltr"><div class="gmail_default" style="font-family:courier new,monospace"><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 16, 2014 at 9:23 AM, Pavel Stano <span dir="ltr"><<a href="mailto:stano@websupport.sk" target="_blank">stano@websupport.sk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
i am trying to set io limits for VM with:<br>
nova flavor-key lb_proxy set quota:disk_total_bytes_sec=1024<br>
nova flavor-key lb_proxy set quota:disk_total_iops_sec=20<br>
<br>
but when i check virsh dumpxml instance-id, it shows it is only set for<br>
device='cdrom' (thats --config-drive), but no <iotune>...</iotune> is<br>
set for cinder volume <disk device='disk'>..</disk>.<br>
I am missing something or cinder volumes has no support for io limits ?<br>
<br>
(testing) root@test-osmng:~# nova flavor-show lb_proxy |grep<br>
extra_specs<br>
| extra_specs | {"quota:disk_total_iops_sec": "20",<br>
"quota:disk_total_bytes_sec": "1024"} |<br>
<br>
<br>
(testing) root@test-compute1:~# virsh dumpxml instance-00000003|sed -n<br>
'/<disk/,/<\/disk>/p'<br>
<br>
<disk type='file' device='disk'><br>
<driver name='qemu' type='raw' cache='none'/><br>
<source<br>
file='/var/lib/nova/mnt/21ada25d651c70702b9ecb8d530f188a/volume-63dddedb-f9b1-4b09-9005-a9183184fdef'/><br>
<target dev='vda' bus='virtio'/><br>
<serial>63dddedb-f9b1-4b09-9005-a9183184fdef</serial> <alias<br>
name='virtio-disk0'/> <address type='pci' domain='0x0000' bus='0x00'<br>
slot='0x06' function='0x0'/> </disk><br>
<br>
<disk type='file' device='cdrom'><br>
<driver name='qemu' type='raw' cache='none'/><br>
<source<br>
file='/mnt/instances/73cf44d4-66b3-4610-85ca-10dacb0f888c/disk.config'/><br>
<target dev='hdd' bus='ide'/> <iotune><br>
<total_bytes_sec>1024</total_bytes_sec><br>
<total_iops_sec>20</total_iops_sec><br>
</iotune><br>
<readonly/><br>
<alias name='ide0-1-1'/><br>
<address type='drive' controller='0' bus='1' target='0' unit='1'/><br>
</disk><br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
[ Ohodnotte kvalitu mailu: <a href="http://nicereply.com/websupport/Stano/" target="_blank">http://nicereply.com/websupport/Stano/</a> ]<br>
<br>
Pavel Stano | Troubleshooter<br>
<br>
<a href="http://WebSupport.sk" target="_blank">http://WebSupport.sk</a><br>
*** BERTE A VYCHUTNAVAJTE ***<br>
<br>
</font></span><br>_______________________________________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
Post to : <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
<br></blockquote></div><div class="gmail_default" style="font-family:'courier new',monospace">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.</div>
<div class="gmail_default" style="font-family:'courier new',monospace"><br></div><div class="gmail_default" style="font-family:'courier new',monospace">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.</div>
<div class="gmail_default" style="font-family:'courier new',monospace"><br></div><div class="gmail_default" style="font-family:'courier new',monospace">John</div><br></div></div>