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 graceful shutdown should not be ignored #14129

Closed

Conversation

Junchao-Mellanox
Copy link
Collaborator

@Junchao-Mellanox Junchao-Mellanox commented Mar 7, 2023

Depends on sonic-net/sonic-sairedis#1216

Why I did this?

Due to a limitation in mellanox platform, sonic ignores syncs graceful shutdown in syncd.sh previously. However, ignoring graceful shutdown in syncd.sh also ignores closing other resources such as removing all counters.
This PR changes syncd shutdown flow for mellanox platform to make sure it execute graceful shutdown flow. There is another PR for sonic-sairedis to make sure mellanox platform does not call remove_switch for cold shutdown.

How I test this?

Running config reload on many platforms and check result.

nazariig
nazariig previously approved these changes Mar 7, 2023
liat-grozovik
liat-grozovik previously approved these changes Mar 7, 2023
@Junchao-Mellanox
Copy link
Collaborator Author

/azpw run Azure.sonic-buildimage

@mssonicbld
Copy link
Collaborator

/AzurePipelines run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@Junchao-Mellanox
Copy link
Collaborator Author

/azpw run Azure.sonic-buildimage

@mssonicbld
Copy link
Collaborator

/AzurePipelines run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@Junchao-Mellanox
Copy link
Collaborator Author

sairedis PR has merged, pending submodule update PR #14235

@Junchao-Mellanox
Copy link
Collaborator Author

Hi @saiarcot895, @qiluo-msft , could you please help review this?

@Junchao-Mellanox
Copy link
Collaborator Author

Hi @saiarcot895, @qiluo-msft , kindly reminder.

@keboliu
Copy link
Collaborator

keboliu commented Apr 8, 2023

@saiarcot895 @qiluo-msft would you please help to review?

@liat-grozovik liat-grozovik dismissed stale reviews from nazariig and themself via 43eda20 April 13, 2023 11:18
@@ -104,34 +104,32 @@ function stopplatform1() {
debug "Stopped pmon service"
fi

if [[ x$sonic_asic_platform != x"mellanox" ]] || [[ x$TYPE != x"cold" ]]; then
Copy link
Collaborator

@qiluo-msft qiluo-msft Apr 14, 2023

Choose a reason for hiding this comment

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

[[ x$TYPE != x"cold" ]];

Why remove the condition? Maybe you intend only to remove the sonic_asic_platform check. #Closed

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Hi @qiluo-msft , we intend to remove the whole if block because:

Copy link
Collaborator

Choose a reason for hiding this comment

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

@qiluo-msft would you please check the feedback from Junchao?

@Junchao-Mellanox Junchao-Mellanox marked this pull request as draft April 23, 2023 03:01
@liat-grozovik
Copy link
Collaborator

@Junchao-Mellanox IMO this fix is not relevant any more and the sairedis changes were reverted.
I am closing the PR, if you wish to have it back please reopen.

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.

8 participants