Skip to content

Fix platform PSU consistency checking issue#1325

Merged
liat-grozovik merged 1 commit intosonic-net:201811from
wangxin:psu_status_consistency_check_pr
Jan 15, 2020
Merged

Fix platform PSU consistency checking issue#1325
liat-grozovik merged 1 commit intosonic-net:201811from
wangxin:psu_status_consistency_check_pr

Conversation

@wangxin
Copy link
Collaborator

@wangxin wangxin commented Jan 10, 2020

Description of PR

Summary:
Fixes # (issue)
The PSU consistency checking logic assumes that all PSUs are OK.
When one of the PSU is not powered, the testing will fail
unnecessarily. This change fixed this issue and also improved the
function check_vendor_specific_psustatus to have better code reuse.

Changes:

  • Fix the PSU consistency checking issue
  • Change the scope of fixture psu_test_setup_teardown to "function"
  • Update the check_vendor_specific_psustatus function to reuse existing check_sysfs_psu
  • Update the test cases calling check_vendor_specific_psustatus accordingly

Type of change

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

Approach

How did you do it?

How did you verify/test it?

Tested on Mellanox platform

Any platform specific information?

The sysfs checking is vendor specific.

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

Documentation

The PSU consistency checking logic assumes that all PSUs are OK.
When one of the PSU is not powered, the testing will fail
unnecessarily. This change fixed this issue and also improved the
function check_vendor_specific_psustatus to have better code reuse.

Signed-off-by: Xin Wang <xinw@mellanox.com>
@liat-grozovik liat-grozovik merged commit 0a15d4f into sonic-net:201811 Jan 15, 2020
@wangxin wangxin deleted the psu_status_consistency_check_pr branch March 28, 2020 03:09
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
- swss:
* 459d09b 2021-02-22 | [acl] Enable VLAN ID qualifier for ACL rules (sonic-net#1648) (HEAD -> 202012) [Danny Allen]
* 60859b1 2021-02-08 | [buffermgr] Support maximum port headroom checking (sonic-net#1607) [Stephen Sun]
* 3161cbb 2021-02-17 | Add SAI_INGRESS_PRIORITY_GROUP_STAT_DROPPED_PACKETS counter, create new FlexCounter group (sonic-net#1600) [Andriy Yurkiv]
* 256ed9c 2021-02-08 | Support shared headroom pool on top of dynamic buffer calculation (sonic-net#1581) [Stephen Sun]

- utilities:
* 30d7069 2021-02-16 | [decode-syseeprom] Refactor to utilize sonic-platform package (sonic-net#1435) (HEAD -> 202012, tag: foo) [Joe LeVeque]
* 891fef4 2021-02-16 | [psuutil] Refactor to utilize sonic-platform package (sonic-net#1434) [Joe LeVeque]
* 8c5e505 2021-02-17 | [sfputil] Refactor to utilize sonic-platform package (sonic-net#1421) [Joe LeVeque]
* ca5dd2c 2021-02-17 | [sfpshow] Cleanup (sonic-net#1405) [Joe LeVeque]
* bf489ea 2021-02-17 | Add new cli for SAI_INGRESS_PRIORITY_GROUP_STAT_DROPPED_PACKETS counter in counterpoll utility (sonic-net#1355) [Andriy Yurkiv]
* 25feed3 2021-02-08 | Support shared headroom pool on top of dynamic buffer calculation (sonic-net#1348) [Stephen Sun]
* aaa323a 2021-02-02 | [vrf]: Fix freezing during interface binding (sonic-net#1325) [maksymbelei95]
* cc0bb6e 2021-01-27 | [show] fix "show interfaces breakout" command (sonic-net#1198) [Dmytro Shevchuk]

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
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.

4 participants