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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to