Re: [lxc-devel] [CRIU] LXC live migrate

2013-11-27 Thread Pavel Emelyanov
On 11/27/2013 06:19 AM, Qiang Huang wrote: On 2013/11/27 0:19, Marian Marinov wrote: On my test setup it works for processes like apache, dovecot and mysql. However it does not work with containers: root@s321:~# criu dump -D deb1 -t 19332 --file-locks (00.004962) Error (namespaces.c:155):

Re: [lxc-devel] [CRIU] LXC live migrate

2013-11-27 Thread Marian Marinov
On 11/27/2013 10:54 AM, Pavel Emelyanov wrote: On 11/27/2013 06:19 AM, Qiang Huang wrote: On 2013/11/27 0:19, Marian Marinov wrote: On my test setup it works for processes like apache, dovecot and mysql. However it does not work with containers: root@s321:~# criu dump -D deb1 -t 19332

Re: [lxc-devel] [CRIU] LXC live migrate

2013-11-27 Thread Daniel Lezcano
On 11/27/2013 09:54 AM, Pavel Emelyanov wrote: On 11/27/2013 06:19 AM, Qiang Huang wrote: On 2013/11/27 0:19, Marian Marinov wrote: On my test setup it works for processes like apache, dovecot and mysql. However it does not work with containers: root@s321:~# criu dump -D deb1 -t 19332

Re: [lxc-devel] [CRIU] LXC live migrate

2013-11-27 Thread Pavel Emelyanov
On 11/27/2013 01:18 PM, Marian Marinov wrote: I rebooted the container without getty on tty1 and then I got this: (00.260757) Error (mount.c:255): 86:/dev/tty4 doesn't have a proper root mount This is the reason. That's container's console which is a bind mounted tty from the host. And

Re: [lxc-devel] [CRIU] LXC live migrate

2013-11-27 Thread Pavel Emelyanov
On 11/27/2013 01:58 PM, Daniel Lezcano wrote: On 11/27/2013 09:54 AM, Pavel Emelyanov wrote: On 11/27/2013 06:19 AM, Qiang Huang wrote: On 2013/11/27 0:19, Marian Marinov wrote: On my test setup it works for processes like apache, dovecot and mysql. However it does not work with containers:

[lxc-devel] [PATCH 1/7] python3: Code style

2013-11-27 Thread Stéphane Graber
Drop any tab as spaces are preferred, get everything to fit the 80char limit. Signed-off-by: Stéphane Graber stgra...@ubuntu.com --- src/python-lxc/lxc.c | 65 +++- 1 file changed, 44 insertions(+), 21 deletions(-) diff --git

[lxc-devel] [PATCH 7/7] python3: Add (add|remove)_device_node

2013-11-27 Thread Stéphane Graber
Signed-off-by: Stéphane Graber stgra...@ubuntu.com --- src/python-lxc/lxc.c | 50 ++ 1 file changed, 50 insertions(+) diff --git a/src/python-lxc/lxc.c b/src/python-lxc/lxc.c index 43e571d..de02d4b 100644 --- a/src/python-lxc/lxc.c +++

[lxc-devel] [PATCH 6/7] python3: Add controllable property to the binding

2013-11-27 Thread Stéphane Graber
Signed-off-by: Stéphane Graber stgra...@ubuntu.com --- src/python-lxc/lxc.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/src/python-lxc/lxc.c b/src/python-lxc/lxc.c index 7c28607..43e571d 100644 --- a/src/python-lxc/lxc.c +++ b/src/python-lxc/lxc.c @@ -456,6 +456,16 @@

[lxc-devel] [PATCH 5/7] python3: Add clear_config() to the binding

2013-11-27 Thread Stéphane Graber
Signed-off-by: Stéphane Graber stgra...@ubuntu.com --- src/python-lxc/lxc.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/src/python-lxc/lxc.c b/src/python-lxc/lxc.c index 1ed8cbe..7c28607 100644 --- a/src/python-lxc/lxc.c +++ b/src/python-lxc/lxc.c @@ -546,6 +546,14 @@

[lxc-devel] [PATCH 3/7] python3: Add reboot() to the binding

2013-11-27 Thread Stéphane Graber
Signed-off-by: Stéphane Graber stgra...@ubuntu.com --- src/python-lxc/lxc.c | 16 1 file changed, 16 insertions(+) diff --git a/src/python-lxc/lxc.c b/src/python-lxc/lxc.c index 05fbff8..0604ec7 100644 --- a/src/python-lxc/lxc.c +++ b/src/python-lxc/lxc.c @@ -598,6 +598,16 @@

[lxc-devel] [PATCH 4/7] python3: Re-order all functions

2013-11-27 Thread Stéphane Graber
This properly regroups the module functions together and then sorts all other functions alphabetically to match the function and property lists. Signed-off-by: Stéphane Graber stgra...@ubuntu.com --- src/python-lxc/lxc.c | 709 ++- 1 file changed,

[lxc-devel] [PATCH 2/7] python3: Sort all method/property lists

2013-11-27 Thread Stéphane Graber
Signed-off-by: Stéphane Graber stgra...@ubuntu.com --- src/python-lxc/lxc.c | 60 ++-- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/src/python-lxc/lxc.c b/src/python-lxc/lxc.c index 3924a1b..05fbff8 100644 ---

Re: [lxc-devel] [PATCH 2/7] python3: Sort all method/property lists

2013-11-27 Thread Serge Hallyn
Quoting Stéphane Graber (stgra...@ubuntu.com): Signed-off-by: Stéphane Graber stgra...@ubuntu.com Acked-by: Serge E. Hallyn serge.hal...@ubuntu.com --- src/python-lxc/lxc.c | 60 ++-- 1 file changed, 30 insertions(+), 30 deletions(-) diff

Re: [lxc-devel] [PATCH 1/7] python3: Code style

2013-11-27 Thread Serge Hallyn
Quoting Stéphane Graber (stgra...@ubuntu.com): Drop any tab as spaces are preferred, get everything to fit the 80char limit. Signed-off-by: Stéphane Graber stgra...@ubuntu.com Acked-by: Serge E. Hallyn serge.hal...@ubuntu.com --- src/python-lxc/lxc.c | 65

Re: [lxc-devel] [PATCH 3/7] python3: Add reboot() to the binding

2013-11-27 Thread Serge Hallyn
Quoting Stéphane Graber (stgra...@ubuntu.com): Signed-off-by: Stéphane Graber stgra...@ubuntu.com Acked-by: Serge E. Hallyn serge.hal...@ubuntu.com --- src/python-lxc/lxc.c | 16 1 file changed, 16 insertions(+) diff --git a/src/python-lxc/lxc.c b/src/python-lxc/lxc.c

Re: [lxc-devel] [PATCH 4/7] python3: Re-order all functions

2013-11-27 Thread Serge Hallyn
Quoting Stéphane Graber (stgra...@ubuntu.com): This properly regroups the module functions together and then sorts all other functions alphabetically to match the function and property lists. Signed-off-by: Stéphane Graber stgra...@ubuntu.com Acked-by: Serge E. Hallyn serge.hal...@ubuntu.com

Re: [lxc-devel] [PATCH 5/7] python3: Add clear_config() to the binding

2013-11-27 Thread Serge Hallyn
Quoting Stéphane Graber (stgra...@ubuntu.com): Signed-off-by: Stéphane Graber stgra...@ubuntu.com Acked-by: Serge E. Hallyn serge.hal...@ubuntu.com --- src/python-lxc/lxc.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/src/python-lxc/lxc.c b/src/python-lxc/lxc.c

[lxc-devel] [lxc/lxc] df9e22: python3: Code style

2013-11-27 Thread GitHub
Branch: refs/heads/master Home: https://github.com/lxc/lxc Commit: df9e22ea5470b30d99630674e3127e5fb841f9c0 https://github.com/lxc/lxc/commit/df9e22ea5470b30d99630674e3127e5fb841f9c0 Author: Stéphane Graber stgra...@ubuntu.com Date: 2013-11-27 (Wed, 27 Nov 2013) Changed

[lxc-devel] [lxc/lxc] b2b917: python3: Sort list of exports

2013-11-27 Thread GitHub
Branch: refs/heads/master Home: https://github.com/lxc/lxc Commit: b2b91754e67ddd4114539e3c07d6dbb48f4a163f https://github.com/lxc/lxc/commit/b2b91754e67ddd4114539e3c07d6dbb48f4a163f Author: Stéphane Graber stgra...@ubuntu.com Date: 2013-11-27 (Wed, 27 Nov 2013) Changed

[lxc-devel] [lxc/lxc] cf642e: Fix typo in doxygen comment

2013-11-27 Thread GitHub
Branch: refs/heads/master Home: https://github.com/lxc/lxc Commit: cf642e1085063cc0081335169ffd83d7cab3899c https://github.com/lxc/lxc/commit/cf642e1085063cc0081335169ffd83d7cab3899c Author: Stéphane Graber stgra...@ubuntu.com Date: 2013-11-27 (Wed, 27 Nov 2013) Changed

[lxc-devel] [PATCH] python3: Add clone() to the binding

2013-11-27 Thread Stéphane Graber
Signed-off-by: Stéphane Graber stgra...@ubuntu.com --- src/python-lxc/lxc.c | 68 ++ src/python-lxc/lxc/__init__.py | 35 +++--- 2 files changed, 85 insertions(+), 18 deletions(-) diff --git a/src/python-lxc/lxc.c

[lxc-devel] [PATCH] python3: Allow passing create flags

2013-11-27 Thread Stéphane Graber
Signed-off-by: Stéphane Graber stgra...@ubuntu.com --- src/python-lxc/lxc.c | 14 +- src/python-lxc/lxc/__init__.py | 23 +++ 2 files changed, 24 insertions(+), 13 deletions(-) diff --git a/src/python-lxc/lxc.c b/src/python-lxc/lxc.c index

[lxc-devel] [PATCH] python3: Export some missing constants

2013-11-27 Thread Stéphane Graber
Signed-off-by: Stéphane Graber stgra...@ubuntu.com --- src/python-lxc/lxc/__init__.py | 37 + 1 file changed, 25 insertions(+), 12 deletions(-) diff --git a/src/python-lxc/lxc/__init__.py b/src/python-lxc/lxc/__init__.py index 52f0fb4..eddd198 100644 ---

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

2013-11-27 Thread Stéphane Graber
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

[lxc-devel] [lxc/lxc] 7ed86e: ubuntu: Fix regression in post-process

2013-11-27 Thread GitHub
Branch: refs/heads/master Home: https://github.com/lxc/lxc Commit: 7ed86e448617d8c1216f6e642767426769e5343e https://github.com/lxc/lxc/commit/7ed86e448617d8c1216f6e642767426769e5343e Author: Stéphane Graber stgra...@ubuntu.com Date: 2013-11-27 (Wed, 27 Nov 2013) Changed

Re: [lxc-devel] [PATCH] python3: Add clone() to the binding

2013-11-27 Thread Serge Hallyn
Quoting Stéphane Graber (stgra...@ubuntu.com): Signed-off-by: Stéphane Graber stgra...@ubuntu.com Thanks. I've only tested basic clone so far, but it looks good and if I run into any problems with the bdevtype etc we can fix those later. Acked-by: Serge E. Hallyn serge.hal...@ubuntu.com ---

Re: [lxc-devel] [PATCH] python3: Export some missing constants

2013-11-27 Thread Serge Hallyn
Quoting Stéphane Graber (stgra...@ubuntu.com): Signed-off-by: Stéphane Graber stgra...@ubuntu.com Acked-by: Serge E. Hallyn serge.hal...@ubuntu.com --- src/python-lxc/lxc/__init__.py | 37 + 1 file changed, 25 insertions(+), 12 deletions(-) diff --git

Re: [lxc-devel] [PATCH] python3: Allow passing create flags

2013-11-27 Thread Serge Hallyn
Quoting Stéphane Graber (stgra...@ubuntu.com): Signed-off-by: Stéphane Graber stgra...@ubuntu.com Acked-by: Serge E. Hallyn serge.hal...@ubuntu.com --- src/python-lxc/lxc.c | 14 +- src/python-lxc/lxc/__init__.py | 23 +++ 2 files changed, 24

[lxc-devel] [lxc/lxc] 1314b6: python3: Add clone() to the binding

2013-11-27 Thread GitHub
Branch: refs/heads/master Home: https://github.com/lxc/lxc Commit: 1314b689ec0c03a820367d1960fe2422893d6309 https://github.com/lxc/lxc/commit/1314b689ec0c03a820367d1960fe2422893d6309 Author: Stéphane Graber stgra...@ubuntu.com Date: 2013-11-27 (Wed, 27 Nov 2013) Changed

[lxc-devel] [lxc/lxc] bb711f: python3: Allow passing create flags

2013-11-27 Thread GitHub
Branch: refs/heads/master Home: https://github.com/lxc/lxc Commit: bb711f392740be5874ffaa10bf1b3dae162e6f11 https://github.com/lxc/lxc/commit/bb711f392740be5874ffaa10bf1b3dae162e6f11 Author: Stéphane Graber stgra...@ubuntu.com Date: 2013-11-27 (Wed, 27 Nov 2013) Changed

[lxc-devel] [lxc/lxc] e1a2f8: python3: Export some missing constants

2013-11-27 Thread GitHub
Branch: refs/heads/master Home: https://github.com/lxc/lxc Commit: e1a2f8980916869ad9a3ebc6181427a352f58476 https://github.com/lxc/lxc/commit/e1a2f8980916869ad9a3ebc6181427a352f58476 Author: Stéphane Graber stgra...@ubuntu.com Date: 2013-11-27 (Wed, 27 Nov 2013) Changed

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

2013-11-27 Thread Serge Hallyn
Quoting Stéphane Graber (stgra...@ubuntu.com): 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

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

2013-11-27 Thread Stéphane Graber
On Wed, Nov 27, 2013 at 09:14:24PM -0600, Serge Hallyn wrote: Quoting Stéphane Graber (stgra...@ubuntu.com): 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