bottlerocket-admin-container icon indicating copy to clipboard operation
bottlerocket-admin-container copied to clipboard

systemd restart loop delays shutdown

Open bcressey opened this issue 1 year ago • 0 comments

Image I'm using: v0.11.7

Issue or Feature Request: When testing locally in aws-dev, I issued an apiclient reboot command and hit an error where this pair of messages spammed the console during system shutdown:

[  135.289329] host-containers@admin[1168]: [email protected] has no holdoff time, scheduling restart.
[  135.290142] host-containers@admin[1168]: Stop job pending for unit, delaying automatic restart.

I've also heard scattered reports that enabling the admin container can cause delays when scaling in a cluster, and I suspect this might be the culprit.

systemd fixed this upstream in https://github.com/systemd/systemd/commit/c972880640ee19e89ce9265d8eae1b3aae190332 which we should add to the systemd patches here.

bcressey avatar May 03 '24 19:05 bcressey