I made several attempts using focal & jammy as the base iso on amd64 VMs.
I tested with the current version of Subiquity in main (that includes 
systemd-run), as well as the 22.02.2 version.

The behavior was different but at the end of the day, I wasn't able to
cancel unattended-upgrades properly in any scenario.

The worst experience was arguably on 22.02.2 with Jammy. As soon as
"cancel updates and reboot" was hit, it seems like the startup sequence
started. However, unattended-upgrades was still running and the
unattended-upgrade-shutdown --stop-only process still running as well.

The journal started to fill very quickly and soon I ended up with a mix
of:

Apr 07 11:29:59 ubuntu-server systemd[1]: This usually indicates unclean 
termination of a previous run, or servic>
Apr 07 11:29:59 ubuntu-server systemd[1]: systemd-journald.service: Found 
left-over process 26641 (systemd-journa>
Apr 07 11:29:59 ubuntu-server systemd[1]: This usually indicates unclean 
termination of a previous run, or servic>
Apr 07 11:29:59 ubuntu-server systemd[1]: systemd-journald.service: Found 
left-over process 27038 (systemd-journa>
Apr 07 11:29:59 ubuntu-server systemd[1]: This usually indicates unclean 
termination of a previous run, or servic>
Apr 07 11:30:01 ubuntu-server systemd-journald[58620]: File 
/var/log/journal/259b437d315445d0806361b688e24137/system.journal corrupted or 
uncleanly shut down, renaming and replacing.
Apr 07 11:30:00 ubuntu-server systemd-journald[36530]: Failed to write entry 
(10 items, 319 bytes), ignoring: Inv>
Apr 07 11:30:01 ubuntu-server systemd-journald[16707]: Failed to write entry 
(25 items, 723 bytes), ignoring: Inv>
Apr 07 11:30:02 ubuntu-server systemd[1]: Unnecessary job was removed for 
/sys/devices/virtual/block/loop7.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1968146

Title:
  unattended-upgrade cancellation does not work

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/subiquity/+bug/1968146/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to