The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/2007

This e-mail was sent by the LXC bot, direct replies will not reach the author
unless they happen to be subscribed to this list.

=== Description (from pull-request) ===
In particular, same-host-different-lxd migration doesn't work right now
because of some cgroup path issues. CRIU will need to learn how to rewrite
mount paths to support this use case, but it's not a super high priority
right now.

Instead, let's use stateful snapshot/restore which will work, so that we
can at least test the CRIU machenery.

Signed-off-by: Tycho Andersen <tycho.ander...@canonical.com>
From 421c8f202b49e5cbb23d43fa63f31ef7ccd8b49f Mon Sep 17 00:00:00 2001
From: Tycho Andersen <tycho.ander...@canonical.com>
Date: Mon, 9 May 2016 08:32:03 -0600
Subject: [PATCH] rework (live) migration tests

In particular, same-host-different-lxd migration doesn't work right now
because of some cgroup path issues. CRIU will need to learn how to rewrite
mount paths to support this use case, but it's not a super high priority
right now.

Instead, let's use stateful snapshot/restore which will work, so that we
can at least test the CRIU machenery.

Signed-off-by: Tycho Andersen <tycho.ander...@canonical.com>
---
 test/suites/migration.sh | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/test/suites/migration.sh b/test/suites/migration.sh
index f092806..da0c928 100644
--- a/test/suites/migration.sh
+++ b/test/suites/migration.sh
@@ -64,8 +64,12 @@ test_migration() {
     return
   fi
 
-  lxc_remote launch testimage migratee
+  lxc_remote launch testimage l1:migratee
 
-  lxc_remote move l1:migratee l2:migratee
-  lxc_remote stop l2:migratee --force
+  # let the container do some interesting things
+  sleep 1s
+
+  lxc_remote stop --stateful l1:migratee
+  lxc_remote start l1:migratee
+  lxc_remote stop --force l1:migratee
 }
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to