ctdb-scripts: NFS call-out failures should cause event failure
authorMartin Schwenke <martin@meltin.net>
Thu, 8 Jun 2017 04:45:43 +0000 (14:45 +1000)
committerMartin Schwenke <martins@samba.org>
Tue, 13 Jun 2017 07:12:19 +0000 (09:12 +0200)
Failures in startup/shutdown/releaseip/takeip are currently
incorrectly ignored.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12837

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/config/events.d/60.nfs

index eaa260b700552f83e5a2517dd052a6828897c658..9b64d6e408fe203e58d91cb645377c178a4ac2df 100755 (executable)
@@ -256,20 +256,20 @@ is_ctdb_managed_service || exit 0
 
 case "$1" in
 startup)
-       nfs_callout "$@"
+       nfs_callout "$@" || exit $?
        ;;
 
 shutdown)
-        nfs_callout "$@"
+       nfs_callout "$@" || exit $?
        ;;
 
 takeip)
-       nfs_callout "$@"
+       nfs_callout "$@" || exit $?
        ctdb_service_set_reconfigure
        ;;
 
 releaseip)
-       nfs_callout "$@"
+       nfs_callout "$@" || exit $?
        ctdb_service_set_reconfigure
        ;;