[Bug 1455097] Re: /etc/pm/sleep.d/ is no more processed
Balint Reczey
balint.reczey at canonical.com
Tue Apr 9 16:46:53 UTC 2019
Verified 1.1ubuntu1.18.04.7~16.04.2 on Xenial:
ubuntu at ip-172-31-9-2:~$ dpkg -l unattended-upgrades | cat
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-===================-==========================-============-===========================================
ii unattended-upgrades 1.1ubuntu1.18.04.7~16.04.2 all automatic installation of security upgrades
ubuntu at ip-172-31-9-2:~$ sudo service apt-daily-upgrade start & tail -f /var/log/unattended-upgrades/unattended-upgrades.log
[2] 13368
2019-04-09 16:11:45,975 INFO Initial blacklisted packages:
2019-04-09 16:11:45,975 INFO Initial whitelisted packages:
2019-04-09 16:11:45,976 INFO Starting unattended upgrades script
2019-04-09 16:11:45,976 INFO Allowed origins are: o=Ubuntu,a=xenial, o=Ubuntu,a=xenial-security, o=UbuntuESM,a=xenial, o=Ubuntu,a=xenial-updates
2019-04-09 16:13:06,974 INFO Initial blacklisted packages:
2019-04-09 16:13:06,974 INFO Initial whitelisted packages:
2019-04-09 16:13:06,974 INFO Starting unattended upgrades script
2019-04-09 16:13:06,974 INFO Allowed origins are: o=Ubuntu,a=xenial, o=Ubuntu,a=xenial-security, o=UbuntuESM,a=xenial, o=Ubuntu,a=xenial-updates
2019-04-09 16:13:11,782 INFO Packages that will be upgraded: apt apt-transport-https apt-utils busybox-initramfs busybox-static cloud-init distro-info-data file grub-common grub-legacy-ec2 grub-pc grub-pc-bin grub2-common libapt-inst2.0 libapt-pkg5.0 libmagic1 libpam-systemd libpolkit-agent-1-0 libpolkit-backend-1-0 libpolkit-gobject-1-0 libsystemd0 libudev1 linux-aws linux-headers-aws linux-image-aws ntfs-3g policykit-1 rsyslog snapd systemd systemd-sysv ubuntu-core-launcher udev wget
2019-04-09 16:13:11,782 INFO Writing dpkg log to /var/log/unattended-upgrades/unattended-upgrades-dpkg.log
2019-04-09 16:13:17,835 WARNING SIGTERM received, will stop
2019-04-09 16:13:18,514 WARNING SIGNAL received, stopping
... connection lost.
After resume:
$ sudo apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
linux-aws-headers-4.4.0-1079 linux-headers-4.4.0-1079-aws linux-image-4.4.0-1079-aws linux-modules-4.4.0-1079-aws
The following packages will be upgraded:
apt apt-transport-https apt-utils busybox-initramfs busybox-static cloud-init file grub-common grub-legacy-ec2 grub-pc grub-pc-bin grub2-common libapt-inst2.0
libapt-pkg5.0 liblxc1 libmagic1 libpam-systemd libpolkit-agent-1-0 libpolkit-backend-1-0 libpolkit-gobject-1-0 libsystemd0 libudev1 linux-aws linux-headers-aws
linux-image-aws login lxc-common ntfs-3g passwd policykit-1 python-apt-common python3-apt rsyslog snapd systemd systemd-sysv ubuntu-core-launcher udev uidmap wget
40 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 15.9 MB/56.1 MB of archives.
After this operation, 118 MB of additional disk space will be used.
Do you want to continue? [Y/n] n
Abort.
ubuntu at ip-172-31-9-2:~$ journalctl -a
Apr 09 16:13:17 ip-172-31-9-2 systemd[1]: Reached target Sleep.
Apr 09 16:13:17 ip-172-31-9-2 systemd[1]: Starting Hibernate...
Apr 09 16:13:17 ip-172-31-9-2 kernel: PM: Hibernation mode set to 'platform'
Apr 09 16:13:19 ip-172-31-9-2 sudo[13368]: pam_unix(sudo:session): session closed for user root
Apr 09 16:13:19 ip-172-31-9-2 systemd[1]: Started Daily apt upgrade and clean activities.
Apr 09 16:13:19 ip-172-31-9-2 systemd-sleep[13502]: Suspending system...
Apr 09 16:15:58 ip-172-31-9-2 kernel: PM: Syncing filesystems ... done.
Apr 09 16:15:58 ip-172-31-9-2 kernel: Freezing user space processes ... (elapsed 0.001 seconds) done.
Apr 09 16:15:58 ip-172-31-9-2 kernel: PM: Marking nosave pages: [mem 0x00000000-0x00000fff]
Apr 09 16:15:58 ip-172-31-9-2 kernel: PM: Marking nosave pages: [mem 0x0009e000-0x000fffff]
Apr 09 16:15:58 ip-172-31-9-2 kernel: PM: Basic memory bitmaps created
...
** Tags removed: verification-needed verification-needed-xenial
** Tags added: verification-done verification-done-xenial
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to toshset in Ubuntu.
https://bugs.launchpad.net/bugs/1455097
Title:
/etc/pm/sleep.d/ is no more processed
Status in aiccu package in Ubuntu:
Invalid
Status in ceph package in Ubuntu:
Fix Released
Status in grub2 package in Ubuntu:
New
Status in ifplugd package in Ubuntu:
New
Status in lizardfs package in Ubuntu:
New
Status in oss4 package in Ubuntu:
New
Status in pm-utils package in Ubuntu:
Won't Fix
Status in toshset package in Ubuntu:
New
Status in unattended-upgrades package in Ubuntu:
Fix Released
Status in unattended-upgrades source package in Xenial:
Fix Committed
Bug description:
[Impact (unattended-upgrades)]
* Unattended-upgrades does not gracefully stop installing updates
when the system goes to hibernation potentially letting the system to
hibernate in a state where the system can't resume from.
[Test Case (unattended-upgrades)]
* Configure the system to have several 20+ packages upgradable by
unattended-upgrades. One easy way of setting this up is starting with
a system where packages from -security are installed but packages from
-updates are not and enabling -updates in u-u:
# echo 'Unattended-Upgrade::Allowed-Origins::
"${distro_id}:${distro_codename}-updates";' > /etc/apt/apt.conf.d
/51unattended-upgrades-updates-too
* Pre-download upgrades
# unattended-upgraded --download-only
* Trigger unattended-upgrades run:
# service apt-daily-upgrade start
* Hibernate, then resume the system and watch unattended-upgrades
being gracefully stopped, checking /var/log/unattended-upgrades
/unattended-upgrades.log. There should be packages left to be
upgraded.
[Regression Potential (unattended-upgrades)]
* The added hook for unattended-upgrades may block the system from
hibernation for 25 minutes if unattended-upgrades (or most likely a
package upgrades) hangs. There is a better solution proposed based on
systemd's inhibitor interface at https://github.com/mvo5/unattended-
upgrades/issues/162 .
[Original Bug Text]
I added a new script in /etc/pm/sleep.d/ that worked fine before the
upgrade to vivid. I was wondering why it doesn't work and I find out
that /var/log/pm-suspend.log is empty, and pm-powersave.log too (last
logs from pm-suspend were on Apr 28, when I upgraded from utopic to
vivid.
The laptop suspends and wakes fine, it just seems that no pm scripts
are run after suspend/powersave.
ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: pm-utils 1.4.1-15
ProcVersionSignature: Ubuntu 3.19.0-16.16-generic 3.19.3
Uname: Linux 3.19.0-16-generic x86_64
ApportVersion: 2.17.2-0ubuntu1
Architecture: amd64
CurrentDesktop: Unity
Date: Thu May 14 15:36:26 2015
DistributionChannelDescriptor:
# This is a distribution channel descriptor
# For more information see http://wiki.ubuntu.com/DistributionChannelDescriptor
canonical-oem-somerville-precise-amd64-20120703-2
EcryptfsInUse: Yes
InstallationDate: Installed on 2013-03-12 (792 days ago)
InstallationMedia: Ubuntu 12.04 "Precise" - Build amd64 LIVE Binary 20120703-15:08
PackageArchitecture: all
SourcePackage: pm-utils
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/aiccu/+bug/1455097/+subscriptions
More information about the foundations-bugs
mailing list