Hello Simon, or anyone else affected, Accepted needrestart into oracular-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/needrestart/3.6-8ubuntu4.1 in a few hours, and then in the -proposed repository.
Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users. If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed- oracular to verification-done-oracular. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-oracular. In either case, without details of your testing we will not be able to proceed. Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping! N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days. ** Description changed: [ Impact ] needrestart supports restarting containers with outdated binaries when running in the context of the hypervisor, however said support appears to be broken in Noble and Oracular. While we do not want to handle containers as part of the APT-triggered restarts, the user might rely on that particular feature in their own scripts. This will get fixed by backporting an upstream fix, as well as amending the Ubuntu-mode patch. [ Test plan ] ``` apt install -t noble-proposed needrestart lxc launch ubuntu-daily:noble to-be-restarted lxc exec to-be-restarted touch /tmp/restart-marker lxc exec to-be-restarted apt remove needrestart # we don't want it to restart outdated services from within the container! lxc exec to-be-restarted apt reinstall libc6 # should make a whole lot of things outdated. apt reinstall libc-bin # the actual package doesn't matter, we just want the needrestart hook in an APT context - sleep 3 # to be sure, wait a bit for any container restart to take effect + sleep 3 # to be sure, wait a bit for any container restart to take effect (but there should be none) lxc exec to-be-restarted stat /tmp/restart-marker # This is SUPPOSED TO WORK, we don't want the APT hook to touch containers needrestart -r a sleep 3 # to make sure any restart has time to take effect lxc exec to-be-restarted stat /tmp/restart-marker # This is SUPPOSED TO FAIL, the container should have restarted. ``` [ Where problems could occur ] While the "Ubuntu mode" code is touched to avoid restarting containers, errors in that code could lead to us restarting user containers during unattended-upgrades, hence the relevant test in the test plan. ** Description changed: [ Impact ] needrestart supports restarting containers with outdated binaries when running in the context of the hypervisor, however said support appears to be broken in Noble and Oracular. While we do not want to handle containers as part of the APT-triggered restarts, the user might rely on that particular feature in their own scripts. This will get fixed by backporting an upstream fix, as well as amending the Ubuntu-mode patch. [ Test plan ] ``` apt install -t noble-proposed needrestart lxc launch ubuntu-daily:noble to-be-restarted lxc exec to-be-restarted touch /tmp/restart-marker lxc exec to-be-restarted apt remove needrestart # we don't want it to restart outdated services from within the container! lxc exec to-be-restarted apt reinstall libc6 # should make a whole lot of things outdated. apt reinstall libc-bin # the actual package doesn't matter, we just want the needrestart hook in an APT context sleep 3 # to be sure, wait a bit for any container restart to take effect (but there should be none) lxc exec to-be-restarted stat /tmp/restart-marker # This is SUPPOSED TO WORK, we don't want the APT hook to touch containers needrestart -r a - sleep 3 # to make sure any restart has time to take effect + sleep 3 # to make sure any restart has time to take effect (there should be none) lxc exec to-be-restarted stat /tmp/restart-marker # This is SUPPOSED TO FAIL, the container should have restarted. ``` [ Where problems could occur ] While the "Ubuntu mode" code is touched to avoid restarting containers, errors in that code could lead to us restarting user containers during unattended-upgrades, hence the relevant test in the test plan. ** Description changed: [ Impact ] needrestart supports restarting containers with outdated binaries when running in the context of the hypervisor, however said support appears to be broken in Noble and Oracular. While we do not want to handle containers as part of the APT-triggered restarts, the user might rely on that particular feature in their own scripts. This will get fixed by backporting an upstream fix, as well as amending the Ubuntu-mode patch. [ Test plan ] ``` apt install -t noble-proposed needrestart lxc launch ubuntu-daily:noble to-be-restarted lxc exec to-be-restarted touch /tmp/restart-marker lxc exec to-be-restarted apt remove needrestart # we don't want it to restart outdated services from within the container! lxc exec to-be-restarted apt reinstall libc6 # should make a whole lot of things outdated. apt reinstall libc-bin # the actual package doesn't matter, we just want the needrestart hook in an APT context sleep 3 # to be sure, wait a bit for any container restart to take effect (but there should be none) lxc exec to-be-restarted stat /tmp/restart-marker # This is SUPPOSED TO WORK, we don't want the APT hook to touch containers needrestart -r a - sleep 3 # to make sure any restart has time to take effect (there should be none) + sleep 3 # to make sure any restart has time to take effect lxc exec to-be-restarted stat /tmp/restart-marker # This is SUPPOSED TO FAIL, the container should have restarted. ``` [ Where problems could occur ] While the "Ubuntu mode" code is touched to avoid restarting containers, errors in that code could lead to us restarting user containers during unattended-upgrades, hence the relevant test in the test plan. ** Changed in: needrestart (Ubuntu Oracular) Status: In Progress => Fix Committed ** Tags added: verification-needed verification-needed-oracular -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2084571 Title: needrestart: container restart is broken To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/needrestart/+bug/2084571/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs