[lxc-devel] [lxd/master] lxd/storage: Fix hangs on volume migration failures

stgraber on Github lxc-bot at linuxcontainers.org
Tue Jul 16 18:43:25 UTC 2019


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 354 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20190716/67360488/attachment.bin>
-------------- next part --------------
From 9abc24606fbdd99ef8e3262bac3323463e9e323b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Tue, 16 Jul 2019 14:43:03 -0400
Subject: [PATCH] lxd/storage: Fix hangs on volume migration failures
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>
---
 lxd/migrate_storage_volumes.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lxd/migrate_storage_volumes.go b/lxd/migrate_storage_volumes.go
index bb8748e420..027fe08367 100644
--- a/lxd/migrate_storage_volumes.go
+++ b/lxd/migrate_storage_volumes.go
@@ -152,7 +152,7 @@ func (s *migrationSourceWs) DoStorage(migrateOp *operation) error {
 
 	abort := func(err error) error {
 		driver.Cleanup()
-		s.sendControl(err)
+		go s.sendControl(err)
 		return err
 	}
 


More information about the lxc-devel mailing list