Created
January 17, 2014 17:42
-
-
Save nati/8477889 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 2014-01-17 09:09:28 + screen -S contrail -p control -X stuff 'export LD_LIBRARY_PATH=/opt/stack/contrail/build/lib; /opt/stack/contrail/build/debug/control-node/control-node --map-server-url https://216.69.95.61:8443 --map-user 216.69.95.61 --map-password 216.69.95.61 --hostname contrail01 --host-ip 216.69.95.61 --bgp-port 179 || echo "control failed to start" | tee "/opt/stack/status/contrail/control.failure"^M' | |
| 2014-01-17 09:09:28 + sleep 2 | |
| 2014-01-17 09:09:30 + admin_user=admin | |
| 2014-01-17 09:09:30 + admin_passwd=contrail123 | |
| 2014-01-17 09:09:30 + admin_tenant=admin | |
| 2014-01-17 09:09:30 + python /home/ubuntu/devstack/contrail/provision_vrouter.py --host_name contrail01 --host_ip 216.69.95.61 --api_server_ip 216.69.95.61 --oper add --admin_user admin --admin_password contrail123 --admin_tenant_name admin | |
| 2014-01-17 09:09:31 + test_insert_vrouter | |
| 2014-01-17 09:09:31 + lsmod | |
| 2014-01-17 09:09:31 + grep -q vrouter | |
| 2014-01-17 09:09:31 + insert_vrouter | |
| 2014-01-17 09:09:31 + source /etc/contrail/agent_param | |
| 2014-01-17 09:09:31 ++ LOG=/var/log/contrail.log | |
| 2014-01-17 09:09:31 ++ CONFIG=/etc/contrail/agent.conf | |
| 2014-01-17 09:09:31 ++ prog=/usr/bin/vnswad | |
| 2014-01-17 09:09:31 ++ kmod=vrouter/vrouter.ko | |
| 2014-01-17 09:09:31 ++ pname=vnswad | |
| 2014-01-17 09:09:31 ++ LIBDIR=/usr/lib64 | |
| 2014-01-17 09:09:31 ++ VHOST_CFG=/etc/sysconfig/network-scripts/ifcfg-vhost0 | |
| 2014-01-17 09:09:31 ++ VROUTER_LOGFILE=--log-file=/var/log/vrouter.log | |
| 2014-01-17 09:09:31 ++ COLLECTOR=216.69.95.61 | |
| 2014-01-17 09:09:31 ++ dev=eth0 | |
| 2014-01-17 09:09:31 + EXT_DEV=eth0 | |
| 2014-01-17 09:09:31 + '[' -e /etc/sysconfig/network-scripts/ifcfg-vhost0 ']' | |
| 2014-01-17 09:09:31 + DEVICE=vhost0 | |
| 2014-01-17 09:09:31 ++ sudo ifconfig eth0 | |
| 2014-01-17 09:09:31 ++ sed -ne 's/.*inet *addr[: ]*\([0-9.]*\).*/\1/i p' | |
| 2014-01-17 09:09:31 + IPADDR=216.69.95.61 | |
| 2014-01-17 09:09:31 ++ sudo ifconfig eth0 | |
| 2014-01-17 09:09:31 ++ sed -ne 's/.*mask[: *]\([0-9.]*\).*/\1/i p' | |
| 2014-01-17 09:09:31 + NETMASK=255.255.255.128 | |
| 2014-01-17 09:09:31 + sudo insmod /opt/stack/contrail/vrouter/vrouter.ko vr_flow_entries=4096 vr_oflow_entries=512 | |
| 2014-01-17 09:09:31 + echo 'Creating vhost interface: vhost0.' | |
| 2014-01-17 09:09:31 Creating vhost interface: vhost0. | |
| 2014-01-17 09:09:31 + VIF=/opt/stack/contrail/build/debug/vrouter/utils/vif | |
| 2014-01-17 09:09:31 ++ cat /sys/class/net/eth0/address | |
| 2014-01-17 09:09:31 + DEV_MAC=00:21:9b:8c:e2:f7 | |
| 2014-01-17 09:09:31 + sudo /opt/stack/contrail/build/debug/vrouter/utils/vif --create vhost0 --mac 00:21:9b:8c:e2:f7 | |
| 2014-01-17 09:09:31 + echo 'Adding vhost0 to vrouter' | |
| 2014-01-17 09:09:31 Adding vhost0 to vrouter | |
| 2014-01-17 09:09:31 + sudo /opt/stack/contrail/build/debug/vrouter/utils/vif --add vhost0 --mac 00:21:9b:8c:e2:f7 --vrf 0 --mode x --type vhost | |
| 2014-01-17 09:09:31 + echo 'Adding eth0 to vrouter' | |
| 2014-01-17 09:09:31 Adding eth0 to vrouter | |
| 2014-01-17 09:09:31 + sudo /opt/stack/contrail/build/debug/vrouter/utils/vif --add eth0 --mac 00:21:9b:8c:e2:f7 --vrf 0 --mode x --type physical | |
| 2014-01-17 09:09:31 + is_ubuntu | |
| 2014-01-17 09:09:31 + [[ -z deb ]] | |
| 2014-01-17 09:09:31 + '[' deb = deb ']' | |
| 2014-01-17 09:09:31 + cat | |
| 2014-01-17 09:09:31 + perl -ne ' | |
| 2014-01-17 09:09:31 /HWaddr\s*([a-f\d:]+)/i && print(" hwaddr $1\n"); | |
| 2014-01-17 09:09:31 /inet addr:\s*([\d.]+)/i && print(" address $1\n"); | |
| 2014-01-17 09:09:31 /Bcast:\s*([\d.]+)/i && print(" broadcast $1\n"); | |
| 2014-01-17 09:09:31 /Mask:\s*([\d.]+)/i && print(" netmask $1\n"); | |
| 2014-01-17 09:09:31 + sudo ifconfig eth0 | |
| 2014-01-17 09:09:31 ' | |
| 2014-01-17 09:09:31 + sudo route -n | |
| 2014-01-17 09:09:31 + perl -ane '$F[7]=="eth0" && ($F[3] =~ /G/) && print(" gateway $F[1]\n")' | |
| 2014-01-17 09:09:31 + perl -ne '/^nameserver ([\d.]+)/ && push(@dns, $1); | |
| 2014-01-17 09:09:31 END { @dns && print(" dns-nameservers ", join(" ", @dns), "\n") }' /etc/resolv.conf | |
| 2014-01-17 09:09:31 + sudo ifdown eth0 | |
| 2014-01-17 09:09:31 + sudo ifconfig eth0 0 up | |
| 2014-01-17 09:09:31 + sudo ifup -i /tmp/interfaces vhost0 | |
| 2014-01-17 09:09:31 + echo 'Sleeping 10 seconds to allow link state to settle' | |
| 2014-01-17 09:09:31 Sleeping 10 seconds to allow link state to settle | |
| 2014-01-17 09:09:31 + sleep 10 | |
| 2014-01-17 09:09:41 + sudo ifup -i /tmp/interfaces eth0 | |
| 2014-01-17 09:09:41 + echo 'vrouter kernel module inserted.' | |
| 2014-01-17 09:09:41 vrouter kernel module inserted. | |
| 2014-01-17 09:09:41 + '[' vgw -a 10.99.99.0/24 -a default-domain:admin:public:public ']' | |
| 2014-01-17 09:09:41 + sudo sysctl -w net.ipv4.ip_forward=1 | |
| 2014-01-17 09:09:41 net.ipv4.ip_forward = 1 | |
| 2014-01-17 09:09:41 + sudo /opt/stack/contrail/build/debug/vrouter/utils/vif --create vgw --mac 00:01:00:5e:00:00 | |
| 2014-01-17 09:09:41 + sudo ifconfig vgw up | |
| 2014-01-17 09:09:41 + sudo route add -net 10.99.99.0/24 dev vgw | |
| 2014-01-17 09:09:41 + source /etc/contrail/agent_param | |
| 2014-01-17 09:09:41 ++ LOG=/var/log/contrail.log | |
| 2014-01-17 09:09:41 ++ CONFIG=/etc/contrail/agent.conf | |
| 2014-01-17 09:09:41 ++ prog=/usr/bin/vnswad | |
| 2014-01-17 09:09:41 ++ kmod=vrouter/vrouter.ko | |
| 2014-01-17 09:09:41 ++ pname=vnswad | |
| 2014-01-17 09:09:41 ++ LIBDIR=/usr/lib64 | |
| 2014-01-17 09:09:41 ++ VHOST_CFG=/etc/sysconfig/network-scripts/ifcfg-vhost0 | |
| 2014-01-17 09:09:41 ++ VROUTER_LOGFILE=--log-file=/var/log/vrouter.log | |
| 2014-01-17 09:09:41 ++ COLLECTOR=216.69.95.61 | |
| 2014-01-17 09:09:41 ++ dev=eth0 | |
| 2014-01-17 09:09:41 + mkdir -p /home/ubuntu/devstack/bin | |
| 2014-01-17 09:09:41 + contrail-version | |
| 2014-01-17 09:09:41 + cat | |
| 2014-01-17 09:09:41 + chmod a+x /home/ubuntu/devstack/bin/contrail-version | |
| 2014-01-17 09:09:41 + cat | |
| 2014-01-17 09:09:41 + chmod a+x /home/ubuntu/devstack/bin/vnsw.hlpr | |
| 2014-01-17 09:09:41 + screen_it agent 'sudo /home/ubuntu/devstack/bin/vnsw.hlpr' | |
| 2014-01-17 09:09:41 + SCREEN_NAME=contrail | |
| 2014-01-17 09:09:41 + SERVICE_DIR=/opt/stack/status | |
| 2014-01-17 09:09:41 ++ trueorfalse True True |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment