Hello community,

here is the log from the commit of package lxc for openSUSE:Factory checked in 
at 2019-11-18 20:08:57
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/lxc (Old)
 and      /work/SRC/openSUSE:Factory/.lxc.new.26869 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "lxc"

Mon Nov 18 20:08:57 2019 rev:89 rq:749167 version:3.2.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/lxc/lxc.changes  2019-09-30 15:59:10.809251561 
+0200
+++ /work/SRC/openSUSE:Factory/.lxc.new.26869/lxc.changes       2019-11-18 
20:09:15.181626814 +0100
@@ -1,0 +2,7 @@
+Mon Nov 11 23:26:49 UTC 2019 - Pavol Cupka <pal...@liguros.net>
+
+- adding a patch to fix "Containers fail to start regression lxc 3.2"
+  - patch name: lxc-3.2.1-cgroups-init-cpuset-properly.patch
+  - upstream issue - https://github.com/lxc/lxc/issues/3108
+
+-------------------------------------------------------------------

New:
----
  lxc-3.2.1-cgroups-init-cpuset-properly.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ lxc.spec ++++++
--- /var/tmp/diff_new_pack.qfUa0m/_old  2019-11-18 20:09:17.625625568 +0100
+++ /var/tmp/diff_new_pack.qfUa0m/_new  2019-11-18 20:09:17.629625566 +0100
@@ -48,6 +48,7 @@
 Source91:       missing_setuid.txt.in
 # FIX-UPSTREAM: Backport of https://github.com/lxc/lxc/pull/3102.
 Patch1:         0001-tree-wide-initialize-all-auto-cleanup-variables.patch
+Patch2:         lxc-3.2.1-cgroups-init-cpuset-properly.patch
 BuildRequires:  gcc
 BuildRequires:  automake
 BuildRequires:  libtool
@@ -131,6 +132,7 @@
 %setup
 # Fix -Werror=maybe-uninitialized build errors.
 %patch1 -p1
+%patch2 -p1
 
 %build
 ./autogen.sh

++++++ lxc-3.2.1-cgroups-init-cpuset-properly.patch ++++++
>From b31d62b847a3ee013613795094cce4acc12345ef Mon Sep 17 00:00:00 2001
From: Christian Brauner <christian.brau...@ubuntu.com>
Date: Sun, 28 Jul 2019 23:13:26 +0200
Subject: [PATCH] cgroups: initialize cpuset properly

Closes #3108.
Signed-off-by: Christian Brauner <christian.brau...@ubuntu.com>
---
 src/lxc/cgroups/cgfsng.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/lxc/cgroups/cgfsng.c b/src/lxc/cgroups/cgfsng.c
index 7b8fe6736..c29c0958e 100644
--- a/src/lxc/cgroups/cgfsng.c
+++ b/src/lxc/cgroups/cgfsng.c
@@ -496,12 +496,12 @@ static bool cg_legacy_filter_and_set_cpus(char *path, 
bool am_initialized)
        }
 
        if (!flipped_bit) {
-               DEBUG("No isolated or offline cpus present in cpuset");
-               return true;
+               cpulist = lxc_cpumask_to_cpulist(possmask, maxposs);
+               TRACE("No isolated or offline cpus present in cpuset");
+       } else {
+               cpulist = move_ptr(posscpus);
+               TRACE("Removed isolated or offline cpus from cpuset");
        }
-       DEBUG("Removed isolated or offline cpus from cpuset");
-
-       cpulist = lxc_cpumask_to_cpulist(possmask, maxposs);
        if (!cpulist) {
                ERROR("Failed to create cpu list");
                return false;
-- 
2.22.0




Reply via email to