Commit d0ec3b10 authored by Stavros Sachtouris's avatar Stavros Sachtouris

Retry server create after a new IP is created

parent a81d2b95
......@@ -96,6 +96,8 @@ class ComputeBackend(MyBackend):
print '{ce}, create an IP and retry'.format(ce=ce)
snf_network.create_floatingip(
project_id=kwargs.get('project_id'))
info = snf_compute.create_server(
vm_name, flavor_id, image_id, **kwargs)
else:
raise ce
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment