Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 9B4C42009FB for ; Fri, 6 May 2016 22:38:06 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 99DA9160A0C; Fri, 6 May 2016 20:38:06 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id E1C8C1608F8 for ; Fri, 6 May 2016 22:38:05 +0200 (CEST) Received: (qmail 54868 invoked by uid 500); 6 May 2016 20:38:05 -0000 Mailing-List: contact dev-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list dev@cloudstack.apache.org Received: (qmail 54857 invoked by uid 99); 6 May 2016 20:38:04 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 May 2016 20:38:04 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 82B18DFD9F; Fri, 6 May 2016 20:38:04 +0000 (UTC) From: dmabry To: dev@cloudstack.apache.org Reply-To: dev@cloudstack.apache.org References: In-Reply-To: Subject: [GitHub] cloudstack pull request: Apply static routes on change to master s... Content-Type: text/plain Message-Id: <20160506203804.82B18DFD9F@git1-us-west.apache.org> Date: Fri, 6 May 2016 20:38:04 +0000 (UTC) archived-at: Fri, 06 May 2016 20:38:06 -0000 Github user dmabry commented on the pull request: https://github.com/apache/cloudstack/pull/1472#issuecomment-217552585 So, Si (@kiwiflyer) and I have been testing this functionality against VPCs in our lab and we verified that static routes are indeed loaded when a VR goes from BACKUP to MASTER. The relevant logs showing that is works are below. We are however still having problems with the static routes not getting added on demand to the current MASTER VR. Has anyone else had this issue while running this commit? ``` 2016-05-06 20:32:20,795 DEBUG {u'config': {u'router_id': u'2', u'baremetalnotificationapikey': u'QtWfDPFOrqddFe3iofWCS6Yhf6g2cCTwR6n3-L7TaaKl3ReBI4219jckJ0AfdX878jo2DpW4ohhNG_6Hlad62g', u'baremetalnotificationsecuritykey': u'B99mUf0oWKL7ATA5WF9iMb17nk1ePQ6kgg3YgWA0kJE2vCaGH52Z65EWDAyCaOYiZB1YPr40pWiwTlBt7_TTmg', u'name': u'r-28-VM', u'eth0mask': u'255.255.0.0', u'type': u'vpcrouter', u'dns1': u'207.191.191.90', u'privategateway': u'192.168.4.4', u'vpccidr': u'10.15.0.0/22', u'domain': u'cs2cloud.internal', u'redundant_state': 'BACKUP', u'host': u'10.150.0.201', u'disable_rp_filter': u'true', u'redundant_router': u'true', u'router_password': u'3838383966687309145665215760380045387957133810480803993986340699863084083818544695063990662780164604461468366180051318649230056294824943648327772148445755', u'redundant_master': False, u'port': u'8080', u'eth0ip': u'169.254.3.21', u'template': u'domP'}, u'id': u'cmdline'} 2016-05-06 20:32:20,796 DEBUG Loading data bag type ips 2016-05-06 20:32:20,796 DEBUG Setting router to master 2016-05-06 20:32:20,796 INFO Will proceed configuring device ==> eth2 2016-05-06 20:32:20,797 DEBUG Executing: ip link set eth2 up 2016-05-06 20:32:20,800 INFO Bringing public interface eth2 up 2016-05-06 20:32:20,800 INFO Adding gateway ==> 192.168.4.1 to device ==> eth2 2016-05-06 20:32:20,801 INFO Will proceed configuring device ==> eth1 2016-05-06 20:32:20,801 DEBUG Executing: ip link set eth1 up 2016-05-06 20:32:20,804 INFO Bringing public interface eth1 up 2016-05-06 20:32:20,804 INFO Adding gateway ==> 10.152.0.1 to device ==> eth1 2016-05-06 20:32:20,804 INFO Checking if default ipv4 route is present 2016-05-06 20:32:20,804 DEBUG Executing: ip -4 route list 0/0 2016-05-06 20:32:20,807 WARNING No default route found! 2016-05-06 20:32:20,807 INFO Adding default route 2016-05-06 20:32:20,807 DEBUG Executing: ip route show default via 10.152.0.1 2016-05-06 20:32:20,810 INFO Add default via 10.152.0.1 2016-05-06 20:32:20,810 DEBUG Executing: ip route add default via 10.152.0.1 2016-05-06 20:32:20,812 DEBUG Configuring static routes 2016-05-06 20:32:20,813 DEBUG Loading data bag type staticroutes 2016-05-06 20:32:20,813 DEBUG Processing CsStaticRoutes file ==> {u'id': u'staticroutes', u'10.87.0.0/16': {u'revoke': False, u'ip_address': u'192.168.4.4', u'gateway': u'192.168.4.1', u'network': u'10.87.0.0/16'}} 2016-05-06 20:32:20,813 DEBUG Executing: ip route show | grep 10.87.0.0/16 | awk '{print $1, $3}' 2016-05-06 20:32:20,818 DEBUG Executing: ip route add 10.87.0.0/16 via 192.168.4.1 2016-05-06 20:32:20,821 DEBUG Executing: /usr/sbin/conntrackd -C /etc/conntrackd/conntrackd.conf -c 2016-05-06 20:32:20,824 DEBUG Executing: /usr/sbin/conntrackd -C /etc/conntrackd/conntrackd.conf -f 2016-05-06 20:32:20,828 DEBUG Executing: /usr/sbin/conntrackd -C /etc/conntrackd/conntrackd.conf -R 2016-05-06 20:32:20,831 DEBUG Executing: /usr/sbin/conntrackd -C /etc/conntrackd/conntrackd.conf -B ``` --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---