[CRIU] [PATCH 1/3] p.haul: add --dst-id option

Nikita Spiridonov nspiridonov at virtuozzo.com
Fri Apr 15 06:12:57 PDT 2016


Add --dst-id option needed to handle migration with id change.

Signed-off-by: Nikita Spiridonov <nspiridonov at virtuozzo.com>
---
 phaul/args_parser.py |    1 +
 phaul/p_haul_vz.py   |    1 -
 2 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/phaul/args_parser.py b/phaul/args_parser.py
index 165ef60..f6945f8 100644
--- a/phaul/args_parser.py
+++ b/phaul/args_parser.py
@@ -25,6 +25,7 @@ def parse_client_args():
 	parser.add_argument("--fdfs", help="Module specific definition of fs channel")
 	parser.add_argument("--mode", choices=iters.MIGRATION_MODES,
 		default=iters.MIGRATION_MODE_LIVE, help="Mode of migration")
+	parser.add_argument("--dst-id", help="ID at destination")
 	parser.add_argument("-v", default=criu_api.def_verb, type=int, dest="verbose", help="Verbosity level")
 	parser.add_argument("--keep-images", default=False, action='store_true', help="Keep images after migration")
 	parser.add_argument("--dst-rpid", default=None, help="Write pidfile on restore")
diff --git a/phaul/p_haul_vz.py b/phaul/p_haul_vz.py
index b867477..c1d28d0 100644
--- a/phaul/p_haul_vz.py
+++ b/phaul/p_haul_vz.py
@@ -301,7 +301,6 @@ class p_haul_type:
 
 def add_hauler_args(parser):
 	"""Add Virtuozzo specific command line arguments"""
-	parser.add_argument("--vz-dst-ctid", help="ctid at destination")
 	parser.add_argument("--vz-shared-disks", help="List of shared storage disks")
 
 
-- 
1.7.1



More information about the CRIU mailing list