Tempest: Fixed scenarios for SSH authentication failures

- Bug: 1842072
- SSH is failing on authentication and tempest fails most of the scenario tests.
Enable config_drive that helps in SSH authentication process.

Change-Id: Ia6daebb5f3ccf79eb210657a46fca4f1d2b4fcef
This commit is contained in:
Devang Doshi 2017-03-31 15:49:43 -07:00
parent 7b64469d32
commit 51a64ade39
4 changed files with 8 additions and 0 deletions

View File

@ -62,6 +62,7 @@ class TestAllowedAddressPair(manager.NetworkScenarioTest):
self.cmgr_adm = self.get_client_manager('admin') self.cmgr_adm = self.get_client_manager('admin')
self.keypairs = {} self.keypairs = {}
self.servers = [] self.servers = []
self.config_drive = CONF.compute_feature_enabled.config_drive
def _delete_router(self, router): def _delete_router(self, router):
body = self.ports_client.list_ports(device_id=router['id']) body = self.ports_client.list_ports(device_id=router['id'])
@ -123,6 +124,7 @@ class TestAllowedAddressPair(manager.NetworkScenarioTest):
network = {'uuid': network['id']} network = {'uuid': network['id']}
server = self.create_server(name=name, networks=[network], server = self.create_server(name=name, networks=[network],
key_name=keypair['name'], key_name=keypair['name'],
config_drive=self.config_drive,
security_groups=security_groups, security_groups=security_groups,
image_id=image_id, image_id=image_id,
wait_until='ACTIVE') wait_until='ACTIVE')

View File

@ -73,6 +73,7 @@ class TestMultiHVNetworkOps(manager.NetworkScenarioTest):
self.servers = [] self.servers = []
self.esx_image = CONF.compute.image_ref self.esx_image = CONF.compute.image_ref
self.kvm_image = CONF.compute.image_ref_alt self.kvm_image = CONF.compute.image_ref_alt
self.config_drive = CONF.compute_feature_enabled.config_drive
def _setup_l2_topo(self, **kwargs): def _setup_l2_topo(self, **kwargs):
self.security_group = self._create_security_group() self.security_group = self._create_security_group()
@ -95,6 +96,7 @@ class TestMultiHVNetworkOps(manager.NetworkScenarioTest):
network = {'uuid': network['id']} network = {'uuid': network['id']}
server = self.create_server(name=name, networks=[network], server = self.create_server(name=name, networks=[network],
key_name=keypair['name'], key_name=keypair['name'],
config_drive=self.config_drive,
security_groups=security_groups, security_groups=security_groups,
image_id=image_id, image_id=image_id,
wait_until='ACTIVE') wait_until='ACTIVE')

View File

@ -72,6 +72,7 @@ class TestMultiNetworksOps(manager.NetworkScenarioTest):
super(TestMultiNetworksOps, self).setUp() super(TestMultiNetworksOps, self).setUp()
self.keypairs = {} self.keypairs = {}
self.servers = [] self.servers = []
self.config_drive = CONF.compute_feature_enabled.config_drive
def _setup_networks_and_servers(self, **kwargs): def _setup_networks_and_servers(self, **kwargs):
boot_with_port = kwargs.pop('boot_with_port', False) boot_with_port = kwargs.pop('boot_with_port', False)
@ -141,6 +142,7 @@ class TestMultiNetworksOps(manager.NetworkScenarioTest):
network['port'] = port_id network['port'] = port_id
server = self.create_server(name=name, networks=[network], server = self.create_server(name=name, networks=[network],
key_name=keypair['name'], key_name=keypair['name'],
config_drive=self.config_drive,
security_groups=security_groups, security_groups=security_groups,
image_id=image_id, image_id=image_id,
wait_until='ACTIVE') wait_until='ACTIVE')

View File

@ -62,6 +62,7 @@ class TestNSXv3PortSecurityScenario(manager.NetworkScenarioTest):
self.cmgr_adm = self.get_client_manager('admin') self.cmgr_adm = self.get_client_manager('admin')
self.keypairs = {} self.keypairs = {}
self.servers = [] self.servers = []
self.config_drive = CONF.compute_feature_enabled.config_drive
def _delete_router(self, router): def _delete_router(self, router):
body = self.ports_client.list_ports(device_id=router['id']) body = self.ports_client.list_ports(device_id=router['id'])
@ -125,6 +126,7 @@ class TestNSXv3PortSecurityScenario(manager.NetworkScenarioTest):
network['port'] = port_id network['port'] = port_id
server = self.create_server(name=name, networks=[network], server = self.create_server(name=name, networks=[network],
key_name=keypair['name'], key_name=keypair['name'],
config_drive=self.config_drive,
security_groups=security_groups, security_groups=security_groups,
image_id=image_id, image_id=image_id,
wait_until='ACTIVE') wait_until='ACTIVE')