Skip to content

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

Closed
vivekrnv wants to merge 2 commits intomasterfrom
fw_upgrade_mlnx
Closed

[Nvidia] [mlnx-fw-upgrade] Always Redirect RunCmd stderr to syslog #68
vivekrnv wants to merge 2 commits intomasterfrom
fw_upgrade_mlnx

Conversation

@vivekrnv
Copy link
Copy Markdown
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]]
vivekrnv pushed a commit that referenced this pull request Mar 24, 2025
… automatically (sonic-net#886)

#### Why I did it
src/sonic-platform-common
```
* 3b780b0 - (HEAD -> 202412, origin/202412) [code sync] Merge code from sonic-net/sonic-platform-common:202411 to 202412 (#68) (21 hours ago) [mssonicbld]
```
#### How I did it
#### How to verify it
#### Description for the changelog
vivekrnv pushed a commit that referenced this pull request Jul 23, 2025
…ly (sonic-net#23194)

#### Why I did it
src/sonic-ztp
```
* c20ba9c - (HEAD -> 202505, origin/202505) [ci] Upgrade agent pool from ubuntu 20.04 to latest. (#68) (24 hours ago) [mssonicbld]
```
#### How I did it
#### How to verify it
#### Description for the changelog
vivekrnv pushed a commit that referenced this pull request Feb 17, 2026
…sonic-net#25508)

#### Why I did it
src/dhcpmon
```
* d78974f - (HEAD -> master, origin/master, origin/HEAD) [dhcp_mon] Add missing #include <algorithm> for std::replace (#68) (31 hours ago) [rustiqly]
* d4934fa - Add .github/copilot-instructions.md for AI-assisted development (#67) (31 hours ago) [rustiqly]
```
#### 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.

1 participant