Emailing this to the list as per the IRC conversation. I was having issues two nics and the default route which wasn't used for cloudstack management.
I am using advanced networking so this "patch" works for me. I don't know exactly why the conditional is in there or even why the gateway is needed, but removing it has caused no ill effects so far in my testing. I submitted the following bug report: http://bugs.cloudstack.org/browse/CS-14839 for tracking. diff --git a/scripts/vm/hypervisor/xenserver/network_info.sh b/scripts/vm/hypervisor/xenserver/network_info.sh index 12d4e79..c6beccd 100755 --- a/scripts/vm/hypervisor/xenserver/network_info.sh +++ b/scripts/vm/hypervisor/xenserver/network_info.sh @@ -45,10 +45,7 @@ ipaddr=$1 device=$(ip addr | grep $1 | head -1 | awk '{print $NF}') defaultdev=$(ip route | grep default | awk '{print $NF}') -if [ "$device" == "$defaultdev" ] -then - gateway=$(ip route | grep default | awk '{print $3}') -fi +gateway=$(ip route | grep default | awk '{print $3}') [ -n "$gflag" ] && echo $gateway && exit 0
