[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lxc-devel
Subject:    [lxc-devel] [lxd/master] test: Works around race condition in image import event listener
From:       tomponline on Github <lxc-bot () linuxcontainers ! org>
Date:       2019-07-30 13:46:38
Message-ID: 5d404a3e.1c69fb81.fd19a.50d7SMTPIN_ADDED_MISSING () mx ! google ! com
[Download RAW message or body]

[Attachment #2 (text/x-mailbox)]

The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/6025

This e-mail was sent by the LXC bot, direct replies will not reach the author
unless they happen to be subscribed to this list.

=== Description (from pull-request) ===
Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>

[Attachment #3 (text/plain)]

From 488b9940ae261518527ddc0586b24e09e6d905c9 Mon Sep 17 00:00:00 2001
From: Thomas Parrott <thomas.parrott@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@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
 

[Attachment #4 (text/plain)]

_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic