[LTP] [PATCH 1/2] nfs_lib: Unify testing on netns

Alexey Kodanev
2020-03-11T14:35:39Z

Hi Petr,
On 10.03.2020 18:46, Petr Vorel wrote:
> Hi Alexey,
>
> thanks for your review!
>
>>> There is no need to run tests on opposite client/server when using
>>> $TST_USE_NETNS based setup. It's enough just to set lhost IP address.
>>> This simplifies code a bit.
>
>> It changes the testcase, this way nfs traffic will go through
>> lo interface, the test won't use ltp_ns_veth* and netns.
> Sorry, I didn't notice this.
> BTW code nfs_setup_server could be run by tst_rhost_run() (code simplification),

Right

> but that's a detail.
>
>> We could add the knob for this scenario with LTP_NFS_USE_NETNS={1|0}?
> Is this scenario useful? It does not look to me as a real world scenario,
> but if I'm wrong let's add it :).

Perhaps, it can be useful to find out if the test failure
related to veth/netns...

>
> Kind regards,
> Petr
>