From a5ada3f363276f575122402feb6d8ab16964e7ae Mon Sep 17 00:00:00 2001 From: Jayapal Date: Tue, 20 Aug 2013 17:17:15 +0530 Subject: [PATCH] CLOUDSTACK-4199 Fixed redundant router fail over When master router down, the back up router is entered into FAIL state but it supposed to enter into master. This issue is happening because the the enable_pubip.sh script triying to ifdown and ifup the eth2 interface. Which is failed. So master.sh script got failed. Fixed by doing ifdown force --- patches/systemvm/debian/config/etc/init.d/cloud-early-config | 4 ++-- .../debian/config/root/redundant_router/enable_pubip.sh.templ | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/patches/systemvm/debian/config/etc/init.d/cloud-early-config b/patches/systemvm/debian/config/etc/init.d/cloud-early-config index 5aa96218a06..0a76b7fff76 100755 --- a/patches/systemvm/debian/config/etc/init.d/cloud-early-config +++ b/patches/systemvm/debian/config/etc/init.d/cloud-early-config @@ -484,7 +484,7 @@ disable_hvc() { enable_vpc_rpsrfs() { local enable=$1 - if [ $eanble -eq 0] + if [ $enable -eq 0 ] then echo 0 > /etc/rpsrfsenable else @@ -497,7 +497,7 @@ enable_vpc_rpsrfs() { enable_rpsrfs() { local enable=$1 - if [ $eanble -eq 0] + if [ $enable -eq 0 ] then echo 0 > /etc/rpsrfsenable return 0 diff --git a/patches/systemvm/debian/config/root/redundant_router/enable_pubip.sh.templ b/patches/systemvm/debian/config/root/redundant_router/enable_pubip.sh.templ index 0e42ec4968a..3e22c0d0a55 100644 --- a/patches/systemvm/debian/config/root/redundant_router/enable_pubip.sh.templ +++ b/patches/systemvm/debian/config/root/redundant_router/enable_pubip.sh.templ @@ -23,7 +23,7 @@ while read i do if [ "$i" == "eth2" ] then - ifdown $i + ifdown $i --force ifup $i else ifconfig $i down