Skip to content

Commit

Permalink
ctdb-scripts: NFS call-out failures should cause event failure
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Amitay Isaacs <[email protected]>
  • Loading branch information
martin-schwenke authored and Martin Schwenke committed Jun 13, 2017
1 parent 67095c7 commit 22f2068
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ctdb/config/events.d/60.nfs
Original file line number Diff line number Diff line change
Expand Up @@ -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
;;

Expand Down

0 comments on commit 22f2068

Please sign in to comment.