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

[syncd.sh] Clear semaphore before updating firmware #15818

Merged

Conversation

vadymhlushko-mlnx
Copy link
Contributor

Why I did it

The hw resources should be released before updating firmware.

How I did it

Added logic to release hw resources in syncd.sh script

How to verify it

Scenario:

  1. Write a bash script to kill mlxfwmanager process in the infinite loop and run it in the background.
#!/bin/bash

while :;
do
    pkill -9 mlnxfwmanager
done
  1. Try to start the mlnfwmanager utility a few times.
  2. Stop the bash script.
  3. Start the mlxfwmanager and make sure that the semaphore is taken.
  4. Run the config reload -y command and make sure that all the dockers are in up state.

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

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

Description for the changelog

Ensure to add label/tag for the feature raised. example - PR#2174 under sonic-utilities repo. where, Generic Config and Update feature has been labelled as GCU.

Link to config_db schema for YANG module changes

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

Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
@vadymhlushko-mlnx
Copy link
Contributor Author

@vadymhlushko-mlnx
Copy link
Contributor Author

@qiluo-msft could you please help to review and merge this PR and cherry-picks?

keboliu added a commit to keboliu/sonic-buildimage that referenced this pull request Jul 25, 2023
@yxieca yxieca merged commit 9fba98c into sonic-net:master Aug 7, 2023
mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this pull request Aug 7, 2023
Why I did it
The hw resources should be released before updating firmware.

How I did it
Added logic to release hw resources in syncd.sh script

Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this pull request Aug 7, 2023
Why I did it
The hw resources should be released before updating firmware.

How I did it
Added logic to release hw resources in syncd.sh script

Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202211: #16066

@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202305: #16067

mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this pull request Aug 7, 2023
Why I did it
The hw resources should be released before updating firmware.

How I did it
Added logic to release hw resources in syncd.sh script

Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202205: #16068

@mssonicbld
Copy link
Collaborator

@vadymhlushko-mlnx cherry pick PR didn't pass PR checker. Please check!!!
#16068

2 similar comments
@mssonicbld
Copy link
Collaborator

@vadymhlushko-mlnx cherry pick PR didn't pass PR checker. Please check!!!
#16068

@mssonicbld
Copy link
Collaborator

@vadymhlushko-mlnx cherry pick PR didn't pass PR checker. Please check!!!
#16068

@liushilongbuaa
Copy link
Contributor

Sorry. automation issue.
PR checker passed.

yxieca pushed a commit that referenced this pull request Aug 10, 2023
Why I did it
The hw resources should be released before updating firmware.

How I did it
Added logic to release hw resources in syncd.sh script

Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Co-authored-by: Vadym Hlushko <62022266+vadymhlushko-mlnx@users.noreply.github.com>
sonic-otn pushed a commit to sonic-otn/sonic-buildimage that referenced this pull request Sep 20, 2023
Why I did it
The hw resources should be released before updating firmware.

How I did it
Added logic to release hw resources in syncd.sh script

Signed-off-by: Vadym Hlushko <vadymh@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