From 084ae518236709071f04f3d6e750f0821c3e51bb Mon Sep 17 00:00:00 2001 From: Manuel Buil Date: Tue, 11 Sep 2018 17:40:05 +0200 Subject: 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 --- sfc/lib/openstack_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sfc/lib') 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 -- cgit 1.2.3-korg