deal with lazy-clocked controllernetwork objects
diff --git a/xos/openstack_observer/steps/sync_network_slivers.py b/xos/openstack_observer/steps/sync_network_slivers.py
index 62eb513..bbf3e8c 100644
--- a/xos/openstack_observer/steps/sync_network_slivers.py
+++ b/xos/openstack_observer/steps/sync_network_slivers.py
@@ -151,6 +151,11 @@
logger.log_exc("no controllernetwork for %s" % networkSliver)
continue
cn=cn[0]
+ if cn.lazy_blocked:
+ cn.lazy_blocked=False
+ cn.save()
+ logger.info("deferring networkSliver %s because controller was lazy-blocked" % networkSliver)
+ continue
try:
# We need to use a client driver that specifies the tenant
# of the destination sliver. Nova-compute will not connect