[lxc-devel] [lxd/master] test: Works around race condition in image import event listener

tomponline on Github lxc-bot at linuxcontainers.org
Tue Jul 30 13:46:38 UTC 2019


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 361 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20190730/d2953020/attachment.bin>
-------------- next part --------------
From 488b9940ae261518527ddc0586b24e09e6d905c9 Mon Sep 17 00:00:00 2001
From: Thomas Parrott <thomas.parrott at canonical.com>
Date: Tue, 30 Jul 2019 14:45:14 +0100
Subject: [PATCH] test: Works around race condition in image import event
 listener

Signed-off-by: Thomas Parrott <thomas.parrott at canonical.com>
---
 test/suites/clustering.sh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/test/suites/clustering.sh b/test/suites/clustering.sh
index 659d96b066..adaf0848f4 100644
--- a/test/suites/clustering.sh
+++ b/test/suites/clustering.sh
@@ -888,6 +888,8 @@ test_clustering_profiles() {
 
   # Launch two containers on the two nodes, using the above profile.
   LXD_DIR="${LXD_TWO_DIR}" ensure_import_testimage
+  # TODO: Fix known race in importing small images that complete before event listener is setup.
+  sleep 2
   LXD_DIR="${LXD_ONE_DIR}" lxc launch --target node1 -p default -p web testimage c1
   LXD_DIR="${LXD_ONE_DIR}" lxc launch --target node2 -p default -p web testimage c2
 


More information about the lxc-devel mailing list