Add generic relation broken hook.
This commit is contained in:
parent
2cb3e8a3e0
commit
7d064697c7
1
hooks/amqp-relation-broken
Symbolic link
1
hooks/amqp-relation-broken
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
nova_compute_hooks.py
|
1
hooks/ceph-relation-broken
Symbolic link
1
hooks/ceph-relation-broken
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
nova_compute_hooks.py
|
1
hooks/cloud-compute-relation-broken
Symbolic link
1
hooks/cloud-compute-relation-broken
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
nova_compute_hooks.py
|
1
hooks/image-service-relation-broken
Symbolic link
1
hooks/image-service-relation-broken
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
nova_compute_hooks.py
|
@ -177,6 +177,16 @@ def ceph_changed():
|
|||||||
CONFIGS.write('/etc/nova/nova.conf')
|
CONFIGS.write('/etc/nova/nova.conf')
|
||||||
|
|
||||||
|
|
||||||
|
@hooks.hook('amqp-relation-broken',
|
||||||
|
'ceph-relation-broken',
|
||||||
|
'cloud-compute-relation-broken',
|
||||||
|
'image-service-relation-broken',
|
||||||
|
'shared-db-relation-broken')
|
||||||
|
@restart_on_change(restart_map())
|
||||||
|
def relation_broken():
|
||||||
|
CONFIGS.write_all()
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
try:
|
try:
|
||||||
hooks.execute(sys.argv)
|
hooks.execute(sys.argv)
|
||||||
|
1
hooks/shared-db-relation-broken
Symbolic link
1
hooks/shared-db-relation-broken
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
nova_compute_hooks.py
|
Loading…
Reference in New Issue
Block a user