[PATCH] UBUNTU: SAUCE: ubuntu_nbd_smoke_test : break up nbd-client, commands

Stefan Bader stefan.bader at canonical.com
Thu Oct 14 07:57:54 UTC 2021


On 13.10.21 21:16, Sean Feole wrote:
> Please see LP# 1947031 for more context.
> 
> It was found that due to 2x nbd-client commands being re-run immediately after one
> another caused a race condition. The sleep command allows smaller instance types to
> ensure the block device is completely free and clear after the first request, thus,
> not interfering with the second.
> 
> This has been tested and has resolved issues in Azure Cloud.
> 
> Signed-off-by: Sean Feole <sean.feole at canonical.com>
> ---

What is this for?

-Stefan

>   ubuntu_nbd_smoke_test/ubuntu_nbd_smoke_test.sh | 3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/ubuntu_nbd_smoke_test/ubuntu_nbd_smoke_test.sh 
> b/ubuntu_nbd_smoke_test/ubuntu_nbd_smoke_test.sh
> index 8cd5dd9a..6894ef0d 100755
> --- a/ubuntu_nbd_smoke_test/ubuntu_nbd_smoke_test.sh
> +++ b/ubuntu_nbd_smoke_test/ubuntu_nbd_smoke_test.sh
> @@ -182,7 +182,8 @@ do_test()
> 
>       echo "NBD exports found:"
>       nbd-client -l localhost | grep -v Negotiation
> -
> +    # Sleep added due to LP# 1947031
> +    sleep 10
>       do_log "starting client with NBD device ${NBD_DEV}"
>       nbd-client -t ${NBD_TIMEOUT} -b ${NBD_BLOCK_SIZE} -p -N test localhost 
> ${NBD_DEV}
>       if [ $? -ne 0 ]; then
> -- 
> 2.32.0
> 
> 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20211014/195aa9e4/attachment.sig>


More information about the kernel-team mailing list