diff options
author | meghana <mmadhusu@redhat.com> | 2015-06-05 02:56:26 +0530 |
---|---|---|
committer | Kaleb KEITHLEY <kkeithle@redhat.com> | 2015-06-11 13:07:45 -0700 |
commit | 9eef639e19c01712aaadfffda22aef795bf1dfeb (patch) | |
tree | a1d9611ced320930e732614e7b28131f93eb8550 /extras | |
parent | 076e869c65dbe2ef9fa34b05756d23849ae4e852 (diff) |
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 <mmadhusu@redhat.com>
Reviewed-on: http://review.gluster.org/11093
Reviewed-by: soumya k <skoduri@redhat.com>
Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'extras')
-rwxr-xr-x | extras/ganesha/scripts/ganesha-ha.sh | 3 |
1 files changed, 2 insertions, 1 deletions
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 |