From 9e918baeebec0452cfbc5ea29a430dead7a90290 Mon Sep 17 00:00:00 2001 From: Devang Doshi Date: Fri, 31 Mar 2017 00:52:42 -0700 Subject: [PATCH] Tempest: Fixed SSH authentication failures - Bug: 1842072 - SSH is failing on authentication and tempest fails most of teh scenario tests. Enable config_drive that helps in SSH authentication process. {0} vmware_nsx_tempest.tests.nsxv3.scenario.test_router_nonat_ops.TestRouterNoNATOps.test_router_nat_to_nonat_ops [62.797269s] ... ok {0} vmware_nsx_tempest.tests.nsxv3.scenario.test_router_nonat_ops.TestRouterNoNATOps.test_router_nonat_to_nat_ops [57.847237s] ... ok {0} vmware_nsx_tempest.tests.scenario.test_micro_segmentation_ops.TestMicroSegmentationOps.test_micro_segmentation_ops [158.792695s] ... ok {0} vmware_nsx_tempest.tests.nsxv3.scenario.test_provider_security_group.TestProviderSecurityGroup.test_connectivity_between_default_psg_server_with_multi_networks [145.160816s] ... ok {0} vmware_nsx_tempest.tests.nsxv3.scenario.test_provider_security_group.TestProviderSecurityGroup.test_connectivity_between_default_psg_servers [130.565559s] ... ok {0} vmware_nsx_tempest.tests.nsxv3.scenario.test_provider_security_group.TestProviderSecurityGroup.test_ping_when_psg_enabled_disbaled_on_port [100.127173s] ... ok {0} vmware_nsx_tempest.tests.nsxv3.scenario.test_provider_security_group.TestProviderSecurityGroup.test_vm_connectivity_port_update_with_psg [92.680194s] ... ok Change-Id: Ieae5ef0c38b32b3ae2e9b862d41ce2c76c34cfb1 --- .../tests/nsxv3/scenario/test_provider_security_group.py | 2 ++ .../tests/nsxv3/scenario/test_router_nonat_ops.py | 2 ++ .../tests/scenario/test_micro_segmentation_ops.py | 2 ++ 3 files changed, 6 insertions(+) diff --git a/vmware_nsx_tempest/tests/nsxv3/scenario/test_provider_security_group.py b/vmware_nsx_tempest/tests/nsxv3/scenario/test_provider_security_group.py index 40b68a2ff6..341d001932 100644 --- a/vmware_nsx_tempest/tests/nsxv3/scenario/test_provider_security_group.py +++ b/vmware_nsx_tempest/tests/nsxv3/scenario/test_provider_security_group.py @@ -68,6 +68,7 @@ class TestProviderSecurityGroup(manager.NetworkScenarioTest): self.cmgr_adm = self.get_client_manager('admin') self.keypairs = {} self.servers = [] + self.config_drive = CONF.compute_feature_enabled.config_drive def create_security_provider_group(self, cmgr=None, project_id=None, provider=False): @@ -147,6 +148,7 @@ class TestProviderSecurityGroup(manager.NetworkScenarioTest): network = {'uuid': network['id']} server = self.create_server(name=name, networks=[network], key_name=keypair['name'], + config_drive=self.config_drive, security_groups=security_groups, image_id=image_id, wait_until='ACTIVE') diff --git a/vmware_nsx_tempest/tests/nsxv3/scenario/test_router_nonat_ops.py b/vmware_nsx_tempest/tests/nsxv3/scenario/test_router_nonat_ops.py index 87c6b14667..68f4117032 100644 --- a/vmware_nsx_tempest/tests/nsxv3/scenario/test_router_nonat_ops.py +++ b/vmware_nsx_tempest/tests/nsxv3/scenario/test_router_nonat_ops.py @@ -74,6 +74,7 @@ class TestRouterNoNATOps(manager.NetworkScenarioTest): super(TestRouterNoNATOps, self).setUp() self.keypairs = {} self.servers = [] + self.config_drive = CONF.compute_feature_enabled.config_drive def _setup_network_topo(self, enable_snat=None): self.security_group = self._create_security_group() @@ -139,6 +140,7 @@ class TestRouterNoNATOps(manager.NetworkScenarioTest): network = {'uuid': network['id']} server = self.create_server(name=name, networks=[network], key_name=keypair['name'], + config_drive=self.config_drive, security_groups=security_groups, image_id=image_id, wait_until='ACTIVE') diff --git a/vmware_nsx_tempest/tests/scenario/test_micro_segmentation_ops.py b/vmware_nsx_tempest/tests/scenario/test_micro_segmentation_ops.py index a050b35c82..e372958a65 100644 --- a/vmware_nsx_tempest/tests/scenario/test_micro_segmentation_ops.py +++ b/vmware_nsx_tempest/tests/scenario/test_micro_segmentation_ops.py @@ -67,6 +67,7 @@ class TestMicroSegmentationOps(manager.NetworkScenarioTest): def setUp(self): super(TestMicroSegmentationOps, self).setUp() self.keypairs = {} + self.config_drive = CONF.compute_feature_enabled.config_drive def _create_security_groups(self): web_sg = self._create_empty_security_group(namestart="secgroup-web") @@ -187,6 +188,7 @@ class TestMicroSegmentationOps(manager.NetworkScenarioTest): network = {'uuid': network['id']} server = self.create_server(name=name, networks=[network], key_name=keypair['name'], + config_drive=self.config_drive, security_groups=security_groups, image_id=image_id, wait_until='ACTIVE')