[lxc-devel] [lxd/master] lxd/instances: Fix ceph cluster target move

stgraber on Github lxc-bot at linuxcontainers.org
Thu Sep 24 02:18:21 UTC 2020


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 462 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20200923/89aa1b7c/attachment.bin>
-------------- next part --------------
From 1eb7e98b1d1a78c51b608bf787df70f9a2c7d1a8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Wed, 23 Sep 2020 22:17:27 -0400
Subject: [PATCH] lxd/instances: Fix ceph cluster target move
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Without this, the notification to create the mountpath is incorrectly
received for the default project.

Signed-off-by: St├ęphane Graber <stgraber at ubuntu.com>
---
 lxd/instance_post.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lxd/instance_post.go b/lxd/instance_post.go
index 8111451073..eb7b307a5b 100644
--- a/lxd/instance_post.go
+++ b/lxd/instance_post.go
@@ -474,7 +474,7 @@ func containerPostClusteringMigrateWithCeph(d *Daemon, c instance.Instance, proj
 				return errors.Wrap(err, "Failed to create mount point on target node")
 			}
 		} else {
-			path := fmt.Sprintf("/internal/cluster/container-moved/%s", newName)
+			path := fmt.Sprintf("/internal/cluster/container-moved/%s?project=%s", newName, projectName)
 			resp, _, err := client.RawQuery("POST", path, nil, "")
 			if err != nil {
 				return errors.Wrap(err, "Failed to create mount point on target node")


More information about the lxc-devel mailing list