defer sync_network_slivers if network.net_id is not set
diff --git a/xos/openstack_observer/steps/sync_network_slivers.py b/xos/openstack_observer/steps/sync_network_slivers.py
index bbf3e8c..c46ca55 100644
--- a/xos/openstack_observer/steps/sync_network_slivers.py
+++ b/xos/openstack_observer/steps/sync_network_slivers.py
@@ -154,7 +154,10 @@
if cn.lazy_blocked:
cn.lazy_blocked=False
cn.save()
- logger.info("deferring networkSliver %s because controller was lazy-blocked" % networkSliver)
+ logger.info("deferring networkSliver %s because controllerNetwork was lazy-blocked" % networkSliver)
+ continue
+ if not cn.net_id:
+ logger.info("deferring networkSliver %s because controllerNetwork does not have a port-id yet" % networkSliver)
continue
try:
# We need to use a client driver that specifies the tenant