Add flavor fetching in migration
To be able to migrate correctly I am getting first flavor to boot to. Change-Id: I067f660e444b1d7d29c0baf97323cc27880b1d99 Closes-bug: 1632281
This commit is contained in:
parent
1d73337676
commit
7cf3599dfb
|
@ -146,8 +146,10 @@ class OpenStackActions(common.Common):
|
|||
|
||||
def create_server_for_migration(self, neutron=True, scenario='',
|
||||
timeout=100, filename=None, key_name=None,
|
||||
label=None, flavor=1, **kwargs):
|
||||
label=None, flavor=None, **kwargs):
|
||||
name = "test-serv" + str(random.randint(1, 0x7fffffff))
|
||||
if flavor is None:
|
||||
flavor = self.nova.flavors.list()[0].id
|
||||
security_group = {}
|
||||
try:
|
||||
if scenario:
|
||||
|
|
Loading…
Reference in New Issue