cloud-init package install is unreliable

Bug #1686454 reported by Adrian Bridgett
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-init (Ubuntu)
New
Undecided
Unassigned

Bug Description

Using 0.7.9-48-g1c795b9-0ubuntu1~16.04.1 and testing on two machines, I had a 50% failure rate when installing "sl" and "mutt" packages (just testing).

dpkg: error: dpkg status database is locked by another process

There's nothing else in cloud-init that'd be running dpkg so I suspect this is a race with e.g. an apt-get update running as part of a boot (nothing I've specifically asked for in other words).

I might try and work around this with aptdcon as per https://askubuntu.com/questions/132059/how-to-make-a-package-manager-wait-if-another-instance-of-apt-is-running (we build AMIs and this is when we add user-data to those AMIs so we can _ensure_ that aptdcon is installed before user-data).

However it looks like cloud-init and package: is unreliable in other cases.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.