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

[T2 chassis] platform tests that uses pdu_controller to run on sup for chassis #8646

Merged
merged 5 commits into from
Jun 20, 2023

Conversation

wenyiz2021
Copy link
Contributor

@wenyiz2021 wenyiz2021 commented Jun 16, 2023

Description of PR

  1. utilities.py: implement a function get_sup_node_or_random_node for chassis whose pdu info is only avail on sup.
    Note that here we don't use enum_supervisor_dut_hostname, because platform_tests/conftest.py have a autouse fixture skip_on_simx that makes all platform tests use rand_one_dut_hostname.

  2. accomondate other platform tests who uses fixture pdu_controller also need same function implementation and usage.

  3. refactor out test_power_off_reboot from test_reboot.py, this whole file has autosue fixture teardown_module base on enum_rand_one_per_hwsku_hostname

Summary:
Fixes # (issue)

Type of change

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

Back port request

  • 201911
  • 202012
  • 202205

Approach

What is the motivation for this PR?

accomodate for T2 chassis

How did you do it?

How did you verify/test it?

run on Arista chassis

Any platform specific information?

this will not impact other platforms

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

Documentation

@wenyiz2021
Copy link
Contributor Author

@arlakshm can you please review?

Copy link
Contributor

@arlakshm arlakshm left a comment

Choose a reason for hiding this comment

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

lgtm.. can please confirm if these test work on single asic pizzaboxes?

@wenyiz2021
Copy link
Contributor Author

lgtm.. can please confirm if these test work on single asic pizzaboxes?

thanks @arlakshm , I verified this on single-asic linecard as well

@mssonicbld
Copy link
Collaborator

@wenyiz2021 PR conflicts with 202205 branch

@wenyiz2021 wenyiz2021 changed the title [T2 chassis] platform and snmp tests that uses pdu_controller to run on sup for chassis [T2 chassis] platform tests that uses pdu_controller to run on sup for chassis Jun 21, 2023
wangxin pushed a commit that referenced this pull request Jul 11, 2023
…er to run on sup for chassis (#8892)

This is cherry-pick of #8646
the extend PR of #8646, #8725 is already merged into 202205 and is non-destructive.
yaqiangz added a commit that referenced this pull request Jul 21, 2023
What is the motivation for this PR?
Skip condition for 7215 and 1031 failed in this case due to #8646

How did you do it?
Modify skip condition.

How did you verify/test it?
Run tests.

Signed-off-by: Yaqiang Zhu <[email protected]>
yaqiangz added a commit to yaqiangz/sonic-mgmt that referenced this pull request Jul 27, 2023
…onic-net#9085)

What is the motivation for this PR?
Skip condition for 7215 and 1031 failed in this case due to sonic-net#8646

How did you do it?
Modify skip condition.

How did you verify/test it?
Run tests.

Signed-off-by: Yaqiang Zhu <[email protected]>
wangxin pushed a commit that referenced this pull request Jul 28, 2023
…9085) (#9149)

What is the motivation for this PR?
Manually cherry-pick and resolve conflicts of this PR: #9085
Skip condition for 7215 and 1031 failed in this case due to #8646

How did you do it?
Modify skip condition.

How did you verify/test it?
Run tests.

Signed-off-by: Yaqiang Zhu <[email protected]>
mrkcmo pushed a commit to Azarack/sonic-mgmt that referenced this pull request Oct 3, 2023
…on sup for chassis (sonic-net#8646)

* pdu_controller runs on SUP if chassis, else choose a random dut

* corresponding platform tests that use pdu_controller also gets update

* refactor out test_power_off_reboot.py
StormLiangMS pushed a commit to StormLiangMS/sonic-mgmt that referenced this pull request Dec 16, 2023
test_power_off_reboot will fail due to sonic-net#8646
This PR is to fix that and sync setting for testbed-str2-pikez-acs-1 from internal-202205
AharonMalkin pushed a commit to AharonMalkin/sonic-mgmt that referenced this pull request Jan 25, 2024
…on sup for chassis (sonic-net#8646)

* pdu_controller runs on SUP if chassis, else choose a random dut

* corresponding platform tests that use pdu_controller also gets update

* refactor out test_power_off_reboot.py
AharonMalkin pushed a commit to AharonMalkin/sonic-mgmt that referenced this pull request Jan 25, 2024
…t#9085)

What is the motivation for this PR?
Skip condition for 7215 and 1031 failed in this case due to sonic-net#8646

How did you do it?
Modify skip condition.

How did you verify/test it?
Run tests.

Signed-off-by: Yaqiang Zhu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants