[LTP] [PATCH 1/1] rpc_lib.sh: Check for running RPC
Nikita Yushchenko
nikita.yushchenko@virtuozzo.com
Mon Jan 24 15:26:41 CET 2022
24.01.2022 09:59, Petr Vorel wrote:
> instead of just rpcbind/portmap was running.
>
> This should fix problem for some containers where rpcbind has not been
> started and calling rpcinfo should do the socket activation.
>
> Reported-by: Nikita Yushchenko <nikita.yushchenko@virtuozzo.com>
> Suggested-by: NeilBrown <neilb@suse.de>
> Signed-off-by: Petr Vorel <pvorel@suse.cz>
> ---
> Hi all,
>
> Nikita, does it really fix your case? Or there needs to be 2 rpcinfo -p
> calls with sleep in between?
Yes, it fixes that.
Btw, easy test is:
systemctl stop rpcbind.service
runltp -f net.rpc
After applying your patch, that results in no TCONF from rcp01.sh, because rpcbind.socket is still
there, and systemd restarts rpcbind on request.
Nikita
More information about the ltp
mailing list