Skip to content

Syncd graceful shutdown should not be ignored#14129

Closed
Junchao-Mellanox wants to merge 2 commits intosonic-net:masterfrom
Junchao-Mellanox:fix-syncd-stop
Closed

Syncd graceful shutdown should not be ignored#14129
Junchao-Mellanox wants to merge 2 commits intosonic-net:masterfrom
Junchao-Mellanox:fix-syncd-stop

Conversation

@Junchao-Mellanox
Copy link
Copy Markdown
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
Copy Markdown
Collaborator Author

/azpw run Azure.sonic-buildimage

@mssonicbld
Copy link
Copy Markdown
Collaborator

/AzurePipelines run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@Junchao-Mellanox
Copy link
Copy Markdown
Collaborator Author

/azpw run Azure.sonic-buildimage

@mssonicbld
Copy link
Copy Markdown
Collaborator

/AzurePipelines run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@Junchao-Mellanox
Copy link
Copy Markdown
Collaborator Author

sairedis PR has merged, pending submodule update PR #14235

@Junchao-Mellanox
Copy link
Copy Markdown
Collaborator Author

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

@Junchao-Mellanox
Copy link
Copy Markdown
Collaborator Author

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

@keboliu
Copy link
Copy Markdown
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
debug "Stopped pmon service"
fi

if [[ x$sonic_asic_platform != x"mellanox" ]] || [[ x$TYPE != x"cold" ]]; then
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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?

@qiluo-msft qiluo-msft requested a review from vaibhavhd April 22, 2023 00:26
@Junchao-Mellanox Junchao-Mellanox marked this pull request as draft April 23, 2023 03:01
@liat-grozovik
Copy link
Copy Markdown
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