Skip to content

Commit e8f93c4

Browse files
yxiecalguohan
authored andcommitted
Revert "[FastReboot]: Send SIGINT to all teamd before stop (sonic-net#633)" (sonic-net#650)
This reverts commit 7cf821c.
1 parent c1c53f5 commit e8f93c4

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

scripts/fast-reboot

+1-5
Original file line numberDiff line numberDiff line change
@@ -418,16 +418,12 @@ docker kill lldp > /dev/null
418418
systemctl stop lldp
419419
420420
if [[ "$REBOOT_TYPE" = "fast-reboot" ]]; then
421-
# Kill teamd processes inside of teamd container with SIGINT to allow them to send last LACP frames
422421
# Kill teamd, otherwise it gets down all LAGs
423422
# We call `docker kill teamd` to ensure the container stops as quickly as possible,
424423
# then immediately call `systemctl stop teamd` to prevent the service from
425424
# restarting the container automatically.
426425
# Note: teamd must be killed before syncd, because it will send the last packet through CPU port
427-
docker exec -i teamd pkill -INT teamd || [ $? == 1 ]
428-
while docker exec -i teamd pgrep teamd > /dev/null; do
429-
sleep 0.05
430-
done
426+
# TODO: stop teamd gracefully to allow teamd to send last valid update to be sure we'll have 90 seconds reboot time
431427
docker kill teamd > /dev/null
432428
systemctl stop teamd
433429
fi

0 commit comments

Comments
 (0)