Skip to content

[bgp] Clear TSA maintenance mode after config reload in test_bgp_update_timer#23350

Open
rustiqly wants to merge 1 commit intosonic-net:masterfrom
rustiqly:fix/bgp-update-timer-tsa
Open

[bgp] Clear TSA maintenance mode after config reload in test_bgp_update_timer#23350
rustiqly wants to merge 1 commit intosonic-net:masterfrom
rustiqly:fix/bgp-update-timer-tsa

Conversation

@rustiqly
Copy link
Copy Markdown
Contributor

Description

On platforms with startup_tsa_tsb service enabled in services.conf, config_reload (from setup_interfaces) restarts swss which triggers TSA maintenance mode with a 15-minute TSB timer. Tests running before the timer fires fail because the DUT only advertises its loopback route (PfxSnt: 1).

Fix

Check for TSA maintenance mode in common_setup_teardown before yielding to tests, and run TSB to clear it if active. Uses TSC to check current maintenance state.

Changes

  • tests/bgp/test_bgp_update_timer.py: Add TSA check/clear in common_setup_teardown fixture setup

Fixes: #23336

…te_timer

On platforms with startup_tsa_tsb service enabled in services.conf,
config_reload (from setup_interfaces) restarts swss which triggers TSA
maintenance mode with a 15-minute TSB timer. Tests running before the
timer fires fail because the DUT only advertises its loopback route
(PfxSnt: 1).

Fix: Check for TSA maintenance mode in common_setup_teardown before
yielding to tests, and run TSB to clear it if active.

Fixes: sonic-net#23336

Signed-off-by: Rustiqly <[email protected]>
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@rustiqly
Copy link
Copy Markdown
Contributor Author

@copilot review

@yijingyan2
Copy link
Copy Markdown

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: test_bgp_update_timer.py fails due to TSA maintenance mode

3 participants