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

[AS9726-32D] support show system-health #8346

Closed

Conversation

seanwu-ec
Copy link
Contributor

@seanwu-ec seanwu-ec commented Aug 5, 2021

Why I did it

support show system-health on AS9726-32D model.

How I did it

Give a SystemHealth config json, ensure all required systemLED APIs are implemented, Fan, PSU info can be fetched correctly.

How to verify it

Make sure all Hardware checks are passed.
Note : PSU1 wasn't powered on DUT.

root@as9726-32d-2:/home/admin# show system-health detail
System status summary

  System status LED  ControlledByFPGA
  Services:
    Status: OK
  Hardware:
    Status: OK

System services and devices monitor list

Name                        Status    Type
--------------------------  --------  ----------
as9726-32d-2                OK        System
rsyslog                     OK        Process
root-overlay                OK        Filesystem
var-log                     OK        Filesystem
routeCheck                  OK        Program
diskCheck                   OK        Program
container_memory_telemetry  OK        Program
FAN-1F                      OK        Fan
FAN-1R                      OK        Fan
FAN-2F                      OK        Fan
FAN-2R                      OK        Fan
FAN-3F                      OK        Fan
FAN-3R                      OK        Fan
FAN-4F                      OK        Fan
FAN-4R                      OK        Fan
FAN-5F                      OK        Fan
FAN-5R                      OK        Fan
FAN-6F                      OK        Fan
FAN-6R                      OK        Fan
PSU-1 FAN-1                 OK        Fan
PSU-2 FAN-1                 OK        Fan
PSU 2                       OK        PSU

System services and devices ignore list

Name               Status    Type
-----------------  --------  -------
container_checker  Ignored   Service
psu.temperature    Ignored   Device
PSU 1              Ignored   Device
asic               Ignored   Device

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106

Description for the changelog

[Accton] support show system-health on AS9726-32D

A picture of a cute animal (not mandatory but encouraged)

Alt Text

Signed-off-by: Sean Wu <sean_wu@edge-core.com>
Signed-off-by: Sean Wu <sean_wu@edge-core.com>
- Make it compatible with python3, change python2 print

Signed-off-by: Sean Wu <sean_wu@edge-core.com>
Signed-off-by: Sean Wu <sean_wu@edge-core.com>
Signed-off-by: Sean Wu <sean_wu@edge-core.com>
@lgtm-com
Copy link

lgtm-com bot commented Aug 5, 2021

This pull request introduces 1 alert when merging 2ec7542 into 1bc3fdb - view on LGTM.com

new alerts:

  • 1 for Unused import

Signed-off-by: Sean Wu <sean_wu@edge-core.com>
Signed-off-by: Sean Wu <sean_wu@edge-core.com>
Signed-off-by: Sean Wu <sean_wu@edge-core.com>
@seanwu-ec seanwu-ec marked this pull request as ready for review August 6, 2021 09:57
@seanwu-ec seanwu-ec requested a review from lguohan as a code owner August 6, 2021 09:57
@lgtm-com
Copy link

lgtm-com bot commented Aug 6, 2021

This pull request introduces 1 alert when merging cf4aac3 into 302f889 - view on LGTM.com

new alerts:

  • 1 for Wrong name for an argument in a call

@seanwu-ec
Copy link
Contributor Author

This pull request introduces 1 alert when merging cf4aac3 into 302f889 - view on LGTM.com

new alerts:

  • 1 for Wrong name for an argument in a call

I don't know how come LGTM got this alert. namedtuple DOES have 'defaults' argument, and it works well.

https://docs.python.org/3.7/library/collections.html#collections.namedtuple
https://github.com/python/cpython/blob/041bfafeb00b0e5e565986b01c00bf9cddce3b4c/Lib/collections/__init__.py#L316

@seanwu-ec
Copy link
Contributor Author

seanwu-ec commented Sep 22, 2021

Hi @lguohan, when you have a moment, would you tell me what changes I need to make in order to get this PR reviewed and merged? I appreciate it.

@seanwu-ec
Copy link
Contributor Author

/azpw run

@mssonicbld
Copy link
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Signed-off-by: Sean Wu <sean_wu@edge-core.com>
@lgtm-com
Copy link

lgtm-com bot commented Oct 21, 2021

This pull request introduces 1 alert when merging d80c699 into cd0d407 - view on LGTM.com

new alerts:

  • 1 for Wrong name for an argument in a call

* Support lpmode control by CPLD.
* PSU status add led status.

Signed-off-by: Sean Wu <sean_wu@edge-core.com>
@lgtm-com
Copy link

lgtm-com bot commented Nov 3, 2021

This pull request introduces 2 alerts when merging fa571f6 into 689c101 - view on LGTM.com

new alerts:

  • 1 for Wrong name for an argument in a call
  • 1 for Unused import

seanwu-ec and others added 3 commits November 3, 2021 05:41
@lgtm-com
Copy link

lgtm-com bot commented Dec 10, 2021

This pull request introduces 1 alert when merging b635441 into 327ad41 - view on LGTM.com

new alerts:

  • 1 for Wrong name for an argument in a call

@seanwu-ec
Copy link
Contributor Author

/azpw run Azure.sonic-buildimage

@mssonicbld
Copy link
Collaborator

/AzurePipelines run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@seanwu-ec seanwu-ec mentioned this pull request Dec 28, 2021
5 tasks
* revert commit: 0d63cd7
* revert commit: 0c7b91d

* Accton has decided to keep 6-levels thermal threshold APIs only to
  Accton's customized SONiC instead of polluting Community SONiC
  code.

Signed-off-by: Sean Wu <sean_wu@edge-core.com>
@seanwu-ec
Copy link
Contributor Author

/azpw run Azure.sonic-buildimage

@mssonicbld
Copy link
Collaborator

/AzurePipelines run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@@ -1,5 +1,5 @@
{
"skip_ledd": true,
"skip_thermalctld": true
"skip_pcied": true
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is there any specific reason to skip the pcied?

Copy link

Choose a reason for hiding this comment

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

There is no pcie devices, so we skip.

@seanwu-ec seanwu-ec requested a review from a team as a code owner June 10, 2022 02:01
  1. Fix wrong get_status_led()
  2. Fix wrong get_status() when psu power good failed
  3. Fix wrong get_presence() when psu is not presence
@seanwu-ec
Copy link
Contributor Author

sync code to the new PR#14237 due to the code conflict.
so close this.

@seanwu-ec seanwu-ec closed this May 30, 2023
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.

5 participants