Skip to content

[platform] Fix the test_status_led error in case if the chassis led is not controllable#16936

Merged
kevinskwang merged 1 commit intosonic-net:masterfrom
vhlushko-cisco:master-platform-test-status-led
Aug 8, 2025
Merged

[platform] Fix the test_status_led error in case if the chassis led is not controllable#16936
kevinskwang merged 1 commit intosonic-net:masterfrom
vhlushko-cisco:master-platform-test-status-led

Conversation

@vhlushko-cisco
Copy link
Copy Markdown
Contributor

Description of PR

Summary: Fix the test_status_led error in case if the chassis led is not controllable

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Back port request

  • 201911
  • 202012
  • 202205
  • 202305
  • 202311
  • 202405

Approach

What is the motivation for this PR?

The platform_tests/api/test_chassis.py::test_status_led testcase code logic assumes that the chassis main led is always controllable.

But for some of the Cisco devices this test logic:

status_led = duthost.facts.get("chassis").get("status_led")

always returns None, which means that the chassis led is not controllable. That is why I introduce such change - to assume on default that the chassis led is not controllable.

How did you do it?

Change the led_controllable = False variable value.

How did you verify/test it?

Run the platform_tests/api/test_chassis.py.

Any platform specific information?

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

Documentation

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@linux-foundation-easycla
Copy link
Copy Markdown

linux-foundation-easycla bot commented Feb 12, 2025

CLA Signed

  • ✅login: vhlushko-cisco / (564ed05)

The committers listed above are authorized under a signed CLA.

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@vhlushko-cisco
Copy link
Copy Markdown
Contributor Author

Need to cherry-pick this to the 202405 branch as well.

@vhlushko-cisco
Copy link
Copy Markdown
Contributor Author

@bpar9 could you please merge?

@Aravind-Subbaroyan
Copy link
Copy Markdown

@prgeor - could you review this?

@vhlushko-cisco
Copy link
Copy Markdown
Contributor Author

@bpar9 could you please put a label Request for 202411 branch?

@vhlushko-cisco
Copy link
Copy Markdown
Contributor Author

@prgeor - could you please review this?

2 similar comments
@vhlushko-cisco
Copy link
Copy Markdown
Contributor Author

@prgeor - could you please review this?

@vhlushko-cisco
Copy link
Copy Markdown
Contributor Author

@prgeor - could you please review this?

Copy link
Copy Markdown
Contributor

@wsycqyz wsycqyz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lğtm

@kevinskwang
Copy link
Copy Markdown
Contributor

@judyjoseph to review

@vhlushko-cisco
Copy link
Copy Markdown
Contributor Author

@judyjoseph kind reminder

1 similar comment
@vhlushko-cisco
Copy link
Copy Markdown
Contributor Author

@judyjoseph kind reminder

Copy link
Copy Markdown
Contributor

@kevinskwang kevinskwang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kevinskwang kevinskwang merged commit 4c6b663 into sonic-net:master Aug 8, 2025
15 checks passed
mssonicbld pushed a commit to mssonicbld/sonic-mgmt that referenced this pull request Aug 8, 2025
@mssonicbld
Copy link
Copy Markdown
Collaborator

Cherry-pick PR to 202505: #20143

@mssonicbld
Copy link
Copy Markdown
Collaborator

Cherry-pick PR to 202411: #20262

kevinskwang pushed a commit that referenced this pull request Aug 15, 2025
…s not controllable (#16936) (#20262)

Signed-off-by: vhlushko <[email protected]>
Co-authored-by: Vadym Hlushko <[email protected]>
vidyac86 pushed a commit to vidyac86/sonic-mgmt that referenced this pull request Oct 23, 2025
opcoder0 pushed a commit to opcoder0/sonic-mgmt that referenced this pull request Dec 8, 2025
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Dec 16, 2025
AharonMalkin pushed a commit to AharonMalkin/sonic-mgmt that referenced this pull request Dec 16, 2025
…s not controllable (sonic-net#16936)

Signed-off-by: vhlushko <[email protected]>
Signed-off-by: Aharon Malkin <[email protected]>
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Dec 21, 2025
venu-nexthop pushed a commit to venu-nexthop/sonic-mgmt that referenced this pull request Jan 13, 2026
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Jan 26, 2026
ytzur1 pushed a commit to ytzur1/sonic-mgmt that referenced this pull request Feb 2, 2026
venu-nexthop pushed a commit to venu-nexthop/sonic-mgmt that referenced this pull request Mar 27, 2026
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.

6 participants