VPC : bug fix
Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/f1883e99 Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/f1883e99 Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/f1883e99 Branch: refs/heads/vpc Commit: f1883e991c6e7f43ed1a9bae155d81bf22911c40 Parents: edbf4a0 Author: anthony <[email protected]> Authored: Thu Jun 7 19:10:20 2012 -0700 Committer: Alena Prokharchyk <[email protected]> Committed: Fri Jun 15 14:26:50 2012 -0700 ---------------------------------------------------------------------- .../debian/config/opt/cloud/bin/guestnw.sh | 8 +++++--- wscript | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/f1883e99/patches/systemvm/debian/config/opt/cloud/bin/guestnw.sh ---------------------------------------------------------------------- diff --git a/patches/systemvm/debian/config/opt/cloud/bin/guestnw.sh b/patches/systemvm/debian/config/opt/cloud/bin/guestnw.sh index c90ef76..a97e28a 100755 --- a/patches/systemvm/debian/config/opt/cloud/bin/guestnw.sh +++ b/patches/systemvm/debian/config/opt/cloud/bin/guestnw.sh @@ -31,7 +31,7 @@ usage() { setup_dnsmasq() { - loger -t cloud "Setting up dnsmasq for network $ip/$mask " + logger -t cloud "Setting up dnsmasq for network $ip/$mask " # setup static sed -i -e "/^[#]*dhcp-range=interface:$dev/d" /etc/dnsmasq.d/cloud.conf echo "dhcp-range=interface:$dev,set:interface-$dev,$ip,static" >> /etc/dnsmasq.d/cloud.conf @@ -58,7 +58,7 @@ setup_dnsmasq() { } desetup_dnsmasq() { - loger -t cloud "Setting up dnsmasq for network $ip/$mask " + logger -t cloud "Setting up dnsmasq for network $ip/$mask " sed -i -e "/^[#]*dhcp-option=tag:interface-$dev,option:router.*$/d" /etc/dnsmasq.d/cloud.conf sed -i -e "/^[#]*dhcp-option=tag:interface-$dev,6.*$/d" /etc/dnsmasq.d/cloud.conf @@ -71,7 +71,9 @@ desetup_dnsmasq() { create_guest_network() { logger -t cloud " $(basename $0): Create network on interface $dev, gateway $gw, network $ip/$mask " - sudo ip addr add $dev $ip/$mask + sudo ip addr add dev $dev $ip/$mask + sudo ip link set $dev up + sudo arping -c 3 -I $dev -A -U -s $ip $ip; # create inbound acl chain if sudo iptables -N ACL_INBOUND_$ip 2>/dev/null http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/f1883e99/wscript ---------------------------------------------------------------------- diff --git a/wscript b/wscript index 720e7b9..19b74dc 100644 --- a/wscript +++ b/wscript @@ -4,7 +4,7 @@ # the following two variables are used by the target "waf dist" # if you change 'em here, you need to change it also in cloud.spec, add a %changelog entry there, and add an entry in debian/changelog -VERSION = '3.0.3.2012-06-08T00:42:03Z' +VERSION = '3.0.3.2012-06-08T01:50:26Z' APPNAME = 'cloud' import shutil,os
