[LTP] [PATCH] rpc_lib.sh: fix portmapper detection in case of socket activation
Nikita Yushchenko
nikita.yushchenko@virtuozzo.com
Fri Jan 21 05:57:49 CET 2022
21.01.2022 00:01, Petr Vorel wrote:
> Hi Nikita,
>
> [ Cc: Steve as user-space maintainer, also Neil and whole linux-nfs ]
>
>> On systemd-based linux hosts, rpcbind service is typically started via
>> socket activation, when the first client connects. If no client has
>> connected before LTP rpc test starts, rpcbind process will not be
>> running at the time of check_portmap_rpcbind() execution, causing
>> check_portmap_rpcbind() to report TCONF error.
>
>> Fix that by adding a quiet invocation of 'rpcinfo' before checking for
>> rpcbind.
>
> Looks reasonable, but I'd prefer to have confirmation from NFS experts.
NFS is not involved here, this is about sunrpc tests.
I had to add this patch to make 'runltp -f net.rpc' pass just after container is started - that happens
in container autotests here.
Nikita
More information about the ltp
mailing list