Skip to content

sonic-mgmt: BGP TSA testcases failure in t2 non-chassis#20469

Closed
selva-nexthop wants to merge 1 commit intosonic-net:masterfrom
selva-nexthop:selva-20468
Closed

sonic-mgmt: BGP TSA testcases failure in t2 non-chassis#20469
selva-nexthop wants to merge 1 commit intosonic-net:masterfrom
selva-nexthop:selva-20468

Conversation

@selva-nexthop
Copy link
Contributor

@selva-nexthop selva-nexthop commented Sep 2, 2025

Fixes #20468

Description:
Following 4 testcases are failing in Q3D and t2 topology/

bgp/reliable_tsa/test_reliable_tsa_flaky.py
bgp/reliable_tsa/test_reliable_tsa_stable.py
bgp/test_traffic_shift_sup.py
bgp/test_traffic_shift.py
Rootcause:

Test helpers and CLI scripts could touch CHASSIS_APP_DB based on “chassis-like” config signals without verifying that redis-chassis is running and the chassis DB socket is present. Resolution:

get_tsa_chassisdb_config(), verify_dut_configdb_tsa_value(): use CHASSIS_APP_DB only on a true chassis supervisor; otherwise use CONFIG_DB. This prevents CHASSIS_APP_DB queries on non‑chassis/linecards and eliminates spurious syslog errors. is_chassis_system: rely only on sonic_py_common.device_info.is_chassis(); removed is_supervisor_node fallback to prevent false positives.

Signed-off-by: Selvamani Ramasamy selva@nexthop.ai

Description of PR

Summary:
Fixes # (issue)

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • New Test case
    • Skipped for non-supported platforms
  • Test case improvement

Back port request

  • 202205
  • 202305
  • 202311
  • 202405
  • 202411
  • 202505

Approach

What is the motivation for this PR?

How did you do it?

How did you verify/test it?

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation

Fixes sonic-net#20468

Description:
Following 4 testcases are failing in Q3D and t2 topology/

bgp/reliable_tsa/test_reliable_tsa_flaky.py
bgp/reliable_tsa/test_reliable_tsa_stable.py
bgp/test_traffic_shift_sup.py
bgp/test_traffic_shift.py
Rootcause:

Test helpers and CLI scripts could touch CHASSIS_APP_DB based on “chassis-like” config signals without verifying that redis-chassis is running and the chassis DB socket is present.
Resolution:

get_tsa_chassisdb_config(), verify_dut_configdb_tsa_value(): use CHASSIS_APP_DB only on a true chassis supervisor; otherwise use CONFIG_DB. This prevents CHASSIS_APP_DB queries on non‑chassis/linecards and eliminates spurious syslog errors.
is_chassis_system: rely only on sonic_py_common.device_info.is_chassis(); removed is_supervisor_node fallback to prevent false positives.
_check_if_module_skipped_for_mode: evaluate all matching condition entries and honor any skip that cites frr_mgmt_config == 'true' or 'false'. Removed noisy debugging and cache fallbacks.
wq

Signed-off-by: Selvamani Ramasamy <selva@nexthop.ai>
@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
…lly (sonic-net#20469)

#### Why I did it
src/sonic-gnmi
```
* d29b012 - (HEAD -> 202311, origin/202311) Increase dbus timeout for gcu (sonic-net#292) (sonic-net#293) (22 hours ago) [mssonicbld]
* 4646c48 - Fix pipeline for 202311 branch (sonic-net#297) (22 hours ago) [ganglv]
```
#### How I did it
#### How to verify it
#### Description for the changelog
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: BGP TSA testcases failure in t2 non-chassis topology

2 participants