Skip to content

Commit

Permalink
Revert "[FastReboot]: Send SIGINT to all teamd before stop (sonic-net…
Browse files Browse the repository at this point in the history
…#633)" (sonic-net#650)

This reverts commit 7cf821c.
  • Loading branch information
yxieca authored and lguohan committed Sep 17, 2019
1 parent c1c53f5 commit e8f93c4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions scripts/fast-reboot
Original file line number Diff line number Diff line change
Expand Up @@ -418,16 +418,12 @@ docker kill lldp > /dev/null
systemctl stop lldp
if [[ "$REBOOT_TYPE" = "fast-reboot" ]]; then
# Kill teamd processes inside of teamd container with SIGINT to allow them to send last LACP frames
# Kill teamd, otherwise it gets down all LAGs
# We call `docker kill teamd` to ensure the container stops as quickly as possible,
# then immediately call `systemctl stop teamd` to prevent the service from
# restarting the container automatically.
# Note: teamd must be killed before syncd, because it will send the last packet through CPU port
docker exec -i teamd pkill -INT teamd || [ $? == 1 ]
while docker exec -i teamd pgrep teamd > /dev/null; do
sleep 0.05
done
# TODO: stop teamd gracefully to allow teamd to send last valid update to be sure we'll have 90 seconds reboot time
docker kill teamd > /dev/null
systemctl stop teamd
fi
Expand Down

0 comments on commit e8f93c4

Please sign in to comment.