Disk QoS is not available on versions prior to WS 2012 R2.
Because of this and the fact that the driver attempts to set IOPS
limits even if those are not specified, spawning instances currently
fails when using previous HyperV versions.
This patch fixes the issues by skipping setting QoS specs when
this feature is not supported, logging a warning.
Closes-Bug: #1463317
Change-Id: I086f3a034ffcc56a09a5ecf3e9a142cc86e67c41
(cherry picked from commit b97666aa6d897280a6a31d5ff6fd8d9eab3b7a4d)
Reviewed: https:/ /review. openstack. org/190177 /git.openstack. org/cgit/ stackforge/ compute- hyperv/ commit/ ?id=36d6cf9cc20 232e854c9794de7 35c46e3d67c2f5
Committed: https:/
Submitter: Jenkins
Branch: stable/kilo
commit 36d6cf9cc20232e 854c9794de735c4 6e3d67c2f5
Author: Lucian Petrut <email address hidden>
Date: Mon Jun 8 19:08:24 2015 +0300
Fix QoS issues caused by unsupported OS versions
Disk QoS is not available on versions prior to WS 2012 R2.
Because of this and the fact that the driver attempts to set IOPS
limits even if those are not specified, spawning instances currently
fails when using previous HyperV versions.
This patch fixes the issues by skipping setting QoS specs when
this feature is not supported, logging a warning.
Closes-Bug: #1463317
Change-Id: I086f3a034ffcc5 6a09a5ecf3e9a14 2cc86e67c41 0a6a31d5ff6fd8d 9eab3b7a4d)
(cherry picked from commit b97666aa6d89728