diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2019-06-20 10:17:36 +0200 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2019-06-20 10:21:36 +0200 |
commit | c948a5443449382883a2544bebcc991cb1234bd3 (patch) | |
tree | bd4bcebe9a68d2411eab8fcf5ad20dadba0152a3 | |
parent | b33429c1f316b9a19c4bf1951eee13b1120874cf (diff) |
Remove quota about instances in shaker
The default quota could be inadequate if lots of computes.
Change-Id: I510d3ebd14c2a910b7be2bacc0b99d3059a7a881
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 234be6e5895a91ca3a83f3bef12a10631bbe6522)
-rw-r--r-- | functest/opnfv_tests/openstack/shaker/shaker.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/functest/opnfv_tests/openstack/shaker/shaker.py b/functest/opnfv_tests/openstack/shaker/shaker.py index 1ee669ce3..fd31ea689 100644 --- a/functest/opnfv_tests/openstack/shaker/shaker.py +++ b/functest/opnfv_tests/openstack/shaker/shaker.py @@ -40,6 +40,7 @@ class Shaker(singlevm.SingleVm2): ssh_connect_loops = 12 create_server_timeout = 300 shaker_timeout = '3600' + quota_instances = -1 def __init__(self, **kwargs): super(Shaker, self).__init__(**kwargs) @@ -82,6 +83,9 @@ class Shaker(singlevm.SingleVm2): "heat_stack_owner", user=self.project.user.id, project=self.project.project.id, domain=self.project.domain.id) + self.orig_cloud.set_compute_quotas( + self.project.project.name, + instances=self.quota_instances) scpc = scp.SCPClient(self.ssh.get_transport()) scpc.put('/home/opnfv/functest/conf/env_file', remote_path='~/') if os.environ.get('OS_CACERT'): |