git.samba.org
/
tridge
/
autocluster.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b4977d
)
Fail if any of the cluster setup tasks fail
author
Amitay Isaacs
<amitay@gmail.com>
Mon, 17 Oct 2016 07:36:33 +0000
(18:36 +1100)
committer
Amitay Isaacs
<amitay@gmail.com>
Tue, 18 Oct 2016 01:15:57 +0000
(12:15 +1100)
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
autocluster
patch
|
blob
|
history
diff --git
a/autocluster
b/autocluster
index b987a1221688179048759ea75c79ba4825a2a979..d086009b2780ec4f479ce119a15d648e1f120aaa 100755
(executable)
--- a/
autocluster
+++ b/
autocluster
@@
-149,7
+149,7
@@
for_each_node ()
{
local n
for n in $NODES ; do
- "$@" $(IFS=: ; echo $n)
+ "$@" $(IFS=: ; echo $n)
|| return 1
done
}
@@
-729,7
+729,8
@@
cluster_setup ()
local stages="install_packages setup_clusterfs setup_node setup_cluster"
local stage
for stage in $stages ; do
- for_each_node _cluster_setup_do_stage "$stage"
+ for_each_node _cluster_setup_do_stage "$stage" || \
+ die "task $stage failed"
done
}