Skip to content

Enhance FW upgrade mechanism#145

Closed
stephenxs wants to merge 1 commit into202211_1_RC2from
202211_1_enhance-fw-upgrade
Closed

Enhance FW upgrade mechanism#145
stephenxs wants to merge 1 commit into202211_1_RC2from
202211_1_enhance-fw-upgrade

Conversation

@stephenxs
Copy link
Copy Markdown
Owner

@stephenxs stephenxs commented Aug 3, 2023

Why I did it

  1. Enhance the diagnosis information collecting mechanism
    • If the option -v is fed, it will pass additional diagnosis flags to mlxfwmanager
    • Collect all the output from mlxfwmanager and print them to syslog if it fails
  2. Abort syncd in case waiting for device or upgrading firmware fails
Work item tracking
  • Microsoft ADO (number only):

How I did it

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)

@stephenxs stephenxs force-pushed the 202211_1_enhance-fw-upgrade branch from 3f5d631 to f8a71e1 Compare August 7, 2023 03:11
1. Enhance the diagnosis information collecting mechanism
   - If the option `-v` is fed, it will pass additional diagnosis flags to mlxfwmanager
   - Collect all the output from mlxfwmanager and print them to syslog if it fails
2. Abort syncd in case waiting for device or upgrading firmware fails

Signed-off-by: Stephen Sun <stephens@nvidia.com>
@stephenxs stephenxs force-pushed the 202211_1_enhance-fw-upgrade branch from f8a71e1 to 4a840f2 Compare August 7, 2023 03:16
@stephenxs stephenxs marked this pull request as ready for review August 7, 2023 03:29
@stephenxs
Copy link
Copy Markdown
Owner Author

close this one since the one to master has been opened #146

@stephenxs stephenxs closed this Aug 10, 2023
;;
-v|--verbose)
VERBOSE_LEVEL="${VERBOSE_MAX}"
MFT_DIAGNOSIS_FLAGS="FLASH_ACCESS_DEBUG=1 FW_COMPS_DEBUG=1"
Copy link
Copy Markdown

@nazariig nazariig Aug 10, 2023

Choose a reason for hiding this comment

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

@stephenxs imo, this is not a verbose mode but rather a debug mode. Suggest having a separate key

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

hi @nazariig
thanks for the comments. we discussed it with the team and decided to keep it as it is because we need to log all messages when MFT tool fails and it doesn't bring benefit to introduce a new option.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@stephenxs isn't it add a kind of overhead for normal operations? I remember that there were concerns to have it enabled by default

Copy link
Copy Markdown
Owner Author

@stephenxs stephenxs Aug 16, 2023

Choose a reason for hiding this comment

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

@nazariig
yes. at least, it prints more with the options. but according to MFT team, it "won't be too long".
can you remind me what the concern is? maybe taking more time in fast/warm reboot?

stephenxs pushed a commit that referenced this pull request Aug 23, 2023
…lly (sonic-net#16228)

#### Why I did it
src/sonic-gnmi
```
* ac94807 - (HEAD -> master, origin/master, origin/HEAD) Support get all with json (#145) (19 hours ago) [ganglv]
```
#### How I did it
#### How to verify it
#### Description for the changelog
@stephenxs stephenxs deleted the 202211_1_enhance-fw-upgrade branch March 7, 2024 07:36
stephenxs pushed a commit that referenced this pull request Aug 29, 2024
…utomatically (sonic-net#19897)

#### Why I did it
src/sonic-host-services
```
* 39e31a9 - (HEAD -> master, origin/master, origin/HEAD) Fix modify_single_file generate empty file issue (#145) (26 hours ago) [Hua Liu]
* 1891b0a - Add dbus service to read file stat (#142) (2 days ago) [isabelmsft]
```
#### How I did it
#### How to verify it
#### Description for the changelog
stephenxs pushed a commit that referenced this pull request Sep 24, 2024
…utomatically (sonic-net#20043)

#### Why I did it
src/sonic-host-services
```
* 4fb94d1 - (HEAD -> 202311, origin/202311) Fix modify_single_file generate empty file issue (#145) (9 minutes ago) [Hua Liu]
```
#### 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.

3 participants