[BGPCEP-737] BMP Mock reconnection after killing/starting karaf Created: 20/Dec/17 Updated: 18/Apr/18 Resolved: 05/Jan/18 |
|
| Status: | Verified |
| Project: | bgpcep |
| Component/s: | BGP |
| Affects Version/s: | None |
| Fix Version/s: | Oxygen |
| Type: | Bug | Priority: | Medium |
| Reporter: | Tomas Markovic | Assignee: | Claudio David Gasparini |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
|
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 |
| Comments |
| Comment by Claudio David Gasparini [ 22/Dec/17 ] |