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

Dimitri John Ledkov dimitri.ledkov at canonical.com
Thu Oct 14 08:59:32 UTC 2021


On Thu, Oct 14, 2021 at 8:58 AM Stefan Bader <stefan.bader at canonical.com> wrote:
>
> 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?
>


[ACT] maybe?

--
Regards,

Dimitri.

> -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
> >
> >
>
>
> --
> kernel-team mailing list
> kernel-team at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/kernel-team



More information about the kernel-team mailing list