From 66958972da19086a5ce5ec10b83a1500cd40347c Mon Sep 17 00:00:00 2001 From: Itzik Brown Date: Mon, 7 Oct 2019 12:20:58 +0300 Subject: [PATCH] Add subnet_per_namespace config option Change-Id: I0e2f3834bde465560b8d4c4ae375c38b41118000 Depends-on: I49e0f59008894078f9e40198873caa78767ef0b3 --- kuryr_tempest_plugin/config.py | 2 ++ kuryr_tempest_plugin/tests/scenario/test_port_pool.py | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/kuryr_tempest_plugin/config.py b/kuryr_tempest_plugin/config.py index 9807b60d..8e3e92cb 100644 --- a/kuryr_tempest_plugin/config.py +++ b/kuryr_tempest_plugin/config.py @@ -79,4 +79,6 @@ kuryr_k8s_opts = [ help="The label is used to identify the Kuryr controller pods"), cfg.BoolOpt("prepopulation_enabled", default=False, help="Whether prepopulation of ports is enabled"), + cfg.BoolOpt("subnet_per_namespace", default=False, + help="Whether there is a subnet per each namespace"), ] diff --git a/kuryr_tempest_plugin/tests/scenario/test_port_pool.py b/kuryr_tempest_plugin/tests/scenario/test_port_pool.py index 61e3c2fc..cef81bcc 100644 --- a/kuryr_tempest_plugin/tests/scenario/test_port_pool.py +++ b/kuryr_tempest_plugin/tests/scenario/test_port_pool.py @@ -37,8 +37,8 @@ class TestPortPoolScenario(base.BaseKuryrScenarioTest): @classmethod def skip_checks(cls): super(TestPortPoolScenario, cls).skip_checks() - if not CONF.kuryr_kubernetes.namespace_enabled: - raise cls.skipException('Namespace driver and handler must be ' + if not CONF.kuryr_kubernetes.subnet_per_namespace: + raise cls.skipException('Subnet per namespace must be ' 'enabled to run these tests') if not CONF.kuryr_kubernetes.port_pool_enabled: raise cls.skipException(