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

[Mellanox] Fix error log after warm reboot #217

Closed
wants to merge 1 commit into from

Conversation

Junchao-Mellanox
Copy link
Owner

@Junchao-Mellanox Junchao-Mellanox commented Mar 18, 2024

Why I did it

There are error logs if doing warm reboot on a system which does not enable module host management.

Mar 13 12:00:20.920599 sonic ERR pmon#xcvrd: exception [Errno 2] No such file or directory: '/sys/module/sx_core/asic0/module63/control' for port 63 trying to read port control sysfs /sys/module/sx_core/asic0/module63/control

Mar 13 12:00:20.920659 sonic ERR pmon#xcvrd: Failed to read from file /sys/module/sx_core/asic0/module64/control - FileNotFoundError(2, 'No such file or directory')
Work item tracking
  • Microsoft ADO (number only):

How I did it

Only check sysfs /sys/module/sx_core/asic0/module{num}/control if module host management is enabled.

How to verify it

Manual test

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

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

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)

@Junchao-Mellanox
Copy link
Owner Author

ci passed 3726

@Junchao-Mellanox Junchao-Mellanox deleted the master-fix-warmboot-err-log branch April 15, 2024 06:19
Junchao-Mellanox pushed a commit that referenced this pull request May 10, 2024
…lly (sonic-net#18724)

#### Why I did it
src/sonic-gnmi
```
* d0ec8b0 - (HEAD -> master, origin/master, origin/HEAD) Merge pull request #216 from ranjinidn/sonic-gnmi_bookworm_migration (30 hours ago) [Saikrishna Arcot]
|\ 
| failure_prs.log 8e3f408 - Merge branch 'master' into sonic-gnmi_bookworm_migration (6 days ago) [ranjinidn]
| |\ 
| |/ 
|/| 
* | 3363587 - Support control character in config (#217) (8 days ago) [ganglv]
 / 
* 505bfc2 - bookworm migration of sonic-gnmi azure pipeline and go version updation for sonic-gnmi repo (10 days ago) [ranjinidn]
```
#### How I did it
#### How to verify it
#### Description for the changelog
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.

2 participants