Skip to content

[Mellanox] Add N/A as a valid fan direction for Nvidia platforms #17930

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

Merged
merged 1 commit into from
Feb 22, 2024

Conversation

lfridlander
Copy link
Contributor

Why I did it

On some Nvidia platforms, fan direction could not be determined. Therefore 'N/A' becomes a valid value for those cases.

Work item tracking
  • Microsoft ADO (number only):

How I did it

Add 'N/A' to the valid fan direction mapping, to avoid an error in the log.

How to verify it

Check fan direction on Nvidia platforms, and make sure there aren't errors in the log.

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

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211
  • 202305

Tested branch (Please provide the tested image version)

Description for the changelog

Link to config_db schema for YANG module changes

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

@lfridlander lfridlander requested a review from lguohan as a code owner January 29, 2024 09:08
Copy link

linux-foundation-easycla bot commented Jan 29, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: lfridlander / name: Lahav-Nvidia (6a44324)

@@ -46,9 +46,11 @@
FAN_DIR = "/var/run/hw-management/thermal/fan{}_dir"
FAN_DIR_VALUE_EXHAUST = 0
FAN_DIR_VALUE_INTAKE = 1
FAN_DIR_VALUE_NOT_APPLICABLE = 2
Copy link
Collaborator

Choose a reason for hiding this comment

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

which one will be better, 'N/A' or 'UNKNOWN'?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The schema values support 'N/A', and also the 'FanBase' interface refers to this value as not applicable. So I think the 'N/A' value is better.

@liat-grozovik liat-grozovik changed the title Add N/A as a valid fan direction for Nvidia platforms [Mellanox] Add N/A as a valid fan direction for Nvidia platforms Feb 19, 2024
@liat-grozovik liat-grozovik merged commit 8a7e38b into sonic-net:master Feb 22, 2024
sonic-otn pushed a commit to Weitang-Zheng/sonic-buildimage that referenced this pull request Mar 11, 2024
…ic-net#17930)

- Why I did it
On some Nvidia platforms, fan direction could not be determined. Therefore 'N/A' becomes a valid value for those cases.

- How I did it
Add 'N/A' to the valid fan direction mapping, to avoid an error in the log.

- How to verify it
Check fan direction on Nvidia platforms, and make sure there aren't errors in the log.
saksarav-nokia pushed a commit to saksarav-nokia/sonic-buildimage that referenced this pull request Mar 12, 2024
…ic-net#17930)

- Why I did it
On some Nvidia platforms, fan direction could not be determined. Therefore 'N/A' becomes a valid value for those cases.

- How I did it
Add 'N/A' to the valid fan direction mapping, to avoid an error in the log.

- How to verify it
Check fan direction on Nvidia platforms, and make sure there aren't errors in the log.
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.

3 participants