Comment 61 for bug 1690980

Revision history for this message
Brian Murray (brian-murray) wrote : Re: [Bug 1690980] Re: unattended-upgrades does not block shutdown of system, as it is designed to

On Tue, Aug 08, 2017 at 08:53:48AM -0000, ethan.hsieh wrote:
> @Balint
>
> I tried three times, and 0.95-16.04.0rbalint1 didn't work well.
>
> Please refer to attached file for detailed log.
>
> 1) Reboot system when unattended upgrades starts to download packages.
> //unattended-upgrades.log
> 2017-08-08 15:34:07,782 INFO Starting unattended upgrades script
> 2017-08-08 15:34:07,782 INFO Allowed origins are: ['o=Ubuntu,a=xenial', 'o=Ubuntu,a=xenial-security', 'o=UbuntuESM,a=xenial']
> //unattended-upgrades-shutdown.log
> 2017-08-08 15:36:06,358 INFO - All upgrades installed
>
> The log shows "All upgrades installed", but there is no package
> installed.
>
> 2) Reboot system after unattended upgrades downloads packages for 5mins
> //unattended-upgrades.log
> 2017-08-08 15:55:27,907 INFO Starting unattended upgrades script
> 2017-08-08 15:55:27,907 INFO Allowed origins are: ['o=Ubuntu,a=xenial', 'o=Ubuntu,a=xenial-security', 'o=UbuntuESM,a=xenial']
>
> System reboots immediately. There is no unattended-upgrades-shutdown
> log.
>
> 3) Reboot system when unattended upgrades starts to download packages.
> //unattended-upgrades.log
> 2017-08-08 16:09:03,548 INFO Starting unattended upgrades script
> 2017-08-08 16:09:03,549 INFO Allowed origins are: ['o=Ubuntu,a=xenial', 'o=Ubuntu,a=xenial-security', 'o=UbuntuESM,a=xenial']
> //unattended-upgrades-shutdown.log
> 2017-08-08 16:10:50,573 INFO - All upgrades installed
>
> The log shows "All upgrades installed", but there is no package
> installed.

Keep in mind there is also the log file
/var/log/unattended-upgrades/unattended-upgrades-dpkg.log which contains
detailed information about the packages being installed.

--
Brian Murray