Hi guys,
I tried to play with the new rate-limiting feature however it doesn't work.
See below my setup.
root@openstack:~# uname -a
Linux openstack 3.8.0-33-generic #48~precise1-Ubuntu SMP Thu Oct 24 16:28:06 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
root@openstack:~# dpkg -l |grep -E 'nova|glance|cinder|libvirt'
ii cinder-api 1:2013.2-0ubuntu1~cloud0 Cinder storage service - API server
ii cinder-common 1:2013.2-0ubuntu1~cloud0 Cinder storage service - common files
ii cinder-scheduler 1:2013.2-0ubuntu1~cloud0 Cinder storage service - Scheduler server
ii cinder-volume 1:2013.2-0ubuntu1~cloud0 Cinder storage service - Volume server
ii glance 1:2013.2-0ubuntu1~cloud0 OpenStack Image Registry and Delivery Service - Daemons
ii glance-api 1:2013.2-0ubuntu1~cloud0 OpenStack Image Registry and Delivery Service - API
ii glance-common 1:2013.2-0ubuntu1~cloud0 OpenStack Image Registry and Delivery Service - Common
ii glance-registry 1:2013.2-0ubuntu1~cloud0 OpenStack Image Registry and Delivery Service - Registry
ii libvirt-bin 1.1.1-0ubuntu8~cloud2 programs for the libvirt library
ii libvirt0 1.1.1-0ubuntu8~cloud2 library for interfacing with different virtualization systems
ii nova-api 1:2013.2-0ubuntu1~cloud0 OpenStack Compute - API frontend
ii nova-cert 1:2013.2-0ubuntu1~cloud0 OpenStack Compute - certificate management
ii nova-common 1:2013.2-0ubuntu1~cloud0 OpenStack Compute - common files
ii nova-compute 1:2013.2-0ubuntu1~cloud0 OpenStack Compute - compute node
ii nova-compute-kvm 1:2013.2-0ubuntu1~cloud0 OpenStack Compute - compute node (KVM)
ii nova-conductor 1:2013.2-0ubuntu1~cloud0 OpenStack Compute - conductor service
ii nova-consoleauth 1:2013.2-0ubuntu1~cloud0 OpenStack Compute - Console Authenticator
ii nova-network 1:2013.2-0ubuntu1~cloud0 OpenStack Compute - Network manager
ii nova-novncproxy 1:2013.2-0ubuntu1~cloud0 OpenStack Compute - NoVNC proxy
ii nova-scheduler 1:2013.2-0ubuntu1~cloud0 OpenStack Compute - virtual machine scheduler
ii python-cinder 1:2013.2-0ubuntu1~cloud0 Cinder Python libraries
ii python-cinderclient 1:1.0.6-0ubuntu1~cloud0 python bindings to the OpenStack Volume API
ii python-glance 1:2013.2-0ubuntu1~cloud0 OpenStack Image Registry and Delivery Service - Python library
ii python-glanceclient 1:0.11.0-0ubuntu1~cloud0 Client library for Openstack glance server.
ii python-libvirt 1.1.1-0ubuntu8~cloud2 libvirt Python bindings
ii python-nova 1:2013.2-0ubuntu1~cloud0 OpenStack Compute Python libraries
ii python-novaclient 1:2.15.0-0ubuntu1~cloud0 client library for OpenStack Compute API
root@openstack:~# cinder qos-create high-read-low-write consumer="front-end" read_iops_sec=20 write_iops_sec=5
+----------+----------------------------------------------------+
| Property | Value |
+----------+----------------------------------------------------+
| consumer | front-end |
| id | c5f2119e-3709-43c3-8eb3-4f90d9b3ea4a |
| name | high-read-low-write |
| specs | {u'write_iops_sec': u'5', u'read_iops_sec': u'20'} |
+----------+----------------------------------------------------+
root@openstack:~# cinder type-create slow
+--------------------------------------+------+
| ID | Name |
+--------------------------------------+------+
| d3080d3c-34d4-43af-8f05-b5921963537a | slow |
+--------------------------------------+------+
root@openstack:~# cinder qos-associate c5f2119e-3709-43c3-8eb3-4f90d9b3ea4a d3080d3c-34d4-43af-8f05-b5921963537a
root@openstack:~# cinder create --display-name slow --volume-type slow 1
+---------------------+--------------------------------------+
| Property | Value |
+---------------------+--------------------------------------+
| attachments | [] |
| availability_zone | nova |
| bootable | false |
| created_at | 2013-12-11T10:18:55.463877 |
| display_description | None |
| display_name | slow |
| id | 58b47e19-0368-4c06-addc-a967760f4d60 |
| metadata | {} |
| size | 1 |
| snapshot_id | None |
| source_volid | None |
| status | creating |
| volume_type | slow |
+---------------------+--------------------------------------+
root@openstack:~# cinder create --display-name slow --volume-type slow 1
+---------------------+--------------------------------------+
| Property | Value |
+---------------------+--------------------------------------+
| attachments | [] |
| availability_zone | nova |
| bootable | false |
| created_at | 2013-12-11T10:21:14.377581 |
| display_description | None |
| display_name | slow |
| id | 2e589abc-a008-4433-89ae-1bb142b139e3 |
| metadata | {} |
| size | 1 |
| snapshot_id | None |
| source_volid | None |
| status | creating |
| volume_type | slow |
+---------------------+--------------------------------------+
root@openstack:~# cinder list
+--------------------------------------+-----------+--------------+------+-------------+----------+-------------+
| ID | Status | Display Name | Size | Volume Type | Bootable | Attached to |
+--------------------------------------+-----------+--------------+------+-------------+----------+-------------+
| 2e589abc-a008-4433-89ae-1bb142b139e3 | available | slow | 1 | slow | false | |
+--------------------------------------+-----------+--------------+------+-------------+----------+-------------+
root@openstack:~# nova list
+--------------------------------------+------+--------+------------+-------------+----------------+
| ID | Name | Status | Task State | Power State | Networks |
+--------------------------------------+------+--------+------------+-------------+----------------+
| 4601cdd3-9cf9-4bd3-bf0c-0c95cb4a2322 | vm | ACTIVE | None | Running | vmnet=10.0.0.2 |
+--------------------------------------+------+--------+------------+-------------+----------------+
root@openstack:~# nova volume-attach vm 2e589abc-a008-4433-89ae-1bb142b139e3 /dev/vdb
+----------+--------------------------------------+
| Property | Value |
+----------+--------------------------------------+
| device | /dev/vdb |
| serverId | 4601cdd3-9cf9-4bd3-bf0c-0c95cb4a2322 |
| id | 2e589abc-a008-4433-89ae-1bb142b139e3 |
| volumeId | 2e589abc-a008-4433-89ae-1bb142b139e3 |
+----------+--------------------------------------+
root@openstack:~# virsh list
Id Name State
----------------------------------------------------
2 instance-00000002 running
root@openstack:~# virsh xmldump instance-00000002
error: unknown command: 'xmldump'
root@openstack:~# virsh dumpxml instance-00000002
instance-00000002
4601cdd3-9cf9-4bd3-bf0c-0c95cb4a2322
131072
131072
1
/machine
OpenStack Foundation
OpenStack Nova
2013.2
a81b78b3-4044-4157-acd2-3b8c2939f915
4601cdd3-9cf9-4bd3-bf0c-0c95cb4a2322
hvm
destroy
restart
destroy
/usr/bin/qemu-system-x86_64
2e589abc-a008-4433-89ae-1bb142b139e3
libvirt-4601cdd3-9cf9-4bd3-bf0c-0c95cb4a2322
This is a bit redundant but this is the nova's log:
2013-12-11 10:22:27.712 DEBUG nova.virt.libvirt.config [req-4f87e00d-8a8b-4e23-8652-055c28e399bb admin admin] Generated XML
2e589abc-a008-4433-89ae-1bb142b139e3
After discussing and debugging this with winston-d, he found the bug.