Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rt 1.54 bgp_override_as_path_split_horizon_test.go #3432

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

cprabha
Copy link
Contributor

@cprabha cprabha commented Sep 17, 2024

Hi,

This is initial commit for RT-1.54

@cprabha cprabha requested a review from a team as a code owner September 17, 2024 00:20
@OpenConfigBot
Copy link

OpenConfigBot commented Sep 17, 2024

@coveralls
Copy link

coveralls commented Sep 17, 2024

Pull Request Test Coverage Report for Build 11352956716

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 55.268%

Totals Coverage Status
Change from base Build 11337664428: 0.0%
Covered Lines: 1983
Relevant Lines: 3588

💛 - Coveralls

@dplore
Copy link
Member

dplore commented Sep 18, 2024

/fptest virtual

@hnnagashree hnnagashree assigned sachendras and dplore and unassigned sachendras Oct 3, 2024
@dplore
Copy link
Member

dplore commented Oct 15, 2024

/fptest virtual

@dplore
Copy link
Member

dplore commented Oct 15, 2024

@cprabha please move this test to the feature/bgp/otg_tests/bgp_override_as_path_split_horizon_test folder.

(The experimental folder is now deprecated)

@dplore
Copy link
Member

dplore commented Oct 15, 2024

@cprabha this test does not pass on cptx. See logs from the cptx test mentioned in this PR request.

Here is a snippet from those logs. Please investigate:

Step #1 - "fp-presubmit":     bgp_override_as_path_split_horizon_test.go:288: 
Step #1 - "fp-presubmit":         *** Starting protocols on otg...
Step #1 - "fp-presubmit":         
Step #1 - "fp-presubmit":         
Step #1 - "fp-presubmit":     bgp_override_as_path_split_horizon_test.go:468: Validate session state and capabilities received on DUT using telemetry.
Step #1 - "fp-presubmit":     bgp_override_as_path_split_horizon_test.go:469: Verifying BGP state.
Step #1 - "fp-presubmit": I0918 01:07:53.410345   39650 deviations.go:104] Did not match any platform_exception [platform:{vendor:NOKIA}  deviations:{explicit_interface_in_default_vrf:true  interface_enabled:true} platform:{vendor:ARISTA}  deviations:{route_policy_under_afi_unsupported:true  omit_l2_mtu:true  interface_enabled:true  default_network_instance:"default"  bgp_set_med_requires_equal_ospf_set_metric:true}], returning default values
Step #1 - "fp-presubmit":     bgp_override_as_path_split_horizon_test.go:469: Waiting for BGP neighbor to establish...
Step #1 - "fp-presubmit":     bgp_override_as_path_split_horizon_test.go:469: BGP adjacency for 192.0.2.2: ESTABLISHED
Step #1 - "fp-presubmit":     bgp_override_as_path_split_horizon_test.go:469: Waiting for BGP neighbor to establish...
Step #1 - "fp-presubmit":     bgp_override_as_path_split_horizon_test.go:469: BGP adjacency for 192.0.2.6: ESTABLISHED
Step #1 - "fp-presubmit":     bgp_override_as_path_split_horizon_test.go:247: Verifying BGP capabilities
Step #1 - "fp-presubmit": I0918 01:07:55.466682   39650 deviations.go:104] Did not match any platform_exception [platform:{vendor:NOKIA}  deviations:{explicit_interface_in_default_vrf:true  interface_enabled:true} platform:{vendor:ARISTA}  deviations:{route_policy_under_afi_unsupported:true  omit_l2_mtu:true  interface_enabled:true  default_network_instance:"default"  bgp_set_med_requires_equal_ospf_set_metric:true}], returning default values
Step #1 - "fp-presubmit":     bgp_override_as_path_split_horizon_test.go:472: Verify that the DUT accepts the route.
Step #1 - "fp-presubmit": I0918 01:07:59.505229   39650 deviations.go:104] Did not match any platform_exception [platform:{vendor:NOKIA}  deviations:{explicit_interface_in_default_vrf:true  interface_enabled:true} platform:{vendor:ARISTA}  deviations:{route_policy_under_afi_unsupported:true  omit_l2_mtu:true  interface_enabled:true  default_network_instance:"default"  bgp_set_med_requires_equal_ospf_set_metric:true}], returning default values
Step #1 - "fp-presubmit":     bgp_override_as_path_split_horizon_test.go:473: Installed prefixes mismatch: got 0, want 1
Step #1 - "fp-presubmit": I0918 01:08:03.542736   39650 deviations.go:104] Did not match any platform_exception [platform:{vendor:NOKIA}  deviations:{explicit_interface_in_default_vrf:true  interface_enabled:true} platform:{vendor:ARISTA}  deviations:{route_policy_under_afi_unsupported:true  omit_l2_mtu:true  interface_enabled:true  default_network_instance:"default"  bgp_set_med_requires_equal_ospf_set_metric:true}], returning default values
Step #1 - "fp-presubmit":     bgp_override_as_path_split_horizon_test.go:474: Sent prefixes mismatch: got 0, want 1
Step #1 - "fp-presubmit":     bgp_override_as_path_split_horizon_test.go:476: Verify that the ATE Port2 receives the route.
Step #1 - "fp-presubmit": --- FAIL: TestBGPOverrideASPathSplitHorizon (999.62s)
Step #1 - "fp-presubmit":     --- PASS: TestBGPOverrideASPathSplitHorizon/Configure_DUT_interfaces (17.08s)
Step #1 - "fp-presubmit":     --- PASS: TestBGPOverrideASPathSplitHorizon/Configure_DEFAULT_network_instance (2.71s)
Step #1 - "fp-presubmit":     --- PASS: TestBGPOverrideASPathSplitHorizon/Configure_BGP_Neighbors (7.41s)
Step #1 - "fp-presubmit":     --- PASS: TestBGPOverrideASPathSplitHorizon/Verify_port_status_on_DUT (6.04s)
Step #1 - "fp-presubmit":     --- PASS: TestBGPOverrideASPathSplitHorizon/Verify_BGP_telemetry (6.09s)
Step #1 - "fp-presubmit":     --- PASS: TestBGPOverrideASPathSplitHorizon/_Baseline_Test_No_allow-own-in (134.46s)
Step #1 - "fp-presubmit":     --- PASS: TestBGPOverrideASPathSplitHorizon/_Test_allow-own-as_1 (138.50s)
Step #1 - "fp-presubmit":     --- PASS: TestBGPOverrideASPathSplitHorizon/Re-advertise_the_prefix_from_the_ATE_with_1_Occurrence:_65500_dutLocalAS1_65499 (74.60s)
Step #1 - "fp-presubmit":     --- FAIL: TestBGPOverrideASPathSplitHorizon/Re-advertise_the_prefix_from_the_ATE_with_3_Occurrences:_dutLocalAS1,_dutLocalAS1,_dutLocalAS1,_65499 (130.29s)
Step #1 - "fp-presubmit":     --- PASS: TestBGPOverrideASPathSplitHorizon/Re-advertise_the_prefix_from_the_ATE_with_4_Occurrences:_dutLocalAS1,_dutLocalAS1,_dutLocalAS1,_dutLocalAS1,_65499_(Should_be_rejected) (134.34s)
Step #1 - "fp-presubmit":     --- PASS: TestBGPOverrideASPathSplitHorizon/_Test_allow-own-as_3 (343.37s)
Step #1 - "fp-presubmit":     --- PASS: TestBGPOverrideASPathSplitHorizon/Re-advertise_the_prefix_from_the_ATE_with_1_Occurrence:_65500,_dutLocalAS1,_65499 (74.35s)
Step #1 - "fp-presubmit":     --- PASS: TestBGPOverrideASPathSplitHorizon/Re-advertise_the_prefix_from_the_ATE_with_3_Occurrences:_dutLocalAS1,_dutLocalAS1,_dutLocalAS1,_65499#01 (70.31s)
Step #1 - "fp-presubmit":     --- FAIL: TestBGPOverrideASPathSplitHorizon/Re-advertise_the_prefix_from_the_ATE_with_4_Occurrences:_dutLocalAS1,_dutLocalAS1,_dutLocalAS1,_dutLocalAS1,_65499_(Should_be_accepted) (134.32s)
Step #1 - "fp-presubmit":     --- PASS: TestBGPOverrideASPathSplitHorizon/_Test_allow-own-as_4 (283.08s)
Step #1 - "fp-presubmit": FAIL
Step #1 - "fp-presubmit": I0918 01:09:07.623301   39650 core.go:212] core file check found cores:
Step #1 - "fp-presubmit": 
Step #1 - "fp-presubmit": Delta Core Files by DUT: 
Step #1 - "fp-presubmit": DUT: dut
Step #1 - "fp-presubmit": *** PROPERTY: validator.core.end -> 
Step #1 - "fp-presubmit": Delta Core Files by DUT: 
Step #1 - "fp-presubmit": DUT: dut
Step #1 - "fp-presubmit": 
Step #1 - "fp-presubmit": *** Releasing the testbed...
Step #1 - "fp-presubmit": 
Step #1 - "fp-presubmit": *** PROPERTY: time.begin -> 1726620738
Step #1 - "fp-presubmit": *** PROPERTY: time.end -> 1726621747
Step #1 - "fp-presubmit": FAIL	github.com/openconfig/featureprofiles/feature/experimental/bgp/otg_tests/bgp_override_as_path_split_horizon_test	1009.417s


@cprabha cprabha requested a review from dplore as a code owner October 15, 2024 02:25
@cprabha
Copy link
Contributor Author

cprabha commented Oct 15, 2024

@cprabha please move this test to the feature/bgp/otg_tests/bgp_override_as_path_split_horizon_test folder.

(The experimental folder is now deprecated)

@dplore moved files to main bgp folder.

@cprabha
Copy link
Contributor Author

cprabha commented Oct 15, 2024

Step #1 - "fp

@dplore I will check this and update it.

@cprabha
Copy link
Contributor Author

cprabha commented Oct 15, 2024

@cprabha this test does not pass on cptx. See logs from the cptx test mentioned in this PR request.

Here is a snippet from those logs. Please investigate:

Step #1 - "fp-presubmit":     bgp_override_as_path_split_horizon_test.go:288: 
Step #1 - "fp-presubmit":         *** Starting protocols on otg...
Step #1 - "fp-presubmit":         
Step #1 - "fp-presubmit":         
Step #1 - "fp-presubmit":     bgp_override_as_path_split_horizon_test.go:468: Validate session state and capabilities received on DUT using telemetry.
Step #1 - "fp-presubmit":     bgp_override_as_path_split_horizon_test.go:469: Verifying BGP state.
Step #1 - "fp-presubmit": I0918 01:07:53.410345   39650 deviations.go:104] Did not match any platform_exception [platform:{vendor:NOKIA}  deviations:{explicit_interface_in_default_vrf:true  interface_enabled:true} platform:{vendor:ARISTA}  deviations:{route_policy_under_afi_unsupported:true  omit_l2_mtu:true  interface_enabled:true  default_network_instance:"default"  bgp_set_med_requires_equal_ospf_set_metric:true}], returning default values
Step #1 - "fp-presubmit":     bgp_override_as_path_split_horizon_test.go:469: Waiting for BGP neighbor to establish...
Step #1 - "fp-presubmit":     bgp_override_as_path_split_horizon_test.go:469: BGP adjacency for 192.0.2.2: ESTABLISHED
Step #1 - "fp-presubmit":     bgp_override_as_path_split_horizon_test.go:469: Waiting for BGP neighbor to establish...
Step #1 - "fp-presubmit":     bgp_override_as_path_split_horizon_test.go:469: BGP adjacency for 192.0.2.6: ESTABLISHED
Step #1 - "fp-presubmit":     bgp_override_as_path_split_horizon_test.go:247: Verifying BGP capabilities
Step #1 - "fp-presubmit": I0918 01:07:55.466682   39650 deviations.go:104] Did not match any platform_exception [platform:{vendor:NOKIA}  deviations:{explicit_interface_in_default_vrf:true  interface_enabled:true} platform:{vendor:ARISTA}  deviations:{route_policy_under_afi_unsupported:true  omit_l2_mtu:true  interface_enabled:true  default_network_instance:"default"  bgp_set_med_requires_equal_ospf_set_metric:true}], returning default values
Step #1 - "fp-presubmit":     bgp_override_as_path_split_horizon_test.go:472: Verify that the DUT accepts the route.
Step #1 - "fp-presubmit": I0918 01:07:59.505229   39650 deviations.go:104] Did not match any platform_exception [platform:{vendor:NOKIA}  deviations:{explicit_interface_in_default_vrf:true  interface_enabled:true} platform:{vendor:ARISTA}  deviations:{route_policy_under_afi_unsupported:true  omit_l2_mtu:true  interface_enabled:true  default_network_instance:"default"  bgp_set_med_requires_equal_ospf_set_metric:true}], returning default values
Step #1 - "fp-presubmit":     bgp_override_as_path_split_horizon_test.go:473: Installed prefixes mismatch: got 0, want 1
Step #1 - "fp-presubmit": I0918 01:08:03.542736   39650 deviations.go:104] Did not match any platform_exception [platform:{vendor:NOKIA}  deviations:{explicit_interface_in_default_vrf:true  interface_enabled:true} platform:{vendor:ARISTA}  deviations:{route_policy_under_afi_unsupported:true  omit_l2_mtu:true  interface_enabled:true  default_network_instance:"default"  bgp_set_med_requires_equal_ospf_set_metric:true}], returning default values
Step #1 - "fp-presubmit":     bgp_override_as_path_split_horizon_test.go:474: Sent prefixes mismatch: got 0, want 1
Step #1 - "fp-presubmit":     bgp_override_as_path_split_horizon_test.go:476: Verify that the ATE Port2 receives the route.
Step #1 - "fp-presubmit": --- FAIL: TestBGPOverrideASPathSplitHorizon (999.62s)
Step #1 - "fp-presubmit":     --- PASS: TestBGPOverrideASPathSplitHorizon/Configure_DUT_interfaces (17.08s)
Step #1 - "fp-presubmit":     --- PASS: TestBGPOverrideASPathSplitHorizon/Configure_DEFAULT_network_instance (2.71s)
Step #1 - "fp-presubmit":     --- PASS: TestBGPOverrideASPathSplitHorizon/Configure_BGP_Neighbors (7.41s)
Step #1 - "fp-presubmit":     --- PASS: TestBGPOverrideASPathSplitHorizon/Verify_port_status_on_DUT (6.04s)
Step #1 - "fp-presubmit":     --- PASS: TestBGPOverrideASPathSplitHorizon/Verify_BGP_telemetry (6.09s)
Step #1 - "fp-presubmit":     --- PASS: TestBGPOverrideASPathSplitHorizon/_Baseline_Test_No_allow-own-in (134.46s)
Step #1 - "fp-presubmit":     --- PASS: TestBGPOverrideASPathSplitHorizon/_Test_allow-own-as_1 (138.50s)
Step #1 - "fp-presubmit":     --- PASS: TestBGPOverrideASPathSplitHorizon/Re-advertise_the_prefix_from_the_ATE_with_1_Occurrence:_65500_dutLocalAS1_65499 (74.60s)
Step #1 - "fp-presubmit":     --- FAIL: TestBGPOverrideASPathSplitHorizon/Re-advertise_the_prefix_from_the_ATE_with_3_Occurrences:_dutLocalAS1,_dutLocalAS1,_dutLocalAS1,_65499 (130.29s)
Step #1 - "fp-presubmit":     --- PASS: TestBGPOverrideASPathSplitHorizon/Re-advertise_the_prefix_from_the_ATE_with_4_Occurrences:_dutLocalAS1,_dutLocalAS1,_dutLocalAS1,_dutLocalAS1,_65499_(Should_be_rejected) (134.34s)
Step #1 - "fp-presubmit":     --- PASS: TestBGPOverrideASPathSplitHorizon/_Test_allow-own-as_3 (343.37s)
Step #1 - "fp-presubmit":     --- PASS: TestBGPOverrideASPathSplitHorizon/Re-advertise_the_prefix_from_the_ATE_with_1_Occurrence:_65500,_dutLocalAS1,_65499 (74.35s)
Step #1 - "fp-presubmit":     --- PASS: TestBGPOverrideASPathSplitHorizon/Re-advertise_the_prefix_from_the_ATE_with_3_Occurrences:_dutLocalAS1,_dutLocalAS1,_dutLocalAS1,_65499#01 (70.31s)
Step #1 - "fp-presubmit":     --- FAIL: TestBGPOverrideASPathSplitHorizon/Re-advertise_the_prefix_from_the_ATE_with_4_Occurrences:_dutLocalAS1,_dutLocalAS1,_dutLocalAS1,_dutLocalAS1,_65499_(Should_be_accepted) (134.32s)
Step #1 - "fp-presubmit":     --- PASS: TestBGPOverrideASPathSplitHorizon/_Test_allow-own-as_4 (283.08s)
Step #1 - "fp-presubmit": FAIL
Step #1 - "fp-presubmit": I0918 01:09:07.623301   39650 core.go:212] core file check found cores:
Step #1 - "fp-presubmit": 
Step #1 - "fp-presubmit": Delta Core Files by DUT: 
Step #1 - "fp-presubmit": DUT: dut
Step #1 - "fp-presubmit": *** PROPERTY: validator.core.end -> 
Step #1 - "fp-presubmit": Delta Core Files by DUT: 
Step #1 - "fp-presubmit": DUT: dut
Step #1 - "fp-presubmit": 
Step #1 - "fp-presubmit": *** Releasing the testbed...
Step #1 - "fp-presubmit": 
Step #1 - "fp-presubmit": *** PROPERTY: time.begin -> 1726620738
Step #1 - "fp-presubmit": *** PROPERTY: time.end -> 1726621747
Step #1 - "fp-presubmit": FAIL	github.com/openconfig/featureprofiles/feature/experimental/bgp/otg_tests/bgp_override_as_path_split_horizon_test	1009.417s

This is fixed, we need to add deviation . please could you re run and check.

@dplore
Copy link
Member

dplore commented Oct 15, 2024

/fptest virtual

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants