unattended-upgrade cancellation does not work
Bug #1968146 reported by
Alexandre Ghiti
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
subiquity (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Cancelling the unattended-upgrade at the very end of the installation process does not seem to work as we can see in the logs that the upgrade goes on: this issue is particularly visible on riscv where it takes a very long time.
Attached a targz of /var/log.
To post a comment you must log in.
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> journald. service: Found left-over process 26641 (systemd-journa> journald. service: Found left-over process 27038 (systemd-journa> journald[ 58620]: File /var/log/ journal/ 259b437d315445d 0806361b688e241 37/system. journal corrupted or uncleanly shut down, renaming and replacing. journald[ 36530]: Failed to write entry (10 items, 319 bytes), ignoring: Inv> journald[ 16707]: Failed to write entry (25 items, 723 bytes), ignoring: Inv> virtual/ block/loop7.
Apr 07 11:29:59 ubuntu-server systemd[1]: systemd-
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-
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-
Apr 07 11:30:00 ubuntu-server systemd-
Apr 07 11:30:01 ubuntu-server systemd-
Apr 07 11:30:02 ubuntu-server systemd[1]: Unnecessary job was removed for /sys/devices/