Skip to content

[Mellanox] Improve FW upgrade: add locking mechanism#18925

Merged
liat-grozovik merged 1 commit intosonic-net:masterfrom
nazariig:master-fwmgr-sync-fix
Jun 10, 2024
Merged

[Mellanox] Improve FW upgrade: add locking mechanism#18925
liat-grozovik merged 1 commit intosonic-net:masterfrom
nazariig:master-fwmgr-sync-fix

Conversation

@nazariig
Copy link
Collaborator

@nazariig nazariig commented May 9, 2024

User implications:
On cold/warm/fast reboot if there is a syncd service start ongoing, the target procedure will stay blocked until the original call is done. This may delay the action in time.

Why I did it

  • Improve the upgrade fw script avoiding errors in the logs when cold reboot is executed during service restart

Work item tracking

  • N/A

How I did it

  • Added locking mechanism for Mellanox FW upgrade

How to verify it

  1. Run cold reboot after DUT first install

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)

  • master

Description for the changelog

  • N/A

Link to config_db schema for YANG module changes

  • N/A

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

      .---.        .-----------
     /     \  __  /    ------
    / /     \(  )/    -----
   //////   ' \/ `   ---
  //// / // :    : ---
 // /   /  /`    '--
//          //..\\
       ====UU====UU====
           '//||\\`
             ''``

Signed-off-by: Nazarii Hnydyn <nazariig@nvidia.com>
@nazariig nazariig requested a review from lguohan as a code owner May 9, 2024 10:36
@liat-grozovik liat-grozovik changed the title [Mellanox]: Improve FW upgrade: add locking mechanism [Mellanox] Improve FW upgrade: add locking mechanism Jun 3, 2024
@liat-grozovik
Copy link
Collaborator

@nazariig is there a user affecting change? what will happen if one starts while the second is running? can you add this to the PR description?

@nazariig
Copy link
Collaborator Author

nazariig commented Jun 6, 2024

@nazariig is there a user affecting change? what will happen if one starts while the second is running? can you add this to the PR description?

@liat-grozovik done

@liat-grozovik liat-grozovik merged commit 3965859 into sonic-net:master Jun 10, 2024
mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this pull request Jun 11, 2024
User implications:
On cold/warm/fast reboot if there is a syncd service start ongoing, the target procedure will stay blocked until the original call is done. This may delay the action in time.

- Why I did it
Improve the upgrade fw script avoiding errors in the logs when cold reboot is executed during service restart
Work item tracking

- How I did it
Added locking mechanism for Mellanox FW upgrade

- How to verify it
Run cold reboot after DUT first install

Signed-off-by: Nazarii Hnydyn <nazariig@nvidia.com>
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202311: #19278

mssonicbld pushed a commit that referenced this pull request Jun 11, 2024
User implications:
On cold/warm/fast reboot if there is a syncd service start ongoing, the target procedure will stay blocked until the original call is done. This may delay the action in time.

- Why I did it
Improve the upgrade fw script avoiding errors in the logs when cold reboot is executed during service restart
Work item tracking

- How I did it
Added locking mechanism for Mellanox FW upgrade

- How to verify it
Run cold reboot after DUT first install

Signed-off-by: Nazarii Hnydyn <nazariig@nvidia.com>
mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this pull request Jun 12, 2024
User implications:
On cold/warm/fast reboot if there is a syncd service start ongoing, the target procedure will stay blocked until the original call is done. This may delay the action in time.

- Why I did it
Improve the upgrade fw script avoiding errors in the logs when cold reboot is executed during service restart
Work item tracking

- How I did it
Added locking mechanism for Mellanox FW upgrade

- How to verify it
Run cold reboot after DUT first install

Signed-off-by: Nazarii Hnydyn <nazariig@nvidia.com>
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202405: #19294

mssonicbld pushed a commit that referenced this pull request Jun 15, 2024
User implications:
On cold/warm/fast reboot if there is a syncd service start ongoing, the target procedure will stay blocked until the original call is done. This may delay the action in time.

- Why I did it
Improve the upgrade fw script avoiding errors in the logs when cold reboot is executed during service restart
Work item tracking

- How I did it
Added locking mechanism for Mellanox FW upgrade

- How to verify it
Run cold reboot after DUT first install

Signed-off-by: Nazarii Hnydyn <nazariig@nvidia.com>
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.

7 participants