diff options
| author | Jason Kölker <jason@koelker.net> | 2012-03-22 17:41:58 -0500 |
|---|---|---|
| committer | Rick Harris <rconradharris@gmail.com> | 2012-05-08 12:52:44 -0500 |
| commit | b7e894b1962d272dfebc42427f7b7ce0f737d065 (patch) | |
| tree | 91bfdd552ae3eeb2526f10c9f02781dfcad489b1 /bin/instance-usage-audit | |
| parent | 7ad7e9049c651367e8a864863cde5f75fa45b5c9 (diff) | |
| download | nova-b7e894b1962d272dfebc42427f7b7ce0f737d065.tar.gz nova-b7e894b1962d272dfebc42427f7b7ce0f737d065.tar.xz nova-b7e894b1962d272dfebc42427f7b7ce0f737d065.zip | |
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
Diffstat (limited to 'bin/instance-usage-audit')
| -rwxr-xr-x | bin/instance-usage-audit | 3 |
1 files changed, 2 insertions, 1 deletions
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" |
