Skip to content

[chassis] accommodate snmp test that uses pdu controller for chassis#8674

Merged
wenyiz2021 merged 7 commits intosonic-net:masterfrom
wenyiz2021:pdu_controller
Jun 26, 2023
Merged

[chassis] accommodate snmp test that uses pdu controller for chassis#8674
wenyiz2021 merged 7 commits intosonic-net:masterfrom
wenyiz2021:pdu_controller

Conversation

@wenyiz2021
Copy link
Contributor

Description of PR

pdu controller needs to be done on sup for chassis, for other topo it just choose a random dut or itself, this is done in #8646

for all other tests that uses pdu_controller, we also need to call it on sup for chassis.
This PR is to fix the only snmp test that calls pdu_controller

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?

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

:return:
"""
duthost = duthosts[enum_rand_one_per_hwsku_hostname]
duthost = duthosts[enum_supervisor_dut_hostname]
Copy link
Contributor

Choose a reason for hiding this comment

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

The change seems ok.
Shouldn't skip handle this scenario, why do we need to run only on supervisor?

Copy link
Contributor Author

@wenyiz2021 wenyiz2021 Jun 21, 2023

Choose a reason for hiding this comment

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

old behavior should also be fine.
old:
for chassis it choose sup and cards, but cards were skipped
new:
for chassis it choose sup only

the only pros is we can avoid some skipped tests in pipeline result.

@wenyiz2021 wenyiz2021 merged commit 3476586 into sonic-net:master Jun 26, 2023
mssonicbld pushed a commit to mssonicbld/sonic-mgmt that referenced this pull request Jun 29, 2023
…onic-net#8674)

* Update test_snmp_phy_entity.py to run on sup for chassis, other testbeds choose random dut(dualtor) or itself(single-dut)
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202205: #8766

mssonicbld pushed a commit that referenced this pull request Jun 29, 2023
…8674)

* Update test_snmp_phy_entity.py to run on sup for chassis, other testbeds choose random dut(dualtor) or itself(single-dut)
mrkcmo pushed a commit to Azarack/sonic-mgmt that referenced this pull request Oct 3, 2023
…onic-net#8674)

* Update test_snmp_phy_entity.py to run on sup for chassis, other testbeds choose random dut(dualtor) or itself(single-dut)
AharonMalkin pushed a commit to AharonMalkin/sonic-mgmt that referenced this pull request Jan 25, 2024
…onic-net#8674)

* Update test_snmp_phy_entity.py to run on sup for chassis, other testbeds choose random dut(dualtor) or itself(single-dut)
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.

5 participants