diff options
author | Manuel Buil <mbuil@suse.com> | 2018-09-11 17:40:05 +0200 |
---|---|---|
committer | Manuel Buil <mbuil@suse.com> | 2018-09-11 17:40:05 +0200 |
commit | 084ae518236709071f04f3d6e750f0821c3e51bb (patch) | |
tree | 22689180805e29a5bec3f0a989a5d7c3427db933 | |
parent | 9ff67de3c3857c7d3bc075133e0da822e455880a (diff) |
Use block=True to avoid race conditions
If we do things asynchronously, the instance might not be ready and the
information we get is not complete (e.g. port missing). Using block=True
fixes the problem
Change-Id: I9f90f52656553b8da8697477250ed631be884196
Signed-off-by: Manuel Buil <mbuil@suse.com>
-rw-r--r-- | sfc/lib/openstack_utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sfc/lib/openstack_utils.py b/sfc/lib/openstack_utils.py index 6d890ebc..dbb217d6 100644 --- a/sfc/lib/openstack_utils.py +++ b/sfc/lib/openstack_utils.py @@ -159,7 +159,7 @@ class OpenStackSFC: instance_settings, image_creator.image_settings) - instance = instance_creator.create() + instance = instance_creator.create(block=True) self.creators.append(instance_creator) return instance, instance_creator |