[CRIU] Can’t pause restored containers (no entry in /sys/fs/cgroup/freezer/docker/ )

Francisco Tolmasky tolmasky at gmail.com
Mon Sep 7 11:20:45 PDT 2015


I believe they were all in the cgroup. Basically we create a new container
with a process in it, and this container has an entry in
/sys/fs/cgroup/freezer/docker/ that matches the id of the container. If I
attempt to pause the container, it works as expected so I believe all the
tasks are in the cgroup. At some point, this container is checkpointed.

Later, we restore a *new* container from this checkpoint. This is a
force-restore on a non-started container. This container has a different id
of course, but no entry in /sys/fs/cgroup/freezer/docker/. As such it thus
fails to pause.

Hopefully I’ve described the sequence of events better, but I’m happy to
answer any other questions if this is vague.


On Mon, Sep 7, 2015 at 1:38 AM, Pavel Emelyanov <xemul at parallels.com> wrote:

> On 09/06/2015 12:42 AM, Francisco Tolmasky wrote:
> > It seems that when I restore from a checkpoint, no entry is placed in
> > /sys/fs/cgroup/freezer/docker/, which leads to me not being able to pause
> > the container.
>
> Were these tasks in that cgroup before dump?
>
> > I’ve seen some cgroup commits going by here, is this related/already
> being
> > addressed?
> >
> > BTW, I’ve tried first making a container, then restoring into it to try
> to
> > get my freezer entry, but restore is crashing for an unrelated reason
> when
> > I do that (we’ve only ever restored from start in our use case so not
> sure
> > at all what that is about).
> >
> > Thanks,
> >
> > Francisco
> >
> > --
> > Francisco Tolmasky
> > www.tolmasky.com <http://www.tolmasky.com>
> > tolmasky at gmail.com <mailto:tolmasky at gmail.com>
> >
> >
> > _______________________________________________
> > CRIU mailing list
> > CRIU at openvz.org
> > https://lists.openvz.org/mailman/listinfo/criu
> >
>
>


-- 
Francisco Tolmasky
www.tolmasky.com
tolmasky at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvz.org/pipermail/criu/attachments/20150907/e17ce538/attachment.html>


More information about the CRIU mailing list