From 9eef639e19c01712aaadfffda22aef795bf1dfeb Mon Sep 17 00:00:00 2001 From: meghana Date: Fri, 5 Jun 2015 02:56:26 +0530 Subject: common-ha : Clean up persistent cib state Pacemaker saves old configurations in the directory, "/var/lib/pacemaker/cib". It's good to clean up this directory during teardown so that old data doesn't show up the next time. Change-Id: If0f413ba2da599dd6672b51e60e1d35e674d576b BUG: 1228415 Signed-off-by: meghana Reviewed-on: http://review.gluster.org/11093 Reviewed-by: soumya k Reviewed-by: Kaleb KEITHLEY Tested-by: Gluster Build System --- extras/ganesha/scripts/ganesha-ha.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'extras/ganesha/scripts') diff --git a/extras/ganesha/scripts/ganesha-ha.sh b/extras/ganesha/scripts/ganesha-ha.sh index bd344fa50f1..684b8bf679d 100755 --- a/extras/ganesha/scripts/ganesha-ha.sh +++ b/extras/ganesha/scripts/ganesha-ha.sh @@ -246,7 +246,8 @@ teardown_clean_etccluster() if [ -e /var/lib/glusterd/nfs/secret.pem ]; then while [[ ${1} ]]; do if [ ${short_host} != ${1} ]; then - ssh -oPasswordAuthentication=no -oStrictHostKeyChecking=no -i /var/lib/glusterd/nfs/secret.pem ${1} rm -f /etc/cluster/cluster.* + ssh -oPasswordAuthentication=no -oStrictHostKeyChecking=no -i /var/lib/glusterd/nfs/secret.pem ${1} \ +rm -f /etc/cluster/cluster.* rm -f /var/lib/pacemaker/cib/* if [ $? -ne 0 ]; then logger "warning: ssh ${1} rm -f /etc/cluster/cluster.* failed" fi -- cgit