Merge "Add retries for deleting VMs"
This commit is contained in:
commit
822e7c5fe4
@ -230,7 +230,12 @@ class Compute(object):
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
def delete_server(self, server):
|
def delete_server(self, server):
|
||||||
self.novaclient.servers.delete(server)
|
for _ in range(1, 5):
|
||||||
|
try:
|
||||||
|
self.novaclient.servers.delete(server)
|
||||||
|
except novaclient.exceptions.NotFound:
|
||||||
|
break
|
||||||
|
time.sleep(2)
|
||||||
|
|
||||||
def find_flavor(self, flavor_type):
|
def find_flavor(self, flavor_type):
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user