CLOUDSTACK-9929: Do not gather statistics for CDROM or FLOPPY devices - #2131
Conversation
Libvirt / Qemu (KVM) does not collect statistics about these either. On some systems it might even yield a 'internal error' from libvirt when attempting to gather block statistics from such devices. For example Ubuntu 16.04 (Xenial) has a issue with this. Skip them when looping through all devices. Signed-off-by: Wido den Hollander <wido@widodh.nl>
|
Thanks for the fix @wido |
|
@borisstoyanov a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-754 |
|
@blueorangutan test |
|
@borisstoyanov a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-1139)
|
borisstoyanov
left a comment
There was a problem hiding this comment.
Tests and code LGTM
|
Thanks @wido, tested it LGTM |
|
@rhtyd: Can you merge it into 4.9 and forward into master? |
|
LGTM, merging now. |
|
This PR was merged into 4.9 but wasn't merged forward into 4.10 it seems. We need to fix that. |
|
@wido checked, this was forward merged on master. The changes are on both 4.10 and master. |
We get "internal error: cannot find statistics for device ..." error for CDROM or Floppy. This is same with apache/cloudstack#2131
Libvirt / Qemu (KVM) does not collect statistics about these either.
On some systems it might even yield a 'internal error' from libvirt
when attempting to gather block statistics from such devices.
For example Ubuntu 16.04 (Xenial) has a issue with this.
Skip them when looping through all devices.
Signed-off-by: Wido den Hollander wido@widodh.nl