starting lxd fails in a loop on slow machines
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxd (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Yesterday I made another attempt at setting up LXD-based autopkgtesting on arm64 machines. I noticed that any "lxc" command hangs eternally, because lxd.service keeps flipping between "activating" and "deactivating", but never starts up properly.
It turns out that the lxd process was at 100% CPU, generating its server SSL certificate. But this took very long, and the default 90s startup timeout killed it before this was ready. Thus it got restarted, and goto 1.
lxd.service has
ExecStartPos
Thus there needs to be a corresponding
TimeoutStartS
With that lxd.service gets enough time to generate its certs and all is well again.
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: lxd 2.0.0-0ubuntu2
ProcVersionSign
Uname: Linux 4.4.0-18-generic x86_64
ApportVersion: 2.20.1-0ubuntu1
Architecture: amd64
CurrentDesktop: i3
Date: Wed Apr 13 08:13:46 2016
EcryptfsInUse: Yes
SourcePackage: lxd
UpgradeStatus: No upgrade log present (probably fresh install)
Doh, I could have sworn I had put the matching systemd timeout in there, will fix :)