QoS on Juno with RBD backend dont work for VM
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Confirmed
|
Wishlist
|
Steve Singer |
Bug Description
Hi,
QoS for volume work with RBD but not for VM. So to solve this problem, you need to pass quota:disk_
At ligne 645/usr/
Ex:
def libvirt_info(self, disk_bus, disk_dev, device_type, cache_mode,
...
if auth_enabled:
+ tune_items = ['disk_
+ 'disk_write_
+ 'disk_total_
+ for key, value in extra_specs.
+ scope = key.split(':')
+ if len(scope) > 1 and scope[0] == 'quota':
+ if scope[1] in tune_items:
+ setattr(info, scope[1], value)
return info
after this patch, if you «dumpxml VM ID» with virsh you got the missing <iotune>
Ex:
virsh # dumpxml 2
...
<disk type='network' device='disk'>
<driver name='qemu' type='raw' cache='writeback'/>
<auth username='cinder'>
<secret type='ceph' uuid='9b576159-
</auth>
<source protocol='rbd' name='vms/
<host name='192.
<host name='192.
<host name='192.
</source>
<target dev='vda' bus='virtio'/>
<iotune>
</iotune>
<alias name='virtio-
<address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
</disk>
...
Voilà...
Ivan
tags: | added: quotas |
tags: | added: low-hanging-fruit |
tags: | removed: quotas |
Changed in nova: | |
assignee: | nobody → Steve Singer (z80asmftw) |
If you would like to submit a patch for this, please follow the instructions in: https:/ /github. com/openstack/ nova/blob/ master/ CONTRIBUTING. rst