en HA RPC doit être accessible sur eth0
This commit is contained in:
@ -428,13 +428,10 @@ function manage_datastores()
|
||||
}
|
||||
|
||||
function init_ha() {
|
||||
onezone show 0 | grep -A 2 ^"HA & FEDERATION SYNC STATUS" | tail -n 1 | grep -q ^" 0 "
|
||||
# server with index 1 exists if already instanciate
|
||||
onezone show 0 | grep -A 3 ^"HA & FEDERATION SYNC STATUS" | tail -n 1 | grep -q ^" 1 "
|
||||
if [ ! $? = 0 ]; then
|
||||
# server 0 not displayed with onezone
|
||||
SERVER=$(CreoleGet one_master)
|
||||
DOMAIN=$(CreoleGet nom_domaine_machine)
|
||||
FOLLOWER=$(CreoleGet one_followers_domain)
|
||||
onezone server-add 0 --name $SERVER --rpc http://$DOMAIN:2633/RPC2
|
||||
for follower in $FOLLOWER; do
|
||||
onezone server-add 0 --name $follower --rpc http://$follower:2633/RPC2
|
||||
done
|
||||
|
Reference in New Issue
Block a user