sbd: Wait for cluster to be up after corosync restart
Every time we start corosync, we need to wait for the cluster to be up. And when we use sbd, we restart corosync to start sbd, so we need to wait there too.
This commit is contained in:
@@ -68,6 +68,8 @@ when "sbd"
|
|||||||
# We want to allocate slots before restarting corosync
|
# We want to allocate slots before restarting corosync
|
||||||
notifies :run, "execute[Allocate SBD slot]", :immediately
|
notifies :run, "execute[Allocate SBD slot]", :immediately
|
||||||
notifies :restart, "service[#{node[:corosync][:platform][:service_name]}]", :immediately
|
notifies :restart, "service[#{node[:corosync][:platform][:service_name]}]", :immediately
|
||||||
|
# After restarting corosync, we need to wait for the cluster to be online again
|
||||||
|
notifies :create, "ruby_block[wait for cluster to be online]", :immediately
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user