[Bug 1455097] Re: /etc/pm/sleep.d/ is no more processed
Balint Reczey
balint.reczey at canonical.com
Tue Apr 9 21:10:48 UTC 2019
Verified 1.1ubuntu1.18.04.7~16.04.2 on Xenial, now without acpdid:
ubuntu at ip-172-31-3-29:~$ sudo service apt-daily-upgrade start & sleep 1; tail -f /var/log/unattended-upgrades/unattended-upgrades.log
[1] 1607
2019-04-09 20:58:27,975 INFO Initial blacklisted packages:
2019-04-09 20:58:27,975 INFO Initial whitelisted packages:
2019-04-09 20:58:27,975 INFO Starting unattended upgrades script
2019-04-09 20:58:27,975 INFO Allowed origins are: o=Ubuntu,a=xenial, o=Ubuntu,a=xenial-security, o=UbuntuESM,a=xenial
2019-04-09 20:58:31,986 INFO Packages that will be upgraded: busybox-initramfs busybox-static file 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 snapd systemd systemd-sysv ubuntu-core-launcher udev wget
2019-04-09 20:58:31,987 INFO Writing dpkg log to /var/log/unattended-upgrades/unattended-upgrades-dpkg.log
2019-04-09 20:58:49,942 WARNING SIGTERM received, will stop
2019-04-09 20:58:52,944 WARNING SIGTERM received, will stop
2019-04-09 20:58:53,159 WARNING SIGNAL received, stopping
ubuntu at ip-172-31-3-29:~$ cat /var/log/unattended-upgrades/unattended-upgrades-dpkg.log .
Log started: 2019-04-09 20:58:35
(Reading database ... 76460 files and directories currently installed.)
Preparing to unpack .../libpolkit-gobject-1-0_0.105-14.1ubuntu0.5_amd64.deb ...
Unpacking libpolkit-gobject-1-0:amd64 (0.105-14.1ubuntu0.5) over (0.105-14.1ubuntu0.4) ...
Processing triggers for libc-bin (2.23-0ubuntu11) ...
Setting up libpolkit-gobject-1-0:amd64 (0.105-14.1ubuntu0.5) ...
Processing triggers for libc-bin (2.23-0ubuntu11) ...
Log ended: 2019-04-09 20:58:37
...
ubuntu at ip-172-31-3-29:~$ 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-3-29:~$ yes no | 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 cloud-init distro-info-data file grub-common grub-legacy-ec2 grub-pc
grub-pc-bin grub2-common libapt-inst2.0 libapt-pkg5.0 liblxc1 libmagic1 libpam-systemd 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
35 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/54.7 MB of archives.
After this operation, 118 MB of additional disk space will be used.
Do you want to continue? [Y/n] Abort.
ubuntu at ip-172-31-3-29:~$ dpkg -l acpid
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
+++-======================-================-================-==================================================
rc acpid 1:2.0.26-1ubuntu amd64 Advanced Configuration and Power Interface event d
ubuntu at ip-172-31-3-29:~$ journalctl -a
...
Apr 09 20:58:49 ip-172-31-3-29 kernel: PM: Hibernation mode set to 'platform'
Apr 09 20:58:53 ip-172-31-3-29 systemd[1]: Started Daily apt upgrade and clean activities.
Apr 09 20:58:53 ip-172-31-3-29 sudo[1607]: pam_unix(sudo:session): session closed for user root
Apr 09 20:58:55 ip-172-31-3-29 systemd-sleep[8427]: Suspending system...
Apr 09 20:59:46 ip-172-31-3-29 kernel: PM: Syncing filesystems ... done.
Apr 09 20:59:46 ip-172-31-3-29 kernel: Freezing user space processes ... (elapsed 0.000 seconds) done.
...
** 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
OpenStack, which is subscribed to ceph 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 Ubuntu-openstack-bugs
mailing list