From 76fe6540d220857982a0e8048658ccf61abe925b Mon Sep 17 00:00:00 2001 From: Claudiu Belu Date: Thu, 31 Aug 2017 11:48:14 -0700 Subject: [PATCH] Increase the test_qos disk usage limit The lowest limit for disk usage for Hyper-V instances is 8 KB/s. Setting it that low, however, can lead to some test timeouts, as the VM may fail to finish booting in time. Increases the QoS limit to 1 MB/s. Change-Id: Iedc8f1add74e4c299f76613a622976b348f278f0 --- oswin_tempest_plugin/tests/scenario/test_qos.py | 4 +++- requirements.txt | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/oswin_tempest_plugin/tests/scenario/test_qos.py b/oswin_tempest_plugin/tests/scenario/test_qos.py index 1871ba1..6748b7e 100644 --- a/oswin_tempest_plugin/tests/scenario/test_qos.py +++ b/oswin_tempest_plugin/tests/scenario/test_qos.py @@ -13,6 +13,8 @@ # License for the specific language governing permissions and limitations # under the License. +from oslo_utils import units + from oswin_tempest_plugin.tests._mixins import optional_feature from oswin_tempest_plugin.tests import test_base @@ -28,4 +30,4 @@ class QosTestCase(test_base.TestBase, """ _FEATURE_FLAVOR = { - 'extra_specs': {'quota:disk_total_bytes_sec': '200'}} + 'extra_specs': {'quota:disk_total_bytes_sec': str(units.Mi)}} diff --git a/requirements.txt b/requirements.txt index 8e24361..26008a7 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,5 +6,6 @@ pbr>=2.0 # Apache-2.0 oslo.config>=4.0.0,!=4.3.0,!=4.4.0 # Apache-2.0 oslo.log>=3.22.0 # Apache-2.0 +oslo.utils>=3.20.0 # Apache-2.0 tempest>=16.1.0 # Apache-2.0 pywinrm>=0.2.2 # MIT