remove test_oversubscribed_server, not useful
This test should fail with Forbidden exception when trying to spawn more servers than allowed vCPU quota is. This is because each vcpu->cpu pinned server requires a dedicated cpu from the host. If spawning 5 servers with 4 pinned vCPUs each it would over allowed in quota or available on the host 16 or 20 pCPU (depending on the setup). Currently when this test is run in parallel (tempest/testr concurrency) to other tests it doesn't hit the quota limits but instead fails with 'no valid host was found' instead of Forbidden exception. Lowering quota will limit other tests so it's not an option either. Change-Id: Ib5fdad6f941ea92864f048938021b16dbb41478c Related-Bug: 1571723
This commit is contained in:
parent
fa18ba6a8e
commit
5e95dcddb2
|
@ -17,7 +17,6 @@ import libvirt
|
|||
import multiprocessing
|
||||
from tempest_lib.common.utils import data_utils
|
||||
from tempest_lib import decorators
|
||||
from tempest_lib import exceptions as lib_exc
|
||||
import testtools
|
||||
import xml.etree.ElementTree as ET
|
||||
|
||||
|
@ -254,15 +253,3 @@ class CPUPolicyTest(base.BaseV2ComputeAdminTest):
|
|||
cpu_pinnings = self._get_cpu_pinning(server)
|
||||
|
||||
self.assertEqual(len(cpu_pinnings), self.vcpus)
|
||||
|
||||
def test_oversubscribed_server(self):
|
||||
flavor = self._create_flavor(
|
||||
cpu_policy='dedicated', cpu_threads_policy='prefer')
|
||||
|
||||
# TODO(sfinucan) - this relies on the fact that the CPU quota
|
||||
# is 20 which isn't truly representative. Find out how to
|
||||
# change the quotas programatically.
|
||||
for _ in xrange(0, 5):
|
||||
self._create_server(flavor)
|
||||
|
||||
self.assertRaises(lib_exc.Forbidden, self._create_server, flavor)
|
||||
|
|
Loading…
Reference in New Issue