[lxc-devel] [PATCH] ubuntu: Fix regression in post-process

Serge Hallyn serge.hallyn at ubuntu.com
Tue Dec 3 23:43:47 UTC 2013


Quoting S.Çağlar Onur (caglar at 10ur.org):
> Hey Stéphane,
> 
> On Wed, Nov 27, 2013 at 7:49 PM, Stéphane Graber <stgraber at ubuntu.com> wrote:
> > THe recent reorg of lxc-ubuntu introduced some package installation in
> > post-process but without first disabling service startup.
> >
> > As a result, if the cache is a bit out of date and a ssh update is
> > available, post-process will apply that update (as it does apt-get
> > install ssh vim) which in turn will attemp to start sshd. This will
> > either lead to ssh on the host being restarted or if there's no sshd on
> > the host, will fail the container creation as the postinst will get an
> > error from upstart.
> >
> > The fix is very simply to add the same policy-rc.d trick when running
> > post-process.
> 
> I'm not sure whether this is the desired outcome (I haven't taken a
> look at it yet) but it looks like after this change "lxc-create -n t
> -t ubuntu" started to take more time (order of couple of minutes) to

Can you reproduce this at will - revert the change and it's faster,
reapply and it's slower?

-serge




More information about the lxc-devel mailing list