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

Increase syncd start timeout #2776

Merged
merged 2 commits into from
Apr 24, 2019

Conversation

andriymoroz-mlnx
Copy link
Collaborator

Signed-off-by: Andriy Moroz c_andriym@mellanox.com

- What I did
Increased syncd start timeout to let post-boot FW update on Mellanox platform finish successfully.

- How I did it
Added TimeoutSec field to the syncd service config

- How to verify it
Verified upgrade from 201803 to 201811 or master finishes successfully

- Description for the changelog

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

Signed-off-by: Andriy Moroz <c_andriym@mellanox.com>
Copy link
Collaborator

@qiluo-msft qiluo-msft left a comment

Choose a reason for hiding this comment

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

Looks like a workaround, not a fix.
The fast-reboot or warm-reboot time will be impacted.

@@ -22,6 +22,9 @@ Environment=sonic_asic_platform={{ sonic_asic_platform }}
ExecStartPre=/usr/local/bin/syncd.sh start
ExecStart=/usr/local/bin/syncd.sh wait
ExecStop=/usr/local/bin/syncd.sh stop
{% if sonic_asic_platform == 'mellanox' %}
TimeoutSec=150
Copy link
Collaborator

@qiluo-msft qiluo-msft Apr 14, 2019

Choose a reason for hiding this comment

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

TimeoutSec [](start = 0, length = 10)

Is it better to use TimeoutStartSec? #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.

agree

Signed-off-by: Andriy Moroz <c_andriym@mellanox.com>
@yxieca
Copy link
Contributor

yxieca commented Apr 15, 2019

@andriymoroz-mlnx do we still want to merge this change after #2788 being merged to 201803?

This is just a question, not a rejection :-)

@andriymoroz-mlnx
Copy link
Collaborator Author

yes, because if after upgrade reboot will be via power/kernel crash/etc or user will not change default in GRUB but select it manually on boot we need this fix to let post-boot FW burn finish successfully

@liat-grozovik
Copy link
Collaborator

Just to summarize.
In all recent active branches (including 201803) the FW burn is done before the reboot command (any reboot type which is supported). But in rare cases when FW is to be burn after power off/hard reset we should make sure syncd will not be restarted in the middle of that.

@liat-grozovik liat-grozovik merged commit ca7924e into sonic-net:master Apr 24, 2019
yxieca pushed a commit that referenced this pull request Apr 26, 2019
* Increase syncd start timeout

Signed-off-by: Andriy Moroz <c_andriym@mellanox.com>

* Replace TimeoutSec to TimeoutStartSec

Signed-off-by: Andriy Moroz <c_andriym@mellanox.com>
MichelMoriniaux pushed a commit to criteo-forks/sonic-buildimage that referenced this pull request May 28, 2019
* Increase syncd start timeout

Signed-off-by: Andriy Moroz <c_andriym@mellanox.com>

* Replace TimeoutSec to TimeoutStartSec

Signed-off-by: Andriy Moroz <c_andriym@mellanox.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.

5 participants