This is an automated email from the ASF dual-hosted git repository. rohit pushed a commit to branch debian9-systemvmtemplate in repository https://gitbox.apache.org/repos/asf/cloudstack.git
commit f8f1c99b92d19d9d81cf098f01a5601031dd05d0 Author: Rohit Yadav <[email protected]> AuthorDate: Sat Dec 16 23:08:27 2017 +0530 systemvm: set ping timeout at 3seconds per nic/gw Signed-off-by: Rohit Yadav <[email protected]> --- systemvm/debian/opt/cloud/bin/setup/common.sh | 6 +++--- systemvm/debian/opt/cloud/bin/setup/vpcrouter.sh | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/systemvm/debian/opt/cloud/bin/setup/common.sh b/systemvm/debian/opt/cloud/bin/setup/common.sh index 23bf5ad..0622e2e 100755 --- a/systemvm/debian/opt/cloud/bin/setup/common.sh +++ b/systemvm/debian/opt/cloud/bin/setup/common.sh @@ -332,13 +332,13 @@ setup_common() { fi # Workaround to activate vSwitch under VMware - timeout 5 ping -n -c 3 $GW || true + timeout 3 ping -n -c 3 $GW || true if [ -n "$MGMTNET" -a -n "$LOCAL_GW" ] then - timeout 5 ping -n -c 3 $LOCAL_GW || true + timeout 3 ping -n -c 3 $LOCAL_GW || true #This code is added to address ARP issue by pinging MGMT_GW MGMT_GW=$(echo $MGMTNET | awk -F "." '{print $1"."$2"."$3".1"}') - timeout 5 ping -n -c 3 $MGMT_GW || true + timeout 3 ping -n -c 3 $MGMT_GW || true fi if [ "$HYPERVISOR" == "vmware" ]; then diff --git a/systemvm/debian/opt/cloud/bin/setup/vpcrouter.sh b/systemvm/debian/opt/cloud/bin/setup/vpcrouter.sh index 6bad7e7..220a2ea 100755 --- a/systemvm/debian/opt/cloud/bin/setup/vpcrouter.sh +++ b/systemvm/debian/opt/cloud/bin/setup/vpcrouter.sh @@ -66,7 +66,7 @@ EOF then ip route add $MGMTNET via $LOCAL_GW dev eth0 # workaround to activate vSwitch under VMware - timeout 5 ping -n -c 3 $LOCAL_GW || true + timeout 3 ping -n -c 3 $LOCAL_GW || true fi fi -- To stop receiving notification emails like this one, please contact "[email protected]" <[email protected]>.
