Uploaded image for project: 'bgpcep'
  1. bgpcep
  2. BGPCEP-737

BMP Mock reconnection after killing/starting karaf

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • Oxygen
    • None
    • BGP
    • None

      I start main node and cluster with karaf running on each with odl-bgpcep-bgp, odl-bgpcep-bgp-config-example, odl-bgpcep-bmp, odl-bgpcep-bmp-config-example, I deploy BMP Mock on each of the remote_addresses from local_address with command

      java -jar bgp-bmp-mock-*-executable.jar --local_address ${SYSTEM_IP} --remote_address ${ODL_1_IP}:12345,${ODL_2_IP}:12345,${ODL_3_IP}:12345 --routers_count 1 --peers_count 1 --log_level TRACE 2>&1 | tee pccmock.log
      

      I wait for successfully established in pccmock.log on owner node, also verify status of

      /restconf/operational/bmp-monitor:bmp-monitor
      

      Than I Isolate owner karaf node with commands

      sudo /sbin/iptables -I OUTPUT -p all --source ${ODL_ISOLATE_IP} --destination ${ODL_*_IP} -j DROP #on every node, except the one we isolating
      

      wait for successfully established on different node in pccmock.log, also verify status of

      /restconf/operational/bmp-monitor:bmp-monitor
      
      sudo /sbin/iptables -D OUTPUT -p all --source ${ODL_ISOLATE_IP} --destination ${ODL_*_IP} -j DROP #on every node, except the one we isolating
      

      wait for successfully established on different node in pccmock.log, also verify status of

      /restconf/operational/bmp-monitor:bmp-monitor
      

      Also we can switch isolating with killing, running command like this on owner node:

      ps axf | grep org.apache.karaf | grep -v grep | awk '{print "kill -9 " $1}' | sh
      

      and we start it simply with bin/start in karaf directory on killed node

            cdgasparini Claudio David Gasparini
            tomas.markovic Tomas Markovic
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: