<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<font size="-1"><font face="Ubuntu">Please see LP# 1947031 for more
context.<br>
<br>
It was found that due to 2x nbd-client commands being re-run
immediately after one<br>
another caused a race condition. The sleep command allows
smaller instance types to<br>
ensure the block device is completely free and clear after the
first request, thus,<br>
not interfering with the second.<br>
<br>
This has been tested and has resolved issues in Azure Cloud.<br>
<br>
Signed-off-by: Sean Feole <a class="moz-txt-link-rfc2396E" href="mailto:sean.feole@canonical.com"><sean.feole@canonical.com></a><br>
---<br>
ubuntu_nbd_smoke_test/ubuntu_nbd_smoke_test.sh | 3 ++-<br>
1 file changed, 2 insertions(+), 1 deletion(-)<br>
<br>
diff --git a/ubuntu_nbd_smoke_test/ubuntu_nbd_smoke_test.sh
b/ubuntu_nbd_smoke_test/ubuntu_nbd_smoke_test.sh<br>
index 8cd5dd9a..6894ef0d 100755<br>
--- a/ubuntu_nbd_smoke_test/ubuntu_nbd_smoke_test.sh<br>
+++ b/ubuntu_nbd_smoke_test/ubuntu_nbd_smoke_test.sh<br>
@@ -182,7 +182,8 @@ do_test()<br>
<br>
echo "NBD exports found:"<br>
nbd-client -l localhost | grep -v Negotiation<br>
-<br>
+ # Sleep added due to LP# 1947031<br>
+ sleep 10<br>
do_log "starting client with NBD device ${NBD_DEV}"<br>
nbd-client -t ${NBD_TIMEOUT} -b ${NBD_BLOCK_SIZE} -p -N
test localhost ${NBD_DEV}<br>
if [ $? -ne 0 ]; then<br>
-- <br>
2.32.0<br>
<br>
</font></font>
</body>
</html>