[cgmanager-devel] [cgmanager/cgmanager] 2f856c: move cgmanager socket into a private directory

GitHub noreply at github.com
Fri Jan 10 21:19:26 UTC 2014


  Branch: refs/heads/master
  Home:   https://github.com/cgmanager/cgmanager
  Commit: 2f856c4094e32082a340289f1459fb5fb791c5cf
      https://github.com/cgmanager/cgmanager/commit/2f856c4094e32082a340289f1459fb5fb791c5cf
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2014-01-10 (Fri, 10 Jan 2014)

  Changed paths:
    M Makefile.am
    M cgmanager-proxy.c
    M cgmanager.c
    A cgmanager.h

  Log Message:
  -----------
  move cgmanager socket into a private directory

The issue is:  when a container is started, it gets a bind mount
of the socket itself.  If the manager exits and restarts, then
the container must be stopped and re-started to pick up the new
bind mount.

So keep a /sys/fs/cgroup/cgmanager/ directory and bind mount
that into the container instead.  The cgproxy moves the directory
mount to /sys/fs/cgroup/cgmanager.lower and creates its own
/sys/fs/cgroup/cgmanager.  Now if the cgmanager restarts,
the cgproxy in the container can detect that and simply reload
the new socket from the /sys/fs/cgroup/cgmanager directory.
Note cgproxy does not yet detect this condition on its own, but
that should be easy to do.  At least now the container can simply
stop cgproxy;  start cgproxy and pick up the new socket.

Signed-off-by: Serge Hallyn <serge.hallyn at ubuntu.com>


  Commit: bc5ba348893e072ca9ce15fa141028b5b8a7f4af
      https://github.com/cgmanager/cgmanager/commit/bc5ba348893e072ca9ce15fa141028b5b8a7f4af
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2014-01-10 (Fri, 10 Jan 2014)

  Changed paths:
    M Makefile.am

  Log Message:
  -----------
  update library api version to reflect socket move

Signed-off-by: Serge Hallyn <serge.hallyn at ubuntu.com>


Compare: https://github.com/cgmanager/cgmanager/compare/1f4eb608614e...bc5ba348893e


More information about the cgmanager-devel mailing list