From b7e894b1962d272dfebc42427f7b7ce0f737d065 Mon Sep 17 00:00:00 2001 From: Jason Kölker Date: Thu, 22 Mar 2012 17:41:58 -0500 Subject: Do not fail on notify when quantum and melange are out of sync. This patch adds the `ignore_missing_network_data` flag which will log exceptions rather than raising them when generating usage exists notifications. Change-Id: Ie11bc9028790c2d1b3de1f4709a9e17a67e06f26 --- bin/instance-usage-audit | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin/instance-usage-audit') diff --git a/bin/instance-usage-audit b/bin/instance-usage-audit index 48ded73cf..5b30c3586 100755 --- a/bin/instance-usage-audit +++ b/bin/instance-usage-audit @@ -78,7 +78,8 @@ if __name__ == '__main__': for instance_ref in instances: try: nova.compute.utils.notify_usage_exists( - admin_context, instance_ref, safe=False) + admin_context, instance_ref, + ignore_missing_network_data=False) except Exception, e: print traceback.format_exc(e) print "Instance usage audit completed" -- cgit