Merge "Use a single keypair for multiple instances"

This commit is contained in:
Zuul 2020-01-21 02:56:26 +00:00 committed by Gerrit Code Review
commit ca1340cc44
2 changed files with 12 additions and 1 deletions

View File

@ -132,7 +132,10 @@ class ShareScenarioTest(manager.NetworkScenarioTest):
return share_network
def boot_instance(self, wait_until="ACTIVE"):
self.keypair = self.create_keypair()
# In case of multiple instances, use a single keypair to prevent a keys
# mismatch.
if not hasattr(self, 'keypair'):
self.keypair = self.create_keypair()
security_groups = [{'name': self.security_group['name']}]
create_kwargs = {
'key_name': self.keypair['name'],

View File

@ -0,0 +1,8 @@
---
fixes:
- |
Fixed bug #1858024. Define a signle key for multiple instances.
Currently every instance initialization creates a unique keypair.
An unnecessary resource duplication, when a single user boots more
than one instance.
Depending on test flow this may also cause keypair mismatch.