diff options
| author | Russell Bryant <rbryant@redhat.com> | 2012-01-30 18:29:04 -0500 |
|---|---|---|
| committer | Russell Bryant <rbryant@redhat.com> | 2012-01-31 13:00:28 -0500 |
| commit | bd32abf9bc9d628f6fed510c223689de9aa8b76d (patch) | |
| tree | 1a8593e2c0e74f159bc366de0c324ca96237bb90 /bin | |
| parent | 59c0a723cc6d9e0c298d581952bde6853c2288c7 (diff) | |
Clear out RPC connection pool before exit.
Fixes bug 767984.
This patch ensures that pooled connections to a messaging system get
cleaned up before a process that has used the RPC API exits.
Change-Id: I56eca54334075378534a7a5d3434c420319672b4
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/nova-dhcpbridge | 3 | ||||
| -rwxr-xr-x | bin/nova-manage | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/bin/nova-dhcpbridge b/bin/nova-dhcpbridge index e5ce64c11..ae77fc7b1 100755 --- a/bin/nova-dhcpbridge +++ b/bin/nova-dhcpbridge @@ -125,5 +125,8 @@ def main(): print init_leases(network_id) + rpc.cleanup() + + if __name__ == "__main__": main() diff --git a/bin/nova-manage b/bin/nova-manage index 1275d72d9..b899dab40 100755 --- a/bin/nova-manage +++ b/bin/nova-manage @@ -2354,6 +2354,7 @@ def main(): # call the action with the remaining arguments try: fn(*fn_args, **fn_kwargs) + rpc.cleanup() sys.exit(0) except TypeError: print _("Possible wrong number of arguments supplied") |
