New issue
Advanced search Search tips

Issue 781028 link

Starred by 1 user

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 3
Type: Feature



Sign in to add a comment

Use Win32 API call instead of shelling out 'shutdown' in Swarming bot

Project Member Reported by mar...@chromium.org, Nov 2 2017

Issue description

Sometimes the bot is hosed in a way that it is impossible to start a new process. In this case the next best thing is to reboot the host.

Right now this is done by shelling out shutdown. This should be converted to a Win32 API call. Choose one of the following (not sure which).
InitiateSystemShutdownEx()
https://msdn.microsoft.com/en-us/library/windows/desktop/aa376874.aspx
InitiateShutdown()
https://msdn.microsoft.com/en-us/library/windows/desktop/aa376872.aspx

See issue 766877 for an example problem.
 
Labels: -Type-Bug Type-Feature
Implemented tentative implementation at https://chromium-review.googlesource.com/c/infra/luci/luci-py/+/758662. While this works at the command prompt, immediately rebooting the host, the technique consistently fails when used on a bot. This will require more investigation but this is not a priority for me now. Other people are encouraged to investigate if they can, I can give access to the staging swarming server to test it live.
Project Member

Comment 2 by sheriffbot@chromium.org, Nov 12

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: -Hotlist-Recharge-Cold
Status: Available (was: Untriaged)

Sign in to add a comment