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

[Nvidia] [mlnx-fw-upgrade] Always Redirect RunCmd stderr to syslog #68

Closed
wants to merge 2 commits into from

Conversation

vivekrnv
Copy link
Owner

@vivekrnv vivekrnv commented Jul 5, 2023

Why I did it

When mlxfwquery fails during fw-upgrade script, no error is logged on why it is failed

Jun 27 07:23:36.199278 sonic INFO syncd.sh[10498]: ERROR: command failed: mlxfwmanager --query -o /tmp/mlxfwmanager-query.log
Jun 27 07:23:36.202764 sonic ERR mlnx-fw-upgrade.sh: command failed: mlxfwmanager --query -o /tmp/mlxfwmanager-query.log

How I did it

RunCmd is used with Query and list-content and both of which redirect any useful output to the file specified by the -o arg.
When not run in verbose mode, the stderr is redirected to /dev/null and thus update to always redirect any stderr to syslog

How to verify it

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)

vivekrnv added 2 commits July 5, 2023 16:49
Signed-off-by: Vivek Reddy Karri <[email protected]>
@vivekrnv vivekrnv changed the title [Nvidia] Run fw-upgrade script in verbose mode [Nvidia] [mlnx-fw-upgrade] Always Redirect RunCmd stderr to syslog Jul 5, 2023
@vivekrnv vivekrnv closed this Jul 24, 2023
@vivekrnv vivekrnv deleted the fw_upgrade_mlnx branch July 24, 2023 16:02
vivekrnv pushed a commit that referenced this pull request Oct 13, 2023
…e latest HEAD automatically (sonic-net#15016)

src/wpasupplicant/sonic-wpa-supplicant

* a24412c25 - (HEAD -> 202205, origin/master, origin/HEAD, origin/202211, origin/202205, master) [mka]: Fix unexpected cleanup (#73) (8 days ago) [Ze Gan]
* 26d1da0bc - [mka]: Fix re-establishment by reset MI (#72) (8 days ago) [Ze Gan]
* f07e0a097 - [azp]: Update build pipeline to build for Bullseye (#70) (4 weeks ago) [Ze Gan]
*   2c69e2cda - Use github code scanning instead of LGTM (#69) (6 months ago) [Liu Shilong]
|\  
| * 23abb04e5 - fix (6 months ago) [shilongliu]
| * f34d68fe6 - libdbus-1-dev (6 months ago) [shilongliu]
| * dc2dd881e - add dbus (6 months ago) [shilongliu]
| * 5de037661 - use swsscommon packages (6 months ago) [shilongliu]
| * 32c5a2729 - Use github code scanning instead of LGTM (6 months ago) [shilongliu]
|/  
* aa731b96f - [azp]: Install libyang in azure pipeline (#68) (8 months ago) [Hua Liu]
* 71b635d74 - Revert "[Azp]: Upgrade Azp to bullseye (#49)" (#66) (9 months ago) [Ze Gan]
* 7aa4e6fa4 - Adding Microsoft SECURITY.MD (#58) (9 months ago) [microsoft-github-policy-service[bot]]
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.

1 participant