Instance metrics are not enabled
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
compute-hyperv |
Fix Released
|
Undecided
|
Lucian Petrut |
Bug Description
Hyper-V's metric collection API is extremely inconsistent.
As opposed to disk metrics, network metrics have to be enabled whenever the vm starts. Attempting to do so while the vm is shut off will fail. This option also gets reset when the vm is rebooted.
CPU/memory metrics need to be re-enabled after instance reboots as well. This looks like a Hyper-V bug (which affects 2012R2 as well as WS 2016), since soft shutdowns initiated from the host side don't seem to affect the metrics.
At the moment, networking-hyperv enables port metrics but only when the ports are plugged. For this reason, we won't be able to collect metrics after instance reboots.
Also, we're not enabling metrics for OVS ports at all. Metrics for Cinder volumes aren't enabled either. Note that enabling metrics for passthrough disks isn't supported.
We'll have to workaround those Hyper-V limitations at the Nova driver level.
summary: |
- Port metrics are not enabled + Instance metrics are not enabled |
description: | updated |
Changed in compute-hyperv: | |
assignee: | nobody → Lucian Petrut (petrutlucian94) |
Changed in compute-hyperv: | |
status: | New → In Progress |
Reviewed: https:/ /review. openstack. org/605359 /git.openstack. org/cgit/ openstack/ compute- hyperv/ commit/ ?id=8c44c7a960f 99b582c733118b7 c2d24dcca51b79
Committed: https:/
Submitter: Zuul
Branch: master
commit 8c44c7a960f99b5 82c733118b7c2d2 4dcca51b79
Author: Lucian Petrut <email address hidden>
Date: Wed Sep 26 11:27:17 2018 +0300
Ensure instance metrics get collected
The Hyper-V metric collection API has the following limitations:
* some metrics get disabled when the instance is rebooted (network,
cpu and memory)
* network metrics cannot be enabled while the vm is stopped
* metrics cannot be collected for passthrough disks
* some times, the metric counters are reset when the vms are rebooted.
We can't do much about this Hyper-V bug, which is unfortunately
affecting the reliability of the collected data.
At the same time, OVS ports and Cinder volumes aren't handled at all.
To overcome those issues, this patch brings the following changes:
* re-enable vm metrics each time the vms boot
* enable vm metrics after live migrations
* enable metrics metrics when binding OVS ports (networking-hyperv
will handle 'hyperv' ports)
* enable disk metrics when attaching SMB Cinder volumes, logging a
warning for passthrough disks
Closes-Bug: #1794456 04f0cea2bdd32c8 6ec03d06b67 661f150fa4b12b2 c7eb83ff6d9
Depends-On: Ibe7409b392b912
Depends-On: Iaba32ca94b2c09
Change-Id: I94f2be20b02531 d3ceabdef427220 7e37ef34930