1. 27 Oct, 2014 9 commits
  2. 22 Oct, 2014 4 commits
  3. 20 Oct, 2014 4 commits
  4. 17 Oct, 2014 4 commits
  5. 15 Oct, 2014 11 commits
  6. 13 Oct, 2014 1 commit
  7. 09 Oct, 2014 3 commits
  8. 08 Oct, 2014 4 commits
    • systemd/selinux init scripts fixups · f3b8088d
      Dwight Engen authored
      - RHEL/OL 7 doesn't have the ifconfig command by default so have the
        lxc-net script check for its existence before use, and fall back
        to using the ip command if ifconfig is not available
      
      - When lxc-net is run from systemd on a system with selinux enabled,
        the mkdir -p ${varrun} will create /run/lxc as init_var_run_t which
        dnsmasq can't write its pid into, so we restorecon it
        after creation (to var_run_t)
      
      - The lxc-net systemd .service file needs an [Install] section so that
        "systemctl enable lxc-net" will work
      Signed-off-by: 's avatarDwight Engen <dwight.engen@oracle.com>
    • lxc-checkpoint: close stdout/stdin when daemonizing · 7943ec56
      Tycho Andersen authored
      If we don't close these running lxc-checkpoint via:
      
      ssh host "sudo lxc-checkpoint ..."
      
      just hangs. We leave stderr open so that subesquent errors will print correctly
      (and also because for whatever reason it doesn't break ssh :).
      
      Signed-off-by: Tycho Andersen <tycho.andersen at canonical.com>
      Signed-off-by: 's avatarSerge Hallyn <serge.hallyn@ubuntu.com>
    • restore: create cgroups for criu · 2ba7a429
      Tycho Andersen authored
      Previously, we let criu create the cgroups for a container as it was restoring
      things. In some cases (i.e. migration across hosts), if the container being
      migrated was in /lxc/u1-3, it would be migrated to the target host in
      /lxc/u1-3, even if there was no /lxc/u1-2 (or worse, if there was already an
      alive container in u1-3).
      
      Instead, we use lxc's cgroup_create, and then tell criu where to restore to.
      Signed-off-by: 's avatarTycho Andersen <tycho.andersen@canonical.com>
      Acked-by: 's avatarSerge E. Hallyn <serge.hallyn@ubuntu.com>
    • restore: Hoist handler to function level · dbb51a43
      Tycho Andersen authored
      On Tue, Oct 07, 2014 at 07:33:07PM +0000, Tycho Andersen wrote:
      > This commit is in preparation for the cgroups create work, since we will need
      > the handler in both the parent and the child. This commit also re-works how
      > errors are propagated to be less verbose.
      
      Here is an updated version:
      
      From 941623498a49551411ccf185146061f3f37d3a67 Mon Sep 17 00:00:00 2001
      From: Tycho Andersen <tycho.andersen@canonical.com>
      Date: Tue, 7 Oct 2014 19:13:51 +0000
      Subject: [PATCH 1/2] restore: Hoist handler to function level
      
      This commit is in preparation for the cgroups create work, since we will need
      the handler in both the parent and the child. This commit also re-works how
      errors are propagated to be less verbose.
      
      v2: rename error to has_error, handle it correctly, and remove some diff noise
      Signed-off-by: 's avatarTycho Andersen <tycho.andersen@canonical.com>
      Acked-by: 's avatarSerge E. Hallyn <serge.hallyn@ubuntu.com>