unattended-upgrades does not block shutdown of system, as it is designed to
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OEM Priority Project |
Triaged
|
Medium
|
ethan.hsieh | ||
Xenial |
Triaged
|
Medium
|
Unassigned | ||
apt (Ubuntu) |
Fix Released
|
Critical
|
Unassigned | ||
Xenial |
Fix Released
|
Critical
|
Unassigned | ||
Zesty |
Won't Fix
|
Critical
|
Unassigned | ||
unattended-upgrades (Ubuntu) |
Fix Released
|
Undecided
|
Balint Reczey | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned | ||
Zesty |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
Title: No pop-up window to warn users that system should not reboot or shutdown while installing security updates
Summary:
No pop-up window to warn users that system should not reboot or shutdown while installing security updates
Steps:
1. trigger unattended-upgrades
2. reboot or shutdown system while installing packages
Expected results: There is a pop-up window to warn users that system should not reboot or shutdown
Actual results: There is no pop-up window to warn users
Additional information:
$ apt-cache policy unattended-upgrades
unattended-
Installed: 0.90
Candidate: 0.90ubuntu0.5
$ lsb_release -rd
Description: Ubuntu 16.04 LTS
* APT SRU *
[Impact]
Stopping apt-daily-
[Test case]
Start apt-daily-
The upgrade should run to completion or a safe exit point as long as it takes less than about 900s (which is the timeout for sending kill).
[Regression potential]
Leftover processes might remain in the apt-daily-upgrade cgroup if the postinst scripts or some apt hooks do something funny.
Shutdown might take longer due to the 900 second timeout.
* unattended-upgrades SRU
[Impact]
* Undattended-
* The fix is performing the updates in minimal package sets and allow gracefully stopping between those steps when unattended-
[Test Case]
* Configure the system to have several 20+ packages upgradable by unattended-
# echo 'Unattended-
* Pre-download upgrades
# unattended-upgraded --download-only
* Trigger unattended-upgrades run:
# service apt-daily-upgrade start
* Shutdown the system from a graphical user session or by executing
# dbus-send --system --print-reply --dest=
* Observe the system unattended-upgrades being gracefully stopped, checking /var/log/
[Regression Potential]
On Xenial (with Unity) starting shutdown from the graphical session does not log the user out nor show any progress on the shutdown until the inhibition timer expires which is confusing. Users should be logged out on PrepareForShutd
no longer affects: | bluez (Ubuntu) |
affects: | unattended-upgrades → unattended-upgrades (Ubuntu) |
Changed in oem-priority: | |
importance: | Undecided → High |
assignee: | nobody → ethan.hsieh (ethan.hsieh) |
Changed in oem-priority: | |
status: | New → Confirmed |
importance: | High → Critical |
Changed in oem-priority: | |
status: | Confirmed → Triaged |
Changed in oem-priority: | |
status: | Triaged → In Progress |
tags: | added: xenial |
Changed in oem-priority: | |
status: | In Progress → Triaged |
Changed in oem-priority: | |
importance: | Critical → High |
Changed in oem-priority: | |
importance: | High → Critical |
summary: |
- No pop-up window to warn users that system should not reboot or shutdown - while installing security updates + unattended-upgrades does not block shutdown of system, as it is designed + to |
Changed in unattended-upgrades (Ubuntu): | |
assignee: | nobody → Balint Reczey (rbalint) |
Changed in unattended-upgrades (Ubuntu): | |
status: | Incomplete → In Progress |
Changed in unattended-upgrades (Ubuntu): | |
status: | Incomplete → Confirmed |
Changed in unattended-upgrades (Ubuntu): | |
status: | Confirmed → Fix Committed |
Changed in apt (Ubuntu): | |
status: | New → Fix Committed |
Changed in apt (Ubuntu Xenial): | |
status: | New → Incomplete |
status: | Incomplete → Triaged |
Changed in apt (Ubuntu Zesty): | |
status: | New → Triaged |
Changed in apt (Ubuntu): | |
importance: | Undecided → Critical |
Changed in apt (Ubuntu Zesty): | |
importance: | Undecided → Critical |
Changed in apt (Ubuntu Xenial): | |
importance: | Undecided → Critical |
Changed in apt (Ubuntu Zesty): | |
status: | Triaged → In Progress |
description: | updated |
Changed in apt (Ubuntu Xenial): | |
status: | Triaged → In Progress |
tags: | added: id-596781a4fd7307546010c061 |
tags: | added: id-5a37e0a701a3f39adbe6e4b9 |
tags: | added: id-5a816b8dd2d5924dccc5ba62 |
description: | updated |
tags: | added: oem-priority |
According to 1), system rebooted at 08:22:27, May 12.
According to 2)3)4), system was updating packages at 08:22:XX.
System rebooted while installing security updates. It resulted in the incomplete package installation.
X crash (compiz[1824]: segfault) is caused by an incomplete package installation.
1) Kern.log 965]: <info> [1494591747.8211] ModemManager disappeared from bus
kern.log
May 12 08:22:27 NetworkManager[
// System reboots
May 12 08:23:37 kernel: [ 0.000000] Initializing cgroup subsys cpuset
// It's the first time we see segfault of compiz.
May 12 08:24:14 kernel: [ 59.139613] compiz[1824]: segfault at e0 ip 00007f0b62318263 sp 00007ffdfbff4c20 error 4
2) history.log unattended- upgrade 4.4.0-75- generic: amd64 (4.4.0-75.96, automatic), ... etc
apt/history.log
Start-Date: 2017-05-12 07:43:26
Commandline: /usr/bin/
Install: linux-image-
3) dpkg.log 4.4.0-75: all 4.4.0-75.96 4.4.0-75- generic: amd64 <none> 4.4.0-75.96 4.4.0-75- generic: amd64 4.4.0-75.96
dpkg.log
2017-05-12 07:43:26 startup archives unpack
2017-05-12 07:43:27 upgrade login:amd64 1:4.2-3.1ubuntu5 1:4.2-3.1ubuntu5.2
...
2017-05-12 08:22:24 status unpacked linux-headers-
2017-05-12 08:22:24 install linux-headers-
2017-05-12 08:22:24 status half-installed linux-headers-
4) unattended- upgrades/ unattended- upgrades. log a=xenial- security' ]
2017-05-12 07:06:36,093 INFO Initial whitelisted packages:
2017-05-12 07:06:36,094 INFO Starting unattended upgrades script
2017-05-12 07:06:36,094 INFO Allowed origins are: ['o=Ubuntu,
2017-05-12 07:43:24,300 INFO Packages that will be upgraded: apparmor apport apport-gtk ... etc