Comment 14 for bug 1317197

Revision history for this message
Andrew Wilkins (axwalk) wrote :

@raharper: I think there may be some confusion from the initial replies on this bug. I'll explain what the problem was, and how I've fixed it. As far as I'm aware, with my change you should get the same behaviour as in 1.16. If there's still an issue, please let me know and I'll got onto it ASAP.

In 1.16 we installed the lxc package during cloud-init, along with a bunch of other packages. To cut down on installation time, the code was changed to defer installation of lxc until an lxc container is first added to the machine. This is where the regression occurred: there was no serialisation of the package installation with charm hooks, which may also execute apt/dpkg commands.

The change I made was simply to serialise the installation of lxc with hook execution. There's no retrying of package installation, because it will simply block until the hooks have finished executing.

Please ignore all the talk about status messages. This is relating to some work we have scheduled for improving feedback, but this is only an enhancement and has not been started yet.