From 5a0dfe23b337ca53420121d279537f5d26d4164d Mon Sep 17 00:00:00 2001 From: Juju Management User Date: Tue, 19 Nov 2013 15:56:02 +0000 Subject: [PATCH] Stop l3-agent when cluster is broken --- hooks/cluster-relation-broken | 1 + hooks/quantum_hooks.py | 1 + 2 files changed, 2 insertions(+) create mode 120000 hooks/cluster-relation-broken diff --git a/hooks/cluster-relation-broken b/hooks/cluster-relation-broken new file mode 120000 index 00000000..9a2da58e --- /dev/null +++ b/hooks/cluster-relation-broken @@ -0,0 +1 @@ +quantum_hooks.py \ No newline at end of file diff --git a/hooks/quantum_hooks.py b/hooks/quantum_hooks.py index c8c7ce64..ca960bb2 100755 --- a/hooks/quantum_hooks.py +++ b/hooks/quantum_hooks.py @@ -134,6 +134,7 @@ def cluster_departed(): CONFIGS.write_all() +@hooks.hook('cluster-relation-broken') @hooks.hook('stop') def stop(): service_stop('neutron-l3-agent')