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
This commit is contained in:
Devang Doshi 2017-03-31 00:52:42 -07:00
parent 8cd61d0fe8
commit 9e918baeeb
3 changed files with 6 additions and 0 deletions

View File

@ -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')

View File

@ -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')

View File

@ -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')