mirror_frr/tests/topotests/ospf_basic_functionality
Donald Sharp a602765471 tests: Increase the dead interval to be longer for neighbor testing
the ospf_basic_functionality/test_ospf_lan.py script is setting
up a lan env that will have 4 ospf routers on it and shutting/no
shutting interfaces with various priorities to see that ospf
is properly choosing roles.  I am consistently seeing the
ospf_basic_functionality/test_ospf_lan.py script failing
where it is saying a neighbor is not in the correct state.

Upon examination of the logs we are seeing this:

2023/04/24 09:16:42 OSPF: [M7Q4P-46WDR] vty[7]@(config)# interface r0-s1-eth0  <----- This is where we no shut the interface
2023/04/24 09:16:47 OSPF: [M7Q4P-46WDR] vty[7]@> enable
2023/04/24 09:16:47 OSPF: [M7Q4P-46WDR] vty[7]@# show ip ospf neighbor all json
2023/04/24 09:16:53 OSPF: [QH9AB-Y4XMZ][EC 100663314] STARVATION: task ospf_ism_event (556af08a5b4c) ran for 6038ms (cpu time 0ms)
2023/04/24 09:16:53 OSPF: [HKQ2F-8D0MY][EC 100663315] Thread Starvation: {(thread *)0x556af19da020 arg=0x556af19c0dd0 timer  r=-5.086     ospf_ase_calculate_timer() &ospf->t_ase_calc from ospfd/ospf_ase.c:635} was scheduled to pop greater than 4s ago
2023/04/24 09:16:53 OSPF: [M7Q4P-46WDR] vty[18]@> enable
2023/04/24 09:16:53 OSPF: [M7Q4P-46WDR] vty[18]@# show ip ospf neighbor all
2023/04/24 09:16:55 OSPF: [M7Q4P-46WDR] vty[7]@> enable
2023/04/24 09:16:55 OSPF: [M7Q4P-46WDR] vty[7]@# show ip ospf neighbor all json
2023/04/24 09:16:55 OSPF: [M7Q4P-46WDR] vty[7]@> enable

This test is setting the dead interval to 4 seconds, seeing a 6 second delay where the os has gone to town
(probably because of the high load on the system ) and not choosing the correct neighbor as the DR.

OSPF when coming up and after seeing the first neighbor, goes into a waiting period before
the DR is elected.  If the neighbor does send it's hello packets but they are not processed
before the wait timer pops because of the starvation event, then the wrong neighbor
will be elected DR.  Let's give this test a bit more time to decide who the
DR is in case everything goes a bit south.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2023-04-25 07:52:31 -04:00
..
ospf_asbr_summary_topo1.json tests : Adding 2 ospf asbr summary testcases. 2021-05-17 19:52:54 -07:00
ospf_asbr_summary_type7_lsa.json tests: Adding ospfv2 summarisation test cases. 2021-06-23 13:57:12 -07:00
ospf_authentication.json tests: ospf_basic_functionality topojson testcases. 2020-09-18 15:13:46 +05:30
ospf_chaos.json tests: Adding 3 ospf chaos testcases. 2021-01-21 04:55:58 +05:30
ospf_ecmp_lan.json tests: ospf_basic_functionality topojson testcases. 2020-09-18 15:13:46 +05:30
ospf_ecmp.json tests: ospf_basic_functionality topojson testcases. 2020-09-18 15:13:46 +05:30
ospf_flood_reduction.json tests: Added ospfv2 flood reduction topotest changes. 2023-02-13 04:36:29 -08:00
ospf_lan.json tests: Increase the dead interval to be longer for neighbor testing 2023-04-25 07:52:31 -04:00
ospf_nssa.json tests: ospf_basic_functionality topojson testcases. 2020-09-18 15:13:46 +05:30
ospf_p2mp.json tests: Adding ospf p2mp basic test. 2021-01-12 09:28:50 +05:30
ospf_routemaps.json tests: ospf_basic_functionality topojson testcases. 2020-09-18 15:13:46 +05:30
ospf_rte_calc.json tests: Topotests daemon start as per feature test 2022-12-13 20:25:41 -08:00
ospf_single_area.json tests: ospf_basic_functionality topojson testcases. 2020-09-18 15:13:46 +05:30
test_ospf_asbr_summary_topo1.py Merge pull request #12645 from gpnaveen/ospf_error_msg_enhancements 2023-03-29 11:05:30 -04:00
test_ospf_asbr_summary_type7_lsa.py Merge pull request #12645 from gpnaveen/ospf_error_msg_enhancements 2023-03-29 11:05:30 -04:00
test_ospf_authentication.py Merge pull request #12645 from gpnaveen/ospf_error_msg_enhancements 2023-03-29 11:05:30 -04:00
test_ospf_chaos.py Merge pull request #12645 from gpnaveen/ospf_error_msg_enhancements 2023-03-29 11:05:30 -04:00
test_ospf_ecmp_lan.py Merge pull request #12645 from gpnaveen/ospf_error_msg_enhancements 2023-03-29 11:05:30 -04:00
test_ospf_ecmp.py Merge pull request #12645 from gpnaveen/ospf_error_msg_enhancements 2023-03-29 11:05:30 -04:00
test_ospf_flood_reduction.py tests: Added ospfv2 flood reduction topotest changes. 2023-02-13 04:36:29 -08:00
test_ospf_lan.py tests: Increase the dead interval to be longer for neighbor testing 2023-04-25 07:52:31 -04:00
test_ospf_nssa.py Merge pull request #12645 from gpnaveen/ospf_error_msg_enhancements 2023-03-29 11:05:30 -04:00
test_ospf_p2mp.py tests: replace deprecated ospf json keys 2023-04-07 16:17:59 -04:00
test_ospf_routemaps.py Merge pull request #12645 from gpnaveen/ospf_error_msg_enhancements 2023-03-29 11:05:30 -04:00
test_ospf_rte_calc.py Merge pull request #12645 from gpnaveen/ospf_error_msg_enhancements 2023-03-29 11:05:30 -04:00
test_ospf_single_area.py Merge pull request #12645 from gpnaveen/ospf_error_msg_enhancements 2023-03-29 11:05:30 -04:00