Sometimes, backend_status can fail because of unicode issues. Ignore
for now.
diff --git a/planetstack/openstack_observer/syncstep.py b/planetstack/openstack_observer/syncstep.py
index 4852e43..ad148b5 100644
--- a/planetstack/openstack_observer/syncstep.py
+++ b/planetstack/openstack_observer/syncstep.py
@@ -93,10 +93,15 @@
except:
o.backend_status = str_e
+ # TOFIX:
+ # DatabaseError: value too long for type character varying(140)
if (o.pk):
- o.save(update_fields=['backend_status'])
+ try:
+ o.save(update_fields=['backend_status'])
+ except:
+ print "Could not update backend status field!"
+ pass
- logger.log_exc("sync step failed!")
failed.append(o)
return failed