needrestart should avoid restarting runner-provisioner.service
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
needrestart (Ubuntu) | Status tracked in Oracular | |||||
Noble |
New
|
Undecided
|
Unassigned | |||
Oracular |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[ Impact ]
On GitHub action runners, if there is an update that causes needrestart to restart the runner-
While GitHub seem to have tweaked their image to workaround the issue (see https:/
users of self-hosted runners might have images lacking the workaround.
The fix is to add `runner-
[ Test Plan ]
Since GitHub patched the main configuration file to do the exclusion, this needs to be undone before doing the verification.
The verification itself should ideally be done on a GitHub runner
1) Undo GitHub config workaround:
sudo sed -i '/^\s*qr(
2) Install fixed package from proposed
echo "deb http://
sudo apt update
sudo apt install -y -t noble-proposed needrestart
3) Reinstall something that would cause the runner-
sudo apt reinstall libc6
sleep 5
echo Success
Those instructions are available in this workflow:
https:/
[ Where problems could occur ]
It is possible that other environment (non GitHub runners) have a systemd unit by the same name and excluding the service from the restart-able list would prevent their service from being restarted automatically.
The packages in the Ubuntu archive don't contain any systemd unit by that name so this risk is only for "external" packages.
[ Original bug description ]
On GitHub action runners, if there is an update that causes needrestart to restart the runner-
```
Restarting services...
/etc/needresta
systemctl restart packagekit.service php8.3-fpm.service runner-
Terminated
```
While the above shows multiple services being restarted, "artificially" restarting just runner-
```
+ sudo systemctl restart runner-
Error: Process completed with exit code 143.
```
If needrestart has a way to exclude services from being restarted, runner-
tags: | added: foundations-todo |
Changed in needrestart (Ubuntu Oracular): | |
status: | New → Fix Committed |
description: | updated |
Thanks @schopin! Looking forward for the SRU to Noble ;)