[lxc-devel] [lxd/master] Properly handle --target in copy/move

stgraber on Github lxc-bot at linuxcontainers.org
Fri Jun 8 17:12:51 UTC 2018


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 301 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20180608/ce577695/attachment.bin>
-------------- next part --------------
From 7363bab5e25024b4c2886d8059d9443c3181319a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Fri, 8 Jun 2018 13:11:50 -0400
Subject: [PATCH 1/2] lxc: Properly handle --target in copy and move
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Reported in #4633

Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
---
 lxc/copy.go | 10 +++++-----
 lxc/move.go | 27 +++++++++++++--------------
 2 files changed, 18 insertions(+), 19 deletions(-)

diff --git a/lxc/copy.go b/lxc/copy.go
index c392cf7de..86ab5bfca 100644
--- a/lxc/copy.go
+++ b/lxc/copy.go
@@ -65,11 +65,6 @@ func (c *cmdCopy) copyContainer(conf *config.Config, sourceResource string,
 		return err
 	}
 
-	// Target member and destination remote can't be used together.
-	if c.flagTarget != "" && sourceRemote != destRemote {
-		return fmt.Errorf(i18n.G("You must use the same source and destination remote when using --target"))
-	}
-
 	// Make sure we have a container or snapshot name
 	if sourceName == "" {
 		return fmt.Errorf(i18n.G("You must specify a source container name"))
@@ -105,6 +100,11 @@ func (c *cmdCopy) copyContainer(conf *config.Config, sourceResource string,
 		}
 	}
 
+	// Confirm that --target is only used with a cluster
+	if c.flagTarget != "" && !dest.IsClustered() {
+		return fmt.Errorf(i18n.G("To use --target, the destination remote must be a cluster"))
+	}
+
 	// Parse the config overrides
 	configMap := map[string]string{}
 	for _, entry := range c.flagConfig {
diff --git a/lxc/move.go b/lxc/move.go
index 6db73a6d6..3f3ddf6a7 100644
--- a/lxc/move.go
+++ b/lxc/move.go
@@ -94,11 +94,6 @@ func (c *cmdMove) Run(cmd *cobra.Command, args []string) error {
 		}
 	}
 
-	// Target member and destination remote can't be used together.
-	if c.flagTarget != "" && sourceRemote != destRemote {
-		return fmt.Errorf(i18n.G("You must use the same source and destination remote when using --target"))
-	}
-
 	// As an optimization, if the source an destination are the same, do
 	// this via a simple rename. This only works for containers that aren't
 	// running, containers that are running should be live migrated (of
@@ -146,11 +141,12 @@ func (c *cmdMove) Run(cmd *cobra.Command, args []string) error {
 	// cluster member to another. In case the rootfs of the container is
 	// backed by ceph, we want to re-use the same ceph volume. This assumes
 	// that the container is not running.
-	if c.flagTarget != "" {
+	if sourceRemote == destRemote && c.flagTarget != "" {
 		moved, err := maybeMoveCephContainer(conf, sourceResource, destResource, c.flagTarget)
 		if err != nil {
 			return err
 		}
+
 		if moved {
 			return nil
 		}
@@ -188,16 +184,11 @@ func maybeMoveCephContainer(conf *config.Config, sourceResource, destResource, t
 	}
 
 	// Parse the destination.
-	destRemote, destName, err := conf.ParseRemote(destResource)
+	_, destName, err := conf.ParseRemote(destResource)
 	if err != nil {
 		return false, err
 	}
 
-	if sourceRemote != destRemote {
-		return false, fmt.Errorf(
-			i18n.G("You must use the same source and destination remote when using --target"))
-	}
-
 	// Make sure we have a container or snapshot name.
 	if sourceName == "" {
 		return false, fmt.Errorf(i18n.G("You must specify a source container name"))
@@ -214,6 +205,11 @@ func maybeMoveCephContainer(conf *config.Config, sourceResource, destResource, t
 		return false, err
 	}
 
+	// Check that it's a cluster
+	if !source.IsClustered() {
+		return false, nil
+	}
+
 	// Check if the container to be moved is backed by ceph.
 	container, _, err := source.GetContainer(sourceName)
 	if err != nil {
@@ -224,12 +220,12 @@ func maybeMoveCephContainer(conf *config.Config, sourceResource, destResource, t
 		if !strings.Contains(err.Error(), "Unable to connect") {
 			return false, errors.Wrapf(err, "Failed to get container %s", sourceName)
 		}
-	}
-	if container != nil {
+	} else {
 		devices := container.Devices
 		for key, value := range container.ExpandedDevices {
 			devices[key] = value
 		}
+
 		_, device, err := shared.GetRootDiskDevice(devices)
 		if err != nil {
 			return false, errors.Wrapf(err, "Failed parse root disk device")
@@ -244,6 +240,7 @@ func maybeMoveCephContainer(conf *config.Config, sourceResource, destResource, t
 		if err != nil {
 			return false, errors.Wrapf(err, "Failed get root disk device pool %s", poolName)
 		}
+
 		if pool.Driver != "ceph" {
 			return false, nil
 		}
@@ -256,9 +253,11 @@ func maybeMoveCephContainer(conf *config.Config, sourceResource, destResource, t
 	if err != nil {
 		return false, err
 	}
+
 	err = op.Wait()
 	if err != nil {
 		return false, err
 	}
+
 	return true, nil
 }

From f48004f196f927df13847164dfd62883ecf0fb08 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Fri, 8 Jun 2018 13:12:23 -0400
Subject: [PATCH 2/2] i18n: Update translation templates
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
---
 po/de.po      | 16 ++++++++--------
 po/el.po      | 16 ++++++++--------
 po/es.po      | 16 ++++++++--------
 po/fa.po      | 16 ++++++++--------
 po/fi.po      | 16 ++++++++--------
 po/fr.po      | 16 ++++++++--------
 po/hi.po      | 16 ++++++++--------
 po/id.po      | 16 ++++++++--------
 po/it.po      | 16 ++++++++--------
 po/ja.po      | 24 ++++++++++++++----------
 po/ko.po      | 16 ++++++++--------
 po/lxd.pot    | 16 ++++++++--------
 po/nb_NO.po   | 16 ++++++++--------
 po/nl.po      | 16 ++++++++--------
 po/pa.po      | 16 ++++++++--------
 po/pl.po      | 16 ++++++++--------
 po/pt_BR.po   | 16 ++++++++--------
 po/ru.po      | 16 ++++++++--------
 po/sr.po      | 16 ++++++++--------
 po/sv.po      | 16 ++++++++--------
 po/tr.po      | 16 ++++++++--------
 po/uk.po      | 16 ++++++++--------
 po/zh.po      | 16 ++++++++--------
 po/zh_Hans.po | 16 ++++++++--------
 24 files changed, 198 insertions(+), 194 deletions(-)

diff --git a/po/de.po b/po/de.po
index 626148a42..dddaed79f 100644
--- a/po/de.po
+++ b/po/de.po
@@ -7,7 +7,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: LXD\n"
 "Report-Msgid-Bugs-To: lxc-devel at lists.linuxcontainers.org\n"
-"POT-Creation-Date: 2018-06-07 15:27-0400\n"
+"POT-Creation-Date: 2018-06-08 13:11-0400\n"
 "PO-Revision-Date: 2018-05-23 00:30+0000\n"
 "Last-Translator: Christian Brauner <christian.brauner at ubuntu.com>\n"
 "Language-Team: German <https://hosted.weblate.org/projects/linux-containers/"
@@ -467,7 +467,7 @@ msgstr ""
 "Optionen:\n"
 "\n"
 
-#: lxc/move.go:109
+#: lxc/move.go:104
 msgid "Can't override configuration or profiles in local rename"
 msgstr ""
 
@@ -2577,6 +2577,10 @@ msgstr ""
 msgid "To start your first container, try: lxc launch ubuntu:16.04"
 msgstr ""
 
+#: lxc/copy.go:105
+msgid "To use --target, the destination remote must be a cluster"
+msgstr ""
+
 #: lxc/storage_volume.go:983
 msgid "Transfer mode, one of pull (default), push or relay"
 msgstr ""
@@ -2724,20 +2728,16 @@ msgstr ""
 msgid "You can't pass -t or -T at the same time as --mode"
 msgstr "kann nicht zum selben Container Namen kopieren"
 
-#: lxc/copy.go:80
+#: lxc/copy.go:75
 #, fuzzy
 msgid "You must specify a destination container name when using --target"
 msgstr "der Name des Ursprung Containers muss angegeben werden"
 
-#: lxc/copy.go:75 lxc/move.go:203
+#: lxc/copy.go:70 lxc/move.go:194
 #, fuzzy
 msgid "You must specify a source container name"
 msgstr "der Name des Ursprung Containers muss angegeben werden"
 
-#: lxc/copy.go:70 lxc/move.go:99 lxc/move.go:198
-msgid "You must use the same source and destination remote when using --target"
-msgstr ""
-
 #: lxc/alias.go:53
 msgid "add <alias> <target>"
 msgstr ""
diff --git a/po/el.po b/po/el.po
index 8eb0d17bd..86819e156 100644
--- a/po/el.po
+++ b/po/el.po
@@ -7,7 +7,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: lxd\n"
 "Report-Msgid-Bugs-To: lxc-devel at lists.linuxcontainers.org\n"
-"POT-Creation-Date: 2018-06-07 15:27-0400\n"
+"POT-Creation-Date: 2018-06-08 13:11-0400\n"
 "PO-Revision-Date: 2017-02-14 08:00+0000\n"
 "Last-Translator: Simos Xenitellis <simos.65 at gmail.com>\n"
 "Language-Team: Greek <https://hosted.weblate.org/projects/linux-containers/"
@@ -354,7 +354,7 @@ msgstr ""
 msgid "Cached: %s"
 msgstr ""
 
-#: lxc/move.go:109
+#: lxc/move.go:104
 msgid "Can't override configuration or profiles in local rename"
 msgstr ""
 
@@ -2350,6 +2350,10 @@ msgstr ""
 msgid "To start your first container, try: lxc launch ubuntu:16.04"
 msgstr ""
 
+#: lxc/copy.go:105
+msgid "To use --target, the destination remote must be a cluster"
+msgstr ""
+
 #: lxc/storage_volume.go:983
 msgid "Transfer mode, one of pull (default), push or relay"
 msgstr ""
@@ -2491,18 +2495,14 @@ msgstr ""
 msgid "You can't pass -t or -T at the same time as --mode"
 msgstr ""
 
-#: lxc/copy.go:80
+#: lxc/copy.go:75
 msgid "You must specify a destination container name when using --target"
 msgstr ""
 
-#: lxc/copy.go:75 lxc/move.go:203
+#: lxc/copy.go:70 lxc/move.go:194
 msgid "You must specify a source container name"
 msgstr ""
 
-#: lxc/copy.go:70 lxc/move.go:99 lxc/move.go:198
-msgid "You must use the same source and destination remote when using --target"
-msgstr ""
-
 #: lxc/alias.go:53
 msgid "add <alias> <target>"
 msgstr ""
diff --git a/po/es.po b/po/es.po
index 65dc99dc3..928254500 100644
--- a/po/es.po
+++ b/po/es.po
@@ -7,7 +7,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: lxd\n"
 "Report-Msgid-Bugs-To: lxc-devel at lists.linuxcontainers.org\n"
-"POT-Creation-Date: 2018-06-07 15:27-0400\n"
+"POT-Creation-Date: 2018-06-08 13:11-0400\n"
 "PO-Revision-Date: 2018-02-10 11:39+0000\n"
 "Last-Translator: Allan Esquivel Sibaja <allan.esquivel.sibaja at gmail.com>\n"
 "Language-Team: Spanish <https://hosted.weblate.org/projects/linux-containers/"
@@ -411,7 +411,7 @@ msgstr "CREADO EN"
 msgid "Cached: %s"
 msgstr "Cacheado: %s"
 
-#: lxc/move.go:109
+#: lxc/move.go:104
 msgid "Can't override configuration or profiles in local rename"
 msgstr ""
 
@@ -2411,6 +2411,10 @@ msgstr ""
 msgid "To start your first container, try: lxc launch ubuntu:16.04"
 msgstr ""
 
+#: lxc/copy.go:105
+msgid "To use --target, the destination remote must be a cluster"
+msgstr ""
+
 #: lxc/storage_volume.go:983
 msgid "Transfer mode, one of pull (default), push or relay"
 msgstr ""
@@ -2552,18 +2556,14 @@ msgstr ""
 msgid "You can't pass -t or -T at the same time as --mode"
 msgstr ""
 
-#: lxc/copy.go:80
+#: lxc/copy.go:75
 msgid "You must specify a destination container name when using --target"
 msgstr ""
 
-#: lxc/copy.go:75 lxc/move.go:203
+#: lxc/copy.go:70 lxc/move.go:194
 msgid "You must specify a source container name"
 msgstr ""
 
-#: lxc/copy.go:70 lxc/move.go:99 lxc/move.go:198
-msgid "You must use the same source and destination remote when using --target"
-msgstr ""
-
 #: lxc/alias.go:53
 msgid "add <alias> <target>"
 msgstr ""
diff --git a/po/fa.po b/po/fa.po
index 527f077e9..12e07fd20 100644
--- a/po/fa.po
+++ b/po/fa.po
@@ -7,7 +7,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: lxd\n"
 "Report-Msgid-Bugs-To: lxc-devel at lists.linuxcontainers.org\n"
-"POT-Creation-Date: 2018-06-07 15:27-0400\n"
+"POT-Creation-Date: 2018-06-08 13:11-0400\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: Automatically generated\n"
 "Language-Team: none\n"
@@ -350,7 +350,7 @@ msgstr ""
 msgid "Cached: %s"
 msgstr ""
 
-#: lxc/move.go:109
+#: lxc/move.go:104
 msgid "Can't override configuration or profiles in local rename"
 msgstr ""
 
@@ -2343,6 +2343,10 @@ msgstr ""
 msgid "To start your first container, try: lxc launch ubuntu:16.04"
 msgstr ""
 
+#: lxc/copy.go:105
+msgid "To use --target, the destination remote must be a cluster"
+msgstr ""
+
 #: lxc/storage_volume.go:983
 msgid "Transfer mode, one of pull (default), push or relay"
 msgstr ""
@@ -2484,18 +2488,14 @@ msgstr ""
 msgid "You can't pass -t or -T at the same time as --mode"
 msgstr ""
 
-#: lxc/copy.go:80
+#: lxc/copy.go:75
 msgid "You must specify a destination container name when using --target"
 msgstr ""
 
-#: lxc/copy.go:75 lxc/move.go:203
+#: lxc/copy.go:70 lxc/move.go:194
 msgid "You must specify a source container name"
 msgstr ""
 
-#: lxc/copy.go:70 lxc/move.go:99 lxc/move.go:198
-msgid "You must use the same source and destination remote when using --target"
-msgstr ""
-
 #: lxc/alias.go:53
 msgid "add <alias> <target>"
 msgstr ""
diff --git a/po/fi.po b/po/fi.po
index 1ef4ed37e..3429b1924 100644
--- a/po/fi.po
+++ b/po/fi.po
@@ -7,7 +7,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: lxd\n"
 "Report-Msgid-Bugs-To: lxc-devel at lists.linuxcontainers.org\n"
-"POT-Creation-Date: 2018-06-07 15:27-0400\n"
+"POT-Creation-Date: 2018-06-08 13:11-0400\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: Automatically generated\n"
 "Language-Team: none\n"
@@ -350,7 +350,7 @@ msgstr ""
 msgid "Cached: %s"
 msgstr ""
 
-#: lxc/move.go:109
+#: lxc/move.go:104
 msgid "Can't override configuration or profiles in local rename"
 msgstr ""
 
@@ -2343,6 +2343,10 @@ msgstr ""
 msgid "To start your first container, try: lxc launch ubuntu:16.04"
 msgstr ""
 
+#: lxc/copy.go:105
+msgid "To use --target, the destination remote must be a cluster"
+msgstr ""
+
 #: lxc/storage_volume.go:983
 msgid "Transfer mode, one of pull (default), push or relay"
 msgstr ""
@@ -2484,18 +2488,14 @@ msgstr ""
 msgid "You can't pass -t or -T at the same time as --mode"
 msgstr ""
 
-#: lxc/copy.go:80
+#: lxc/copy.go:75
 msgid "You must specify a destination container name when using --target"
 msgstr ""
 
-#: lxc/copy.go:75 lxc/move.go:203
+#: lxc/copy.go:70 lxc/move.go:194
 msgid "You must specify a source container name"
 msgstr ""
 
-#: lxc/copy.go:70 lxc/move.go:99 lxc/move.go:198
-msgid "You must use the same source and destination remote when using --target"
-msgstr ""
-
 #: lxc/alias.go:53
 msgid "add <alias> <target>"
 msgstr ""
diff --git a/po/fr.po b/po/fr.po
index 80348b820..24de2ceca 100644
--- a/po/fr.po
+++ b/po/fr.po
@@ -7,7 +7,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: LXD\n"
 "Report-Msgid-Bugs-To: lxc-devel at lists.linuxcontainers.org\n"
-"POT-Creation-Date: 2018-06-07 15:27-0400\n"
+"POT-Creation-Date: 2018-06-08 13:11-0400\n"
 "PO-Revision-Date: 2018-03-06 13:50+0000\n"
 "Last-Translator: Alban Vidal <alban.vidal at zordhak.fr>\n"
 "Language-Team: French <https://hosted.weblate.org/projects/linux-containers/"
@@ -456,7 +456,7 @@ msgstr "CRÉÉ À"
 msgid "Cached: %s"
 msgstr "Créé : %s"
 
-#: lxc/move.go:109
+#: lxc/move.go:104
 msgid "Can't override configuration or profiles in local rename"
 msgstr ""
 
@@ -2660,6 +2660,10 @@ msgid "To start your first container, try: lxc launch ubuntu:16.04"
 msgstr ""
 "Pour démarrer votre premier conteneur, essayer : lxc launch ubuntu:16.04"
 
+#: lxc/copy.go:105
+msgid "To use --target, the destination remote must be a cluster"
+msgstr ""
+
 #: lxc/storage_volume.go:983
 msgid "Transfer mode, one of pull (default), push or relay"
 msgstr ""
@@ -2813,20 +2817,16 @@ msgstr "Il est impossible de passer -t et -T simultanément"
 msgid "You can't pass -t or -T at the same time as --mode"
 msgstr "impossible de copier vers le même nom de conteneur"
 
-#: lxc/copy.go:80
+#: lxc/copy.go:75
 #, fuzzy
 msgid "You must specify a destination container name when using --target"
 msgstr "vous devez spécifier un nom de conteneur source"
 
-#: lxc/copy.go:75 lxc/move.go:203
+#: lxc/copy.go:70 lxc/move.go:194
 #, fuzzy
 msgid "You must specify a source container name"
 msgstr "vous devez spécifier un nom de conteneur source"
 
-#: lxc/copy.go:70 lxc/move.go:99 lxc/move.go:198
-msgid "You must use the same source and destination remote when using --target"
-msgstr ""
-
 #: lxc/alias.go:53
 msgid "add <alias> <target>"
 msgstr ""
diff --git a/po/hi.po b/po/hi.po
index fedea8316..f4764711e 100644
--- a/po/hi.po
+++ b/po/hi.po
@@ -7,7 +7,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: lxd\n"
 "Report-Msgid-Bugs-To: lxc-devel at lists.linuxcontainers.org\n"
-"POT-Creation-Date: 2018-06-07 15:27-0400\n"
+"POT-Creation-Date: 2018-06-08 13:11-0400\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: Automatically generated\n"
 "Language-Team: none\n"
@@ -350,7 +350,7 @@ msgstr ""
 msgid "Cached: %s"
 msgstr ""
 
-#: lxc/move.go:109
+#: lxc/move.go:104
 msgid "Can't override configuration or profiles in local rename"
 msgstr ""
 
@@ -2343,6 +2343,10 @@ msgstr ""
 msgid "To start your first container, try: lxc launch ubuntu:16.04"
 msgstr ""
 
+#: lxc/copy.go:105
+msgid "To use --target, the destination remote must be a cluster"
+msgstr ""
+
 #: lxc/storage_volume.go:983
 msgid "Transfer mode, one of pull (default), push or relay"
 msgstr ""
@@ -2484,18 +2488,14 @@ msgstr ""
 msgid "You can't pass -t or -T at the same time as --mode"
 msgstr ""
 
-#: lxc/copy.go:80
+#: lxc/copy.go:75
 msgid "You must specify a destination container name when using --target"
 msgstr ""
 
-#: lxc/copy.go:75 lxc/move.go:203
+#: lxc/copy.go:70 lxc/move.go:194
 msgid "You must specify a source container name"
 msgstr ""
 
-#: lxc/copy.go:70 lxc/move.go:99 lxc/move.go:198
-msgid "You must use the same source and destination remote when using --target"
-msgstr ""
-
 #: lxc/alias.go:53
 msgid "add <alias> <target>"
 msgstr ""
diff --git a/po/id.po b/po/id.po
index ff000af38..86c3fc9c9 100644
--- a/po/id.po
+++ b/po/id.po
@@ -7,7 +7,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: lxd\n"
 "Report-Msgid-Bugs-To: lxc-devel at lists.linuxcontainers.org\n"
-"POT-Creation-Date: 2018-06-07 15:27-0400\n"
+"POT-Creation-Date: 2018-06-08 13:11-0400\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: Automatically generated\n"
 "Language-Team: none\n"
@@ -350,7 +350,7 @@ msgstr ""
 msgid "Cached: %s"
 msgstr ""
 
-#: lxc/move.go:109
+#: lxc/move.go:104
 msgid "Can't override configuration or profiles in local rename"
 msgstr ""
 
@@ -2343,6 +2343,10 @@ msgstr ""
 msgid "To start your first container, try: lxc launch ubuntu:16.04"
 msgstr ""
 
+#: lxc/copy.go:105
+msgid "To use --target, the destination remote must be a cluster"
+msgstr ""
+
 #: lxc/storage_volume.go:983
 msgid "Transfer mode, one of pull (default), push or relay"
 msgstr ""
@@ -2484,18 +2488,14 @@ msgstr ""
 msgid "You can't pass -t or -T at the same time as --mode"
 msgstr ""
 
-#: lxc/copy.go:80
+#: lxc/copy.go:75
 msgid "You must specify a destination container name when using --target"
 msgstr ""
 
-#: lxc/copy.go:75 lxc/move.go:203
+#: lxc/copy.go:70 lxc/move.go:194
 msgid "You must specify a source container name"
 msgstr ""
 
-#: lxc/copy.go:70 lxc/move.go:99 lxc/move.go:198
-msgid "You must use the same source and destination remote when using --target"
-msgstr ""
-
 #: lxc/alias.go:53
 msgid "add <alias> <target>"
 msgstr ""
diff --git a/po/it.po b/po/it.po
index 2d854cc9f..30f16f170 100644
--- a/po/it.po
+++ b/po/it.po
@@ -7,7 +7,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: lxd\n"
 "Report-Msgid-Bugs-To: lxc-devel at lists.linuxcontainers.org\n"
-"POT-Creation-Date: 2018-06-07 15:27-0400\n"
+"POT-Creation-Date: 2018-06-08 13:11-0400\n"
 "PO-Revision-Date: 2017-08-18 14:22+0000\n"
 "Last-Translator: Alberto Donato <alberto.donato at gmail.com>\n"
 "Language-Team: Italian <https://hosted.weblate.org/projects/linux-containers/"
@@ -377,7 +377,7 @@ msgstr "CREATO IL"
 msgid "Cached: %s"
 msgstr ""
 
-#: lxc/move.go:109
+#: lxc/move.go:104
 msgid "Can't override configuration or profiles in local rename"
 msgstr ""
 
@@ -2388,6 +2388,10 @@ msgstr ""
 msgid "To start your first container, try: lxc launch ubuntu:16.04"
 msgstr ""
 
+#: lxc/copy.go:105
+msgid "To use --target, the destination remote must be a cluster"
+msgstr ""
+
 #: lxc/storage_volume.go:983
 msgid "Transfer mode, one of pull (default), push or relay"
 msgstr ""
@@ -2530,19 +2534,15 @@ msgstr ""
 msgid "You can't pass -t or -T at the same time as --mode"
 msgstr ""
 
-#: lxc/copy.go:80
+#: lxc/copy.go:75
 #, fuzzy
 msgid "You must specify a destination container name when using --target"
 msgstr "Occorre specificare un nome di container come origine"
 
-#: lxc/copy.go:75 lxc/move.go:203
+#: lxc/copy.go:70 lxc/move.go:194
 msgid "You must specify a source container name"
 msgstr "Occorre specificare un nome di container come origine"
 
-#: lxc/copy.go:70 lxc/move.go:99 lxc/move.go:198
-msgid "You must use the same source and destination remote when using --target"
-msgstr ""
-
 #: lxc/alias.go:53
 msgid "add <alias> <target>"
 msgstr ""
diff --git a/po/ja.po b/po/ja.po
index 3f9a4f9f3..3b1615f0d 100644
--- a/po/ja.po
+++ b/po/ja.po
@@ -7,7 +7,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: LXD\n"
 "Report-Msgid-Bugs-To: lxc-devel at lists.linuxcontainers.org\n"
-"POT-Creation-Date: 2018-06-07 15:27-0400\n"
+"POT-Creation-Date: 2018-06-08 13:11-0400\n"
 "PO-Revision-Date: 2018-05-16 23:39+0000\n"
 "Last-Translator: KATOH Yasufumi <karma at jazz.email.ne.jp>\n"
 "Language-Team: Japanese <https://hosted.weblate.org/projects/linux-"
@@ -358,7 +358,7 @@ msgstr ""
 msgid "Cached: %s"
 msgstr "キャッシュ済: %s"
 
-#: lxc/move.go:109
+#: lxc/move.go:104
 msgid "Can't override configuration or profiles in local rename"
 msgstr ""
 
@@ -2509,6 +2509,10 @@ msgstr ""
 "初めてコンテナを起動するには、\"lxc launch ubuntu:16.04\" と実行してみてくだ"
 "さい"
 
+#: lxc/copy.go:105
+msgid "To use --target, the destination remote must be a cluster"
+msgstr ""
+
 #: lxc/storage_volume.go:983
 msgid "Transfer mode, one of pull (default), push or relay"
 msgstr "転送モード。pull, push, relay のいずれか(デフォルトはpull)"
@@ -2654,20 +2658,14 @@ msgstr "-t と -T は同時に指定できません"
 msgid "You can't pass -t or -T at the same time as --mode"
 msgstr "--mode と同時に -t または -T は指定できません"
 
-#: lxc/copy.go:80
+#: lxc/copy.go:75
 msgid "You must specify a destination container name when using --target"
 msgstr "--target オプションを使うときはコピー先のコンテナ名を指定してください"
 
-#: lxc/copy.go:75 lxc/move.go:203
+#: lxc/copy.go:70 lxc/move.go:194
 msgid "You must specify a source container name"
 msgstr "コピー元のコンテナ名を指定してください"
 
-#: lxc/copy.go:70 lxc/move.go:99 lxc/move.go:198
-msgid "You must use the same source and destination remote when using --target"
-msgstr ""
-"--target を指定した場合は、ソースとデスティネーションのリモートは同じでなけれ"
-"ばなりません"
-
 #: lxc/alias.go:53
 msgid "add <alias> <target>"
 msgstr ""
@@ -3648,6 +3646,12 @@ msgstr "volume"
 msgid "yes"
 msgstr ""
 
+#~ msgid ""
+#~ "You must use the same source and destination remote when using --target"
+#~ msgstr ""
+#~ "--target を指定した場合は、ソースとデスティネーションのリモートは同じでな"
+#~ "ければなりません"
+
 #, fuzzy
 #~ msgid ""
 #~ "lxc export u1 backup0.tar.xz\n"
diff --git a/po/ko.po b/po/ko.po
index e4a220635..a77c53a34 100644
--- a/po/ko.po
+++ b/po/ko.po
@@ -7,7 +7,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: lxd\n"
 "Report-Msgid-Bugs-To: lxc-devel at lists.linuxcontainers.org\n"
-"POT-Creation-Date: 2018-06-07 15:27-0400\n"
+"POT-Creation-Date: 2018-06-08 13:11-0400\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: Automatically generated\n"
 "Language-Team: none\n"
@@ -350,7 +350,7 @@ msgstr ""
 msgid "Cached: %s"
 msgstr ""
 
-#: lxc/move.go:109
+#: lxc/move.go:104
 msgid "Can't override configuration or profiles in local rename"
 msgstr ""
 
@@ -2343,6 +2343,10 @@ msgstr ""
 msgid "To start your first container, try: lxc launch ubuntu:16.04"
 msgstr ""
 
+#: lxc/copy.go:105
+msgid "To use --target, the destination remote must be a cluster"
+msgstr ""
+
 #: lxc/storage_volume.go:983
 msgid "Transfer mode, one of pull (default), push or relay"
 msgstr ""
@@ -2484,18 +2488,14 @@ msgstr ""
 msgid "You can't pass -t or -T at the same time as --mode"
 msgstr ""
 
-#: lxc/copy.go:80
+#: lxc/copy.go:75
 msgid "You must specify a destination container name when using --target"
 msgstr ""
 
-#: lxc/copy.go:75 lxc/move.go:203
+#: lxc/copy.go:70 lxc/move.go:194
 msgid "You must specify a source container name"
 msgstr ""
 
-#: lxc/copy.go:70 lxc/move.go:99 lxc/move.go:198
-msgid "You must use the same source and destination remote when using --target"
-msgstr ""
-
 #: lxc/alias.go:53
 msgid "add <alias> <target>"
 msgstr ""
diff --git a/po/lxd.pot b/po/lxd.pot
index 4819a0fe5..891f9a36f 100644
--- a/po/lxd.pot
+++ b/po/lxd.pot
@@ -7,7 +7,7 @@
 msgid   ""
 msgstr  "Project-Id-Version: lxd\n"
         "Report-Msgid-Bugs-To: lxc-devel at lists.linuxcontainers.org\n"
-        "POT-Creation-Date: 2018-06-07 15:27-0400\n"
+        "POT-Creation-Date: 2018-06-08 13:11-0400\n"
         "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
         "Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
         "Language-Team: LANGUAGE <LL at li.org>\n"
@@ -341,7 +341,7 @@ msgstr  ""
 msgid   "Cached: %s"
 msgstr  ""
 
-#: lxc/move.go:109
+#: lxc/move.go:104
 msgid   "Can't override configuration or profiles in local rename"
 msgstr  ""
 
@@ -2228,6 +2228,10 @@ msgstr  ""
 msgid   "To start your first container, try: lxc launch ubuntu:16.04"
 msgstr  ""
 
+#: lxc/copy.go:105
+msgid   "To use --target, the destination remote must be a cluster"
+msgstr  ""
+
 #: lxc/storage_volume.go:983
 msgid   "Transfer mode, one of pull (default), push or relay"
 msgstr  ""
@@ -2363,18 +2367,14 @@ msgstr  ""
 msgid   "You can't pass -t or -T at the same time as --mode"
 msgstr  ""
 
-#: lxc/copy.go:80
+#: lxc/copy.go:75
 msgid   "You must specify a destination container name when using --target"
 msgstr  ""
 
-#: lxc/copy.go:75 lxc/move.go:203
+#: lxc/copy.go:70 lxc/move.go:194
 msgid   "You must specify a source container name"
 msgstr  ""
 
-#: lxc/copy.go:70 lxc/move.go:99 lxc/move.go:198
-msgid   "You must use the same source and destination remote when using --target"
-msgstr  ""
-
 #: lxc/alias.go:53
 msgid   "add <alias> <target>"
 msgstr  ""
diff --git a/po/nb_NO.po b/po/nb_NO.po
index 7037a3245..ec684f22b 100644
--- a/po/nb_NO.po
+++ b/po/nb_NO.po
@@ -7,7 +7,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: lxd\n"
 "Report-Msgid-Bugs-To: lxc-devel at lists.linuxcontainers.org\n"
-"POT-Creation-Date: 2018-06-07 15:27-0400\n"
+"POT-Creation-Date: 2018-06-08 13:11-0400\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: Automatically generated\n"
 "Language-Team: none\n"
@@ -350,7 +350,7 @@ msgstr ""
 msgid "Cached: %s"
 msgstr ""
 
-#: lxc/move.go:109
+#: lxc/move.go:104
 msgid "Can't override configuration or profiles in local rename"
 msgstr ""
 
@@ -2343,6 +2343,10 @@ msgstr ""
 msgid "To start your first container, try: lxc launch ubuntu:16.04"
 msgstr ""
 
+#: lxc/copy.go:105
+msgid "To use --target, the destination remote must be a cluster"
+msgstr ""
+
 #: lxc/storage_volume.go:983
 msgid "Transfer mode, one of pull (default), push or relay"
 msgstr ""
@@ -2484,18 +2488,14 @@ msgstr ""
 msgid "You can't pass -t or -T at the same time as --mode"
 msgstr ""
 
-#: lxc/copy.go:80
+#: lxc/copy.go:75
 msgid "You must specify a destination container name when using --target"
 msgstr ""
 
-#: lxc/copy.go:75 lxc/move.go:203
+#: lxc/copy.go:70 lxc/move.go:194
 msgid "You must specify a source container name"
 msgstr ""
 
-#: lxc/copy.go:70 lxc/move.go:99 lxc/move.go:198
-msgid "You must use the same source and destination remote when using --target"
-msgstr ""
-
 #: lxc/alias.go:53
 msgid "add <alias> <target>"
 msgstr ""
diff --git a/po/nl.po b/po/nl.po
index b77c30a65..677003fb4 100644
--- a/po/nl.po
+++ b/po/nl.po
@@ -7,7 +7,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: lxd\n"
 "Report-Msgid-Bugs-To: lxc-devel at lists.linuxcontainers.org\n"
-"POT-Creation-Date: 2018-06-07 15:27-0400\n"
+"POT-Creation-Date: 2018-06-08 13:11-0400\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: Automatically generated\n"
 "Language-Team: none\n"
@@ -350,7 +350,7 @@ msgstr ""
 msgid "Cached: %s"
 msgstr ""
 
-#: lxc/move.go:109
+#: lxc/move.go:104
 msgid "Can't override configuration or profiles in local rename"
 msgstr ""
 
@@ -2343,6 +2343,10 @@ msgstr ""
 msgid "To start your first container, try: lxc launch ubuntu:16.04"
 msgstr ""
 
+#: lxc/copy.go:105
+msgid "To use --target, the destination remote must be a cluster"
+msgstr ""
+
 #: lxc/storage_volume.go:983
 msgid "Transfer mode, one of pull (default), push or relay"
 msgstr ""
@@ -2484,18 +2488,14 @@ msgstr ""
 msgid "You can't pass -t or -T at the same time as --mode"
 msgstr ""
 
-#: lxc/copy.go:80
+#: lxc/copy.go:75
 msgid "You must specify a destination container name when using --target"
 msgstr ""
 
-#: lxc/copy.go:75 lxc/move.go:203
+#: lxc/copy.go:70 lxc/move.go:194
 msgid "You must specify a source container name"
 msgstr ""
 
-#: lxc/copy.go:70 lxc/move.go:99 lxc/move.go:198
-msgid "You must use the same source and destination remote when using --target"
-msgstr ""
-
 #: lxc/alias.go:53
 msgid "add <alias> <target>"
 msgstr ""
diff --git a/po/pa.po b/po/pa.po
index d077b61af..88a78721e 100644
--- a/po/pa.po
+++ b/po/pa.po
@@ -7,7 +7,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: lxd\n"
 "Report-Msgid-Bugs-To: lxc-devel at lists.linuxcontainers.org\n"
-"POT-Creation-Date: 2018-06-07 15:27-0400\n"
+"POT-Creation-Date: 2018-06-08 13:11-0400\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: Automatically generated\n"
 "Language-Team: none\n"
@@ -350,7 +350,7 @@ msgstr ""
 msgid "Cached: %s"
 msgstr ""
 
-#: lxc/move.go:109
+#: lxc/move.go:104
 msgid "Can't override configuration or profiles in local rename"
 msgstr ""
 
@@ -2343,6 +2343,10 @@ msgstr ""
 msgid "To start your first container, try: lxc launch ubuntu:16.04"
 msgstr ""
 
+#: lxc/copy.go:105
+msgid "To use --target, the destination remote must be a cluster"
+msgstr ""
+
 #: lxc/storage_volume.go:983
 msgid "Transfer mode, one of pull (default), push or relay"
 msgstr ""
@@ -2484,18 +2488,14 @@ msgstr ""
 msgid "You can't pass -t or -T at the same time as --mode"
 msgstr ""
 
-#: lxc/copy.go:80
+#: lxc/copy.go:75
 msgid "You must specify a destination container name when using --target"
 msgstr ""
 
-#: lxc/copy.go:75 lxc/move.go:203
+#: lxc/copy.go:70 lxc/move.go:194
 msgid "You must specify a source container name"
 msgstr ""
 
-#: lxc/copy.go:70 lxc/move.go:99 lxc/move.go:198
-msgid "You must use the same source and destination remote when using --target"
-msgstr ""
-
 #: lxc/alias.go:53
 msgid "add <alias> <target>"
 msgstr ""
diff --git a/po/pl.po b/po/pl.po
index 074981f11..ae877265d 100644
--- a/po/pl.po
+++ b/po/pl.po
@@ -7,7 +7,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: lxd\n"
 "Report-Msgid-Bugs-To: lxc-devel at lists.linuxcontainers.org\n"
-"POT-Creation-Date: 2018-06-07 15:27-0400\n"
+"POT-Creation-Date: 2018-06-08 13:11-0400\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: Automatically generated\n"
 "Language-Team: none\n"
@@ -350,7 +350,7 @@ msgstr ""
 msgid "Cached: %s"
 msgstr ""
 
-#: lxc/move.go:109
+#: lxc/move.go:104
 msgid "Can't override configuration or profiles in local rename"
 msgstr ""
 
@@ -2343,6 +2343,10 @@ msgstr ""
 msgid "To start your first container, try: lxc launch ubuntu:16.04"
 msgstr ""
 
+#: lxc/copy.go:105
+msgid "To use --target, the destination remote must be a cluster"
+msgstr ""
+
 #: lxc/storage_volume.go:983
 msgid "Transfer mode, one of pull (default), push or relay"
 msgstr ""
@@ -2484,18 +2488,14 @@ msgstr ""
 msgid "You can't pass -t or -T at the same time as --mode"
 msgstr ""
 
-#: lxc/copy.go:80
+#: lxc/copy.go:75
 msgid "You must specify a destination container name when using --target"
 msgstr ""
 
-#: lxc/copy.go:75 lxc/move.go:203
+#: lxc/copy.go:70 lxc/move.go:194
 msgid "You must specify a source container name"
 msgstr ""
 
-#: lxc/copy.go:70 lxc/move.go:99 lxc/move.go:198
-msgid "You must use the same source and destination remote when using --target"
-msgstr ""
-
 #: lxc/alias.go:53
 msgid "add <alias> <target>"
 msgstr ""
diff --git a/po/pt_BR.po b/po/pt_BR.po
index f9b03c324..b98790860 100644
--- a/po/pt_BR.po
+++ b/po/pt_BR.po
@@ -7,7 +7,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: lxd\n"
 "Report-Msgid-Bugs-To: lxc-devel at lists.linuxcontainers.org\n"
-"POT-Creation-Date: 2018-06-07 15:27-0400\n"
+"POT-Creation-Date: 2018-06-08 13:11-0400\n"
 "PO-Revision-Date: 2018-03-08 09:21+0000\n"
 "Last-Translator: Paulo Coghi <paulo at coghi.com.br>\n"
 "Language-Team: Portuguese (Brazil) <https://hosted.weblate.org/projects/"
@@ -367,7 +367,7 @@ msgstr ""
 msgid "Cached: %s"
 msgstr ""
 
-#: lxc/move.go:109
+#: lxc/move.go:104
 msgid "Can't override configuration or profiles in local rename"
 msgstr ""
 
@@ -2360,6 +2360,10 @@ msgstr ""
 msgid "To start your first container, try: lxc launch ubuntu:16.04"
 msgstr ""
 
+#: lxc/copy.go:105
+msgid "To use --target, the destination remote must be a cluster"
+msgstr ""
+
 #: lxc/storage_volume.go:983
 msgid "Transfer mode, one of pull (default), push or relay"
 msgstr ""
@@ -2501,18 +2505,14 @@ msgstr ""
 msgid "You can't pass -t or -T at the same time as --mode"
 msgstr ""
 
-#: lxc/copy.go:80
+#: lxc/copy.go:75
 msgid "You must specify a destination container name when using --target"
 msgstr ""
 
-#: lxc/copy.go:75 lxc/move.go:203
+#: lxc/copy.go:70 lxc/move.go:194
 msgid "You must specify a source container name"
 msgstr ""
 
-#: lxc/copy.go:70 lxc/move.go:99 lxc/move.go:198
-msgid "You must use the same source and destination remote when using --target"
-msgstr ""
-
 #: lxc/alias.go:53
 msgid "add <alias> <target>"
 msgstr ""
diff --git a/po/ru.po b/po/ru.po
index f9e1f6494..a7f6ca9ed 100644
--- a/po/ru.po
+++ b/po/ru.po
@@ -7,7 +7,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: lxd\n"
 "Report-Msgid-Bugs-To: lxc-devel at lists.linuxcontainers.org\n"
-"POT-Creation-Date: 2018-06-07 15:27-0400\n"
+"POT-Creation-Date: 2018-06-08 13:11-0400\n"
 "PO-Revision-Date: 2017-09-05 16:48+0000\n"
 "Last-Translator: Ilya Yakimavets <ilya.yakimavets at backend.expert>\n"
 "Language-Team: Russian <https://hosted.weblate.org/projects/linux-containers/"
@@ -440,7 +440,7 @@ msgstr "СОЗДАН"
 msgid "Cached: %s"
 msgstr ""
 
-#: lxc/move.go:109
+#: lxc/move.go:104
 msgid "Can't override configuration or profiles in local rename"
 msgstr ""
 
@@ -2469,6 +2469,10 @@ msgstr ""
 msgid "To start your first container, try: lxc launch ubuntu:16.04"
 msgstr ""
 
+#: lxc/copy.go:105
+msgid "To use --target, the destination remote must be a cluster"
+msgstr ""
+
 #: lxc/storage_volume.go:983
 msgid "Transfer mode, one of pull (default), push or relay"
 msgstr ""
@@ -2610,18 +2614,14 @@ msgstr ""
 msgid "You can't pass -t or -T at the same time as --mode"
 msgstr ""
 
-#: lxc/copy.go:80
+#: lxc/copy.go:75
 msgid "You must specify a destination container name when using --target"
 msgstr ""
 
-#: lxc/copy.go:75 lxc/move.go:203
+#: lxc/copy.go:70 lxc/move.go:194
 msgid "You must specify a source container name"
 msgstr ""
 
-#: lxc/copy.go:70 lxc/move.go:99 lxc/move.go:198
-msgid "You must use the same source and destination remote when using --target"
-msgstr ""
-
 #: lxc/alias.go:53
 msgid "add <alias> <target>"
 msgstr ""
diff --git a/po/sr.po b/po/sr.po
index 0e58c1caa..d0f79b5fd 100644
--- a/po/sr.po
+++ b/po/sr.po
@@ -7,7 +7,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: lxd\n"
 "Report-Msgid-Bugs-To: lxc-devel at lists.linuxcontainers.org\n"
-"POT-Creation-Date: 2018-06-07 15:27-0400\n"
+"POT-Creation-Date: 2018-06-08 13:11-0400\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: Automatically generated\n"
 "Language-Team: none\n"
@@ -350,7 +350,7 @@ msgstr ""
 msgid "Cached: %s"
 msgstr ""
 
-#: lxc/move.go:109
+#: lxc/move.go:104
 msgid "Can't override configuration or profiles in local rename"
 msgstr ""
 
@@ -2343,6 +2343,10 @@ msgstr ""
 msgid "To start your first container, try: lxc launch ubuntu:16.04"
 msgstr ""
 
+#: lxc/copy.go:105
+msgid "To use --target, the destination remote must be a cluster"
+msgstr ""
+
 #: lxc/storage_volume.go:983
 msgid "Transfer mode, one of pull (default), push or relay"
 msgstr ""
@@ -2484,18 +2488,14 @@ msgstr ""
 msgid "You can't pass -t or -T at the same time as --mode"
 msgstr ""
 
-#: lxc/copy.go:80
+#: lxc/copy.go:75
 msgid "You must specify a destination container name when using --target"
 msgstr ""
 
-#: lxc/copy.go:75 lxc/move.go:203
+#: lxc/copy.go:70 lxc/move.go:194
 msgid "You must specify a source container name"
 msgstr ""
 
-#: lxc/copy.go:70 lxc/move.go:99 lxc/move.go:198
-msgid "You must use the same source and destination remote when using --target"
-msgstr ""
-
 #: lxc/alias.go:53
 msgid "add <alias> <target>"
 msgstr ""
diff --git a/po/sv.po b/po/sv.po
index d4124a543..6f214c5c7 100644
--- a/po/sv.po
+++ b/po/sv.po
@@ -7,7 +7,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: lxd\n"
 "Report-Msgid-Bugs-To: lxc-devel at lists.linuxcontainers.org\n"
-"POT-Creation-Date: 2018-06-07 15:27-0400\n"
+"POT-Creation-Date: 2018-06-08 13:11-0400\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: Automatically generated\n"
 "Language-Team: none\n"
@@ -350,7 +350,7 @@ msgstr ""
 msgid "Cached: %s"
 msgstr ""
 
-#: lxc/move.go:109
+#: lxc/move.go:104
 msgid "Can't override configuration or profiles in local rename"
 msgstr ""
 
@@ -2343,6 +2343,10 @@ msgstr ""
 msgid "To start your first container, try: lxc launch ubuntu:16.04"
 msgstr ""
 
+#: lxc/copy.go:105
+msgid "To use --target, the destination remote must be a cluster"
+msgstr ""
+
 #: lxc/storage_volume.go:983
 msgid "Transfer mode, one of pull (default), push or relay"
 msgstr ""
@@ -2484,18 +2488,14 @@ msgstr ""
 msgid "You can't pass -t or -T at the same time as --mode"
 msgstr ""
 
-#: lxc/copy.go:80
+#: lxc/copy.go:75
 msgid "You must specify a destination container name when using --target"
 msgstr ""
 
-#: lxc/copy.go:75 lxc/move.go:203
+#: lxc/copy.go:70 lxc/move.go:194
 msgid "You must specify a source container name"
 msgstr ""
 
-#: lxc/copy.go:70 lxc/move.go:99 lxc/move.go:198
-msgid "You must use the same source and destination remote when using --target"
-msgstr ""
-
 #: lxc/alias.go:53
 msgid "add <alias> <target>"
 msgstr ""
diff --git a/po/tr.po b/po/tr.po
index b2b8a4636..bbec77396 100644
--- a/po/tr.po
+++ b/po/tr.po
@@ -7,7 +7,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: lxd\n"
 "Report-Msgid-Bugs-To: lxc-devel at lists.linuxcontainers.org\n"
-"POT-Creation-Date: 2018-06-07 15:27-0400\n"
+"POT-Creation-Date: 2018-06-08 13:11-0400\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: Automatically generated\n"
 "Language-Team: none\n"
@@ -350,7 +350,7 @@ msgstr ""
 msgid "Cached: %s"
 msgstr ""
 
-#: lxc/move.go:109
+#: lxc/move.go:104
 msgid "Can't override configuration or profiles in local rename"
 msgstr ""
 
@@ -2343,6 +2343,10 @@ msgstr ""
 msgid "To start your first container, try: lxc launch ubuntu:16.04"
 msgstr ""
 
+#: lxc/copy.go:105
+msgid "To use --target, the destination remote must be a cluster"
+msgstr ""
+
 #: lxc/storage_volume.go:983
 msgid "Transfer mode, one of pull (default), push or relay"
 msgstr ""
@@ -2484,18 +2488,14 @@ msgstr ""
 msgid "You can't pass -t or -T at the same time as --mode"
 msgstr ""
 
-#: lxc/copy.go:80
+#: lxc/copy.go:75
 msgid "You must specify a destination container name when using --target"
 msgstr ""
 
-#: lxc/copy.go:75 lxc/move.go:203
+#: lxc/copy.go:70 lxc/move.go:194
 msgid "You must specify a source container name"
 msgstr ""
 
-#: lxc/copy.go:70 lxc/move.go:99 lxc/move.go:198
-msgid "You must use the same source and destination remote when using --target"
-msgstr ""
-
 #: lxc/alias.go:53
 msgid "add <alias> <target>"
 msgstr ""
diff --git a/po/uk.po b/po/uk.po
index 65b6be31d..8b08d18d9 100644
--- a/po/uk.po
+++ b/po/uk.po
@@ -7,7 +7,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: lxd\n"
 "Report-Msgid-Bugs-To: lxc-devel at lists.linuxcontainers.org\n"
-"POT-Creation-Date: 2018-06-07 15:27-0400\n"
+"POT-Creation-Date: 2018-06-08 13:11-0400\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: Automatically generated\n"
 "Language-Team: none\n"
@@ -350,7 +350,7 @@ msgstr ""
 msgid "Cached: %s"
 msgstr ""
 
-#: lxc/move.go:109
+#: lxc/move.go:104
 msgid "Can't override configuration or profiles in local rename"
 msgstr ""
 
@@ -2343,6 +2343,10 @@ msgstr ""
 msgid "To start your first container, try: lxc launch ubuntu:16.04"
 msgstr ""
 
+#: lxc/copy.go:105
+msgid "To use --target, the destination remote must be a cluster"
+msgstr ""
+
 #: lxc/storage_volume.go:983
 msgid "Transfer mode, one of pull (default), push or relay"
 msgstr ""
@@ -2484,18 +2488,14 @@ msgstr ""
 msgid "You can't pass -t or -T at the same time as --mode"
 msgstr ""
 
-#: lxc/copy.go:80
+#: lxc/copy.go:75
 msgid "You must specify a destination container name when using --target"
 msgstr ""
 
-#: lxc/copy.go:75 lxc/move.go:203
+#: lxc/copy.go:70 lxc/move.go:194
 msgid "You must specify a source container name"
 msgstr ""
 
-#: lxc/copy.go:70 lxc/move.go:99 lxc/move.go:198
-msgid "You must use the same source and destination remote when using --target"
-msgstr ""
-
 #: lxc/alias.go:53
 msgid "add <alias> <target>"
 msgstr ""
diff --git a/po/zh.po b/po/zh.po
index 0ca12f604..daaefe196 100644
--- a/po/zh.po
+++ b/po/zh.po
@@ -7,7 +7,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: lxd\n"
 "Report-Msgid-Bugs-To: lxc-devel at lists.linuxcontainers.org\n"
-"POT-Creation-Date: 2018-06-07 15:27-0400\n"
+"POT-Creation-Date: 2018-06-08 13:11-0400\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: Automatically generated\n"
 "Language-Team: none\n"
@@ -350,7 +350,7 @@ msgstr ""
 msgid "Cached: %s"
 msgstr ""
 
-#: lxc/move.go:109
+#: lxc/move.go:104
 msgid "Can't override configuration or profiles in local rename"
 msgstr ""
 
@@ -2343,6 +2343,10 @@ msgstr ""
 msgid "To start your first container, try: lxc launch ubuntu:16.04"
 msgstr ""
 
+#: lxc/copy.go:105
+msgid "To use --target, the destination remote must be a cluster"
+msgstr ""
+
 #: lxc/storage_volume.go:983
 msgid "Transfer mode, one of pull (default), push or relay"
 msgstr ""
@@ -2484,18 +2488,14 @@ msgstr ""
 msgid "You can't pass -t or -T at the same time as --mode"
 msgstr ""
 
-#: lxc/copy.go:80
+#: lxc/copy.go:75
 msgid "You must specify a destination container name when using --target"
 msgstr ""
 
-#: lxc/copy.go:75 lxc/move.go:203
+#: lxc/copy.go:70 lxc/move.go:194
 msgid "You must specify a source container name"
 msgstr ""
 
-#: lxc/copy.go:70 lxc/move.go:99 lxc/move.go:198
-msgid "You must use the same source and destination remote when using --target"
-msgstr ""
-
 #: lxc/alias.go:53
 msgid "add <alias> <target>"
 msgstr ""
diff --git a/po/zh_Hans.po b/po/zh_Hans.po
index d0c882f12..d85165feb 100644
--- a/po/zh_Hans.po
+++ b/po/zh_Hans.po
@@ -7,7 +7,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: lxd\n"
 "Report-Msgid-Bugs-To: lxc-devel at lists.linuxcontainers.org\n"
-"POT-Creation-Date: 2018-06-07 15:27-0400\n"
+"POT-Creation-Date: 2018-06-08 13:11-0400\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: Automatically generated\n"
 "Language-Team: none\n"
@@ -350,7 +350,7 @@ msgstr ""
 msgid "Cached: %s"
 msgstr ""
 
-#: lxc/move.go:109
+#: lxc/move.go:104
 msgid "Can't override configuration or profiles in local rename"
 msgstr ""
 
@@ -2343,6 +2343,10 @@ msgstr ""
 msgid "To start your first container, try: lxc launch ubuntu:16.04"
 msgstr ""
 
+#: lxc/copy.go:105
+msgid "To use --target, the destination remote must be a cluster"
+msgstr ""
+
 #: lxc/storage_volume.go:983
 msgid "Transfer mode, one of pull (default), push or relay"
 msgstr ""
@@ -2484,18 +2488,14 @@ msgstr ""
 msgid "You can't pass -t or -T at the same time as --mode"
 msgstr ""
 
-#: lxc/copy.go:80
+#: lxc/copy.go:75
 msgid "You must specify a destination container name when using --target"
 msgstr ""
 
-#: lxc/copy.go:75 lxc/move.go:203
+#: lxc/copy.go:70 lxc/move.go:194
 msgid "You must specify a source container name"
 msgstr ""
 
-#: lxc/copy.go:70 lxc/move.go:99 lxc/move.go:198
-msgid "You must use the same source and destination remote when using --target"
-msgstr ""
-
 #: lxc/alias.go:53
 msgid "add <alias> <target>"
 msgstr ""


More information about the lxc-devel mailing list