group.of.nepali.translators team mailing list archive
-
group.of.nepali.translators team
-
Mailing list archive
-
Message #07068
[Bug 1576333] Re: runs to early, causes dependency loops
This bug was fixed in the package pollinate - 4.21-0ubuntu1~14.04
---------------
pollinate (4.21-0ubuntu1~14.04) trusty-proposed; urgency=medium
[ Dustin Kirkland ]
* pollinate:
- fix broken printing of binary data, this was breaking check_pollen
nagios scripts on the server
[ Junien Fridrick ]
* entropy.ubuntu.com.pem:
- simplify CA cert to just the DigiCert chain (drop GoDaddy)
pollinate (4.20-0ubuntu1) yakkety; urgency=medium
* debian/control:
- drop the anerd references, hasn't existed in basically forever
- update description
- add dummy | dh-apparmor dependency to get this building on precise,
where dh-systemd doesn't exist
- drop run-one dependency, no longer needed
- make the bsdutils dependency (for logger) explicit, add epoch
* debian/rules:
- use systemd, when possible
* pollinate:
- fix breakage on older (trusty, precise) Ubuntu, where logger does not
support --id=[ID]; check version of bsdutils (provides logger) to
ensure that it's at least ubuntu wily
- cloud-init version string
* debian/pollinate.service, debian/pollinate.upstart:
- improve the init messages logged
pollinate (4.19-0ubuntu1) yakkety; urgency=medium
[ Martin Pitt ]
* debian/pollinate.service: Move installation from network.target to
multi-user.target. network.target is too early and causes dependency loops
with e. g. NFS. (LP: #1576333)
* debian/pollinate.preinst: Clean up old enablement symlink on upgrade. This
needs to be kept until after 18.04 LTS.
pollinate (4.18-0ubuntu1) yakkety; urgency=medium
* debian/pollinate.service:
- move to later in boot, after network starts, but before ssh starts
pollinate (4.17-0ubuntu1) yakkety; urgency=medium
* debian/pollinate.service:
- use the right flag file for LP: #1578833
pollinate (4.16-0ubuntu1) yakkety; urgency=medium
[ Martin Pitt ]
* Don't run pollinate.service in containers (as containers can't and should
not write the host's random pool) and when we already have a saved random
seeds (i. e. only on first boot). (LP: #1578833)
* Bump Standards-Version to 3.9.8 (no changes needed).
[ Dustin Kirkland ]
* pollinate: use timeout(1) to limit curl, related to LP: #1578833
pollinate (4.15-0ubuntu1) xenial; urgency=medium
* pollinate: LP: #1555362
- log the right pid
pollinate (4.14-0ubuntu1) xenial; urgency=medium
* pollinate, pollinate.1: LP: #1554152
- change the failure mode of pollinate, so as to more cleanly
tolerate network failures
- add a --strict option to re-enable the previous behavior,
ie, strictly exit non-zero if pollinate fails for any reason
- we've always promised that pollinate would operate on a best-effort
basis, improving the prng seeding when possible, but failing
gracefully when not possible; as such, we've made good on the first
half of that promise, however, the latter half has proven
troublesome; this is due to the fact that if pollinate exits
non-zero, then its callers (cloud-init, maas, etc.) may well
interpret the behavior strictly as a failure to boot the system,
when in fact that's not the case; instead, we'll clearly print
a warning to syslog, and we'll retry the seeding on next pollinate
service start (e.g. a reboot); moreover, we'll carry a --strict
flag in the case that users want to opt into the previous behavior
pollinate (4.13-0ubuntu1) wily; urgency=medium
[ Robie Basak ]
* entropy.ubuntu.com.pem:
- Add "DigiCert Global Root CA" certificate from ca-certificates
package to entropy.ubuntu.com.pem. This is required to correctly
verify against the new entropy.ubuntu.com SSL certificate.
pollinate (4.12-0ubuntu1) wily; urgency=medium
* pollinate:
- add cpu hardware model to user agent
* entropy.ubuntu.com.pem:
- entropy.ubuntu.com SSL is coming up for renewal on 2015-09-15
- update the certs for the pollinate package
- Note that this changes the issuing CA to DigiCert, which requires
a new intermediary.
-- Dustin Kirkland <kirkland@xxxxxxxxxx> Mon, 11 Jul 2016 10:52:57
-0500
** Changed in: pollinate (Ubuntu Trusty)
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1576333
Title:
runs to early, causes dependency loops
Status in pollinate package in Ubuntu:
Fix Released
Status in pollinate source package in Trusty:
Fix Released
Status in pollinate source package in Xenial:
Fix Released
Status in pollinate source package in Yakkety:
Fix Released
Bug description:
The first half of the original bug report got fixed in bug 1578833,
but pollinate still runs to early.
SRU INFORMATION
===============
Impact: Causes service failures during boot when using NFS mounts, regression from bug 1578833
Reproducer:
- sudo apt-get install -y nfs-common pollinate
- echo "1.2.3.4:/foo /mnt nfs defaults,nofail 0 0" | sudo tee -a /etc/fstab
(This will start network-online.target during early boot)
- sudo reboot
- Confirm that "sudo journalctl -b -p warning" shows a dependency loop, and most probably "systemctl status network-online.target" is not running.
- Upgrade to the proposed pollinate update, reboot.
- Confirm that there is no dependency loop any more and "systemctl status network-online.target" is active.
- Confirm that "systemctl status pollinate" is "enabled" (it will have "start: condition failed", but that is intended).
- Confirm that /etc/systemd/system/network.target.wants/pollinate.service does not exist any more.
Regression potential: Low. This merely changes when pollinate.service
gets activated, and network.target is too early (nothing should
actually be started by network.target, this is mostly meant for
shutdown). The main thing that can go wrong is that the upgrade still
leaves the old
/etc/systemd/system/network.target.wants/pollinate.service symlink
behind (the maintainer scripts have to clean that up).
Original bug report:
pollinate runs too early on some of the instances i launch. Basically
nothing guarantees that it will have network access when it attempts
to run.
failure looks something like:
$ lxc launch xenial x1
$ sleep 4
$ lxc exec x1 systemctl status pollinate
● pollinate.service - Seed the pseudo random number generator on first boot
Loaded: loaded (/lib/systemd/system/pollinate.service; enabled; vendor preset: enabled)
Active: inactive (dead) since Thu 2016-04-28 17:16:03 UTC; 1min 17s ago
Process: 86 ExecStart=/usr/bin/pollinate (code=exited, status=0/SUCCESS)
Main PID: 86 (code=exited, status=0/SUCCESS)
Apr 28 17:16:03 ubuntu systemd[1]: Starting Seed the pseudo random number generator on first boot...
Apr 28 17:16:03 ubuntu pollinate[106]: client sent challenge to [https://entropy.ubuntu.com/]
Apr 28 17:16:03 ubuntu pollinate[86]: <13>Apr 28 17:16:03 pollinate[86]: client sent challenge to [https://entropy.ubuntu.com/]
Apr 28 17:16:03 ubuntu pollinate[149]: [432B blob data]
Apr 28 17:16:03 ubuntu pollinate[86]: Apr 28 17:16:03 ubuntu <13>Apr 28 17:16:03 pollinate[86]: WARNING: Network communication failed [0]\n % Total % Received % Xferd Average Speed Time Time Time Current
Apr 28 17:16:03 ubuntu pollinate[86]: Dload Upload Total Spent Left Speed
Apr 28 17:16:03 ubuntu pollinate[86]: [139B blob data]
Apr 28 17:16:03 ubuntu pollinate[86]: 17:16:03.859980 * Closing connection 0
Apr 28 17:16:03 ubuntu pollinate[86]: curl: (6) Could not resolve host: entropy.ubuntu.com
Apr 28 17:16:03 ubuntu systemd[1]: Started Seed the pseudo random number generator on first boot.
This seems like it might work:
# diff -u /lib/systemd/system/pollinate.service.dist /lib/systemd/system/pollinate.service
--- /lib/systemd/system/pollinate.service.dist 2016-04-28 17:19:10.807971336 +0000
+++ /lib/systemd/system/pollinate.service 2016-04-28 17:19:17.839874541 +0000
@@ -2,6 +2,7 @@
Description=Seed the pseudo random number generator on first boot
DefaultDependencies=no
After=sysinit.target
+After=network.target
Before=ssh.service
[Service]
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: pollinate 4.15-0ubuntu1 [modified: usr/bin/pollinate]
ProcVersionSignature: Ubuntu 4.4.0-18.34-generic 4.4.6
Uname: Linux 4.4.0-18-generic x86_64
ApportVersion: 2.20.1-0ubuntu2
Architecture: amd64
Date: Thu Apr 28 16:39:17 2016
PackageArchitecture: all
ProcEnviron:
TERM=xterm-256color
PATH=(custom, no user)
SourcePackage: pollinate
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pollinate/+bug/1576333/+subscriptions