Merge "Use a single keypair for multiple instances"
This commit is contained in:
commit
ca1340cc44
|
@ -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'],
|
||||
|
|
|
@ -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.
|
Loading…
Reference in New Issue