[CRIU] [PATCH 11/12] p.haul: add --skipowner flag on vz restoring

Nikita Spiridonov nspiridonov at virtuozzo.com
Tue Apr 5 04:41:59 PDT 2016


On Mon, 2016-04-04 at 17:27 +0300, Alexander Burluka wrote:
> Signed-off-by: Alexander Burluka <aburluka at virtuozzo.com>
> ---
>  phaul/p_haul_vz.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/phaul/p_haul_vz.py b/phaul/p_haul_vz.py
> index 8321520..f3c63db 100644
> --- a/phaul/p_haul_vz.py
> +++ b/phaul/p_haul_vz.py
> @@ -179,7 +179,7 @@ class p_haul_type:
>  			self.__setup_restore_extra_args(args_path, img, connection)
>  			# Run vzctl restore
>  			logging.info("Starting vzctl restore")
> -			proc = subprocess.Popen([vzctl_bin, "--skiplock", "restore",
> +			proc = subprocess.Popen([vzctl_bin, "--skipowner", "--skiplock", "restore",

Please add this "--skipowner" flag to all other vzctl execs (mount,
umount, start, stop functions of vz p_haul_type). I am not sure that it
is needed in all this execs, but it is faster than review where it is
actually needed and in previous version of Virtuozzo containers life
migration vzmigrate pass "--skipowner" to all vzctl execs.

>  				self._ctid, "--dumpfile", img.image_dir()],
>  				stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
>  			proc_output = proc.communicate()[0]




More information about the CRIU mailing list