1 | Verify CPU cycles/instructions upon enable/disable of perf. | - Get CPU cycles metric from VM.
virsh domstats U2 --perf | grep -e cpu_cycles perf.cpu_cycles=3304247062191 - Compare CPU cycles values from virsh and write plugin (CSV).
- Disable CPU cycles (virsh perf U2 --disable cpu_cycles).
- Enable CPU cycles metric (virsh perf U2 --enable cpu_cycles)
Repeat same for CPU instructions metric.
| - CPU cycles metric retrieved.
- CPU cycles metric is similar.
- CPU cycles metric is not updated by write plugin.
- CPU cycles metric is similar.
- Same as above for CPU instructions metric.
| Pass |
2 | Verify CPU cycles/instructions upon collectd start/stop, change interval. | - Get CPU metrics from VM and collectd write plugin.
- Stop collectd. Get CPU metrics from VM and collectd write plugin.
- Start collectd. Get CPU metrics from VM and collectd write plugin.
- Change interval in range 10-60 seconds (restart collectd).
Get CPU metrics from VM and collectd write plugin.
| - CPU cycles and instructions are updated and similar.
- CPU cycles and instructions are not updated.
- CPU cycles and instructions are updated and similar.
- CPU cycles and instructions are updated every interval set.
| Pass |
3 | Verify CPU cycles/instructions upon libvirtd start/stop, VM start/destroy. | - Get CPU metrics from VM and collectd write plugin.
- Stop libvirtd. Get CPU metrics from VM and collectd write plugin.
- Start libvirtd. Get CPU metrics from VM and collectd write plugin.
- Stop VM (virsh destroy <vm>).
- Start VM (virsh start <vm>).
| - CPU cycles and instructions are updated and similar.
- Metric cannot be retrieved from VM.
- CPU cycles and instructions are updated and similar.
- Metric cannot be retrieved from VM.
- CPU cycles and instructions are updated and similar.
| PASS |
4 | Verify cache misses/references upon enable/disable of perf. | - Get cache misses metric from VM.
virsh domstats U2 --perf | grep -e cache_misses perf.cache_misses=36683 - Compare cache misses values from virsh and write plugin (CSV).
tail -n1 U2/virt/perf-perf_cache_misses-2017-02-15 1487151170.074,36389.000000 - Disable cache misses (virsh perf U2 --disable cache_misses).
- Enable cache misses metric (virsh perf U2 --enable cache_misses)
Repeat same for cache references metric.
| - Cache misses metric retrieved.
- Cache misses metric is similar.
- Cache misses metric is not updated by write plugin.
- Cache misses metric is similar.
- Same as above for cache references metric:
perf.cache_references=1815957 1487151170.074,1795347.000000
| PASS |
5 | Verify cache misses/references upon collectd start/stop, change interval. | - Get cache metrics from VM and collectd write plugin.
- Stop collectd. Get cache metrics from VM and collectd write plugin.
- Start collectd. Get cache metrics from VM and collectd write plugin.
- Change interval in range 10-60 seconds (restart collectd).
Get cache metrics from VM and collectd write plugin.
| - Cache misses/references are updated and similar.
- Cache misses/references are not updated.
- Cache misses/references are updated and similar.
- Cache misses/references are updated every interval set.
| PASS |
6 | Verify cache misses/references upon libvirtd start/stop, VM start/destroy. | - Get cache metrics from VM and collectd write plugin.
- Stop libvirtd. Get cache metrics from VM and collectd write plugin.
- Start libvirtd. Get cache metrics from VM and collectd write plugin.
- Stop VM (virsh destroy <vm>).
- Start VM (virsh start <vm>).
| - Cache misses/references are updated and similar.
- Metric cannot be retrieved from VM.
- Cache misses/references are updated and similar.
- Metric cannot be retrieved from VM.
- Cache misses/references are updated and similar.
| PASS |
7 | Verify disk metrics upon collectd start/stop, change interval. | - Get disk number of operations/bytes read/write metrics from VM and collectd write plugin.
virsh domblkstat --human Ubuntu-QA had [ | grep -e operations -e bytes] tail -n4 disk_octets-hda-2017-02-15 tail -n4 disk_ops-hda-2017-02-15 - Stop collectd. Get disk metrics from VM and collectd write plugin.
- Start collectd. Get disk metrics from VM and collectd write plugin.
- Change interval in range 10-60 seconds. Get disk metrics from VM and collectd write plugin.
| - Disk operations/bytes are updated and similar.
- Disk operations/bytes are not updated.
- Disk operations/bytes are updated and similar.
- Disk operations/bytes are updated every interval set.
| PASS |
8 | Verify disk metrics upon libvirtd start/stop, VM start/destroy. | - Get disk number of operations/bytes read/write metrics from VM and collectd write plugin.
- Stop libvirtd. Get disk metrics from VM and collectd write plugin.
- Start libvirtd. Get disk metrics from VM and collectd write plugin.
- Stop VM (virsh destroy <vm>).
- Start VM (virsh start <vm>).
| - Disk operations/bytes are updated and similar.
- Disk operations/bytes cannot be retrieved from VM.
- Disk operations/bytes are updated and similar.
- Disk operations/bytes cannot be retrieved from VM.
- Disk operations/bytes are updated and similar.
| PASS |
9 | Verify interface metrics upon collectd start/stop, change interval. | - Get interface statistic from VM and collectd write plugin.
virsh domifstat Ubuntu-QA vnet0; ls | grep if_.*vnet0 | xargs -i -t tail -n4 {} (files are: if_dropped-vnet0-2017-02-15; if_errors-vnet0-2017-02-15; if_octets-vnet0-2017-02-15; if_packets-vnet0-2017-02-15) - Stop collectd. Get interface statistic from VM and collectd write plugin.
- Start collectd. Get interface statistic from VM and collectd write plugin.
- Change interval in range 10-60 seconds (restart collectd).
Get interface statistic from VM and collectd write plugin.
| - Interface statistic are updated and similar.
- Interface statistic are not updated.
- Interface statistic are updated and similar.
- Interface statistic are updated every interval set.
| PASS |
10 | Verify interface metrics upon libvirtd start/stop, VM start/destroy. | - Get interface statistic from VM and collectd write plugin.
- Stop libvirtd. Get interface statistic from VM and collectd write plugin.
- Start libvirtd. Get interface statistic from VM and collectd write plugin.
- Stop VM (virsh destroy <vm>).
- Start VM (virsh start <vm>).
| - Interface statistic are updated and similar.
- Interface statistic cannot be retrieved from VM.
- Interface statistic are updated and similar.
- Interface statistic cannot be retrieved from VM.
- Interface statistic are updated and similar.
vnet0 rx_bytes 2098 vnet0 rx_packets 32 vnet0 rx_errs 0 vnet0 rx_drop 0 vnet0 tx_bytes 1402 vnet0 tx_packets 15 vnet0 tx_errs 0 vnet0 tx_drop 0 tail -n1 if_dropped-vnet0-2017-02-15 1487172921.637,0,0 tail -n1 if_errors-vnet0-2017-02-15 1487172921.637,0,0 tail -n1 if_octets-vnet0-2017-02-15 1487172921.637,2098,1402 tail -n1 if_packets-vnet0-2017-02-15 1487172921.637,32,15
| PASS |
11 | Verify memory metrics upon collectd start/stop, change interval. | - Get memory metrics from VM and collectd write plugin.
virsh domstats Ubuntu-QA | grep balloon ; ls | grep memory | xargs -i -t tail -n3 {} (files are: memory-actual_balloon-2017-02-15; memory-last_update-2017-02-15; memory-rss-2017-02-15; memory-swap_in-2017-02-15; memory-total-2017-02-15) - Stop collectd. Get memory metrics from VM and collectd write plugin.
- Make changes to memory configuration (virsh setmem Ubuntu-QA --size 2097152 --live).
- Start collectd. Get memory metrics from VM and collectd write plugin.
- Change interval in range 10-60 seconds (restart collectd).
Get memory metrics from VM and collectd write plugin.
| - Memory metrics are updated and similar.
- Memory metrics are not updated.
- Memory rss, actual metrics are updated in VM. No changes observed in write plugin.
- Memory metrics are updated and similar.
- Memory metrics are updated every interval set.
Notes: (see HAA-1517 for details)- .
- Maximum allowed memory is not dispatched by libvirt 3.1.0.
- Both memory-actual_balloon and memory-total may return same value.
| FAIL Internal JIRA filed |
12 | Verify memory metrics upon VM start/destroy. | - Get memory statistic from VM and collectd write plugin.
- Stop VM (virsh destroy <vm>). Change max memory limit (virsh setmaxmem Ubuntu-QA --size 4194304).
- Start VM (virsh start <vm>). Get memory statistic from VM and collectd write plugin.
| - Memory metrics are updated and similar.
- Memory total metrics updated in configuration but not updated by collectd write plugin.
virsh domstats Ubuntu-QA | grep balloon.maximum - Memory total metrics updated in VM and collectd write plugin.
| PASS |