From: Davide Caratti <dcaratti@redhat.com>
To: Lucas Bates <lucasb@mojatatu.com>, netdev@vger.kernel.org
Cc: nicolas.dichtel@6wind.com, davem@davemloft.net, jhs@mojatatu.com,
kernel@mojatatu.com, xiyou.wangcong@gmail.com, jiri@resnulli.us,
mleitner@redhat.com, vladbu@mellanox.com,
Hangbin Liu <haliu@redhat.com>
Subject: Re: [RFC PATCH net-next 1/1] tc-testing: Restore original behaviour for namespaces in tdc
Date: Fri, 07 Jun 2019 14:18:33 +0200 [thread overview]
Message-ID: <66ee49271b9ecc89cd2ee7b9fbffd298ae219d14.camel@redhat.com> (raw)
In-Reply-To: <1559768882-12628-1-git-send-email-lucasb@mojatatu.com>
On Wed, 2019-06-05 at 17:08 -0400, Lucas Bates wrote:
> Apologies for the delay in getting this out. I've been busy
> with other things and this change was a little trickier than
> I expected.
>
> This patch restores the original behaviour for tdc prior to the
> introduction of the plugin system, where the network namespace
> functionality was split from the main script.
>
> It introduces the concept of required plugins for testcases,
> and will automatically load any plugin that isn't already
> enabled when said plugin is required by even one testcase.
>
> Additionally, the -n option for the nsPlugin is deprecated
> so the default action is to make use of the namespaces.
> Instead, we introduce -N to not use them, but still create
> the veth pair.
>
> Comments welcome!
> ---
hello Lucas,
thanks for the patch, I tested it and verified it successfully on some
items belonging to the 'filter' category.
From what I see, it is a fix for the reported problem (e.g. tests failing
because of 'nsPlugin' uninstalled). And, I want to followup fixing the
bpf.json in tc-actions, so that
# ./tdc.py -l -c bpf | grep eBPF
e939: (actions, bpf) Add eBPF action with valid object-file
282d: (actions, bpf) Add eBPF action with invalid object-file
require the buildebpfPlugin (unless anybody disagrees, I will also revert
the meaning of '-B' also, like you did for '-n')
few comments after a preliminary test:
1) the patch still does not cover the two categories that use $DEV2 (i.e.
flower and concurrency still fail in my environment)
2) I've been reported, and reproduced with latest fedora, a problem in
nsPlugin.py. All tests in the 'filter' category still fail, unless I do
# sed -i "s#ip#/sbin/ip#g" nsPlugin.py
otherwise, the 'prepare' stage fails:
# ./tdc.py -e 5339
-- ns/SubPlugin.__init__
Test 5339: Del entire fw filter
-----> prepare stage *** Could not execute: "$TC qdisc add dev $DEV1 ingress"
-----> prepare stage *** Error message: "/bin/sh: ip: command not found
"
returncode 127; expected [0]
-----> prepare stage *** Aborting test run.
(maybe we should use a variable for that, instead of hardcoded command
name, like we do for $TC ?)
--
davide
next prev parent reply other threads:[~2019-06-07 12:18 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-05 21:08 [RFC PATCH net-next 1/1] tc-testing: Restore original behaviour for namespaces in tdc Lucas Bates
2019-06-07 12:18 ` Davide Caratti [this message]
2019-06-07 16:09 ` Lucas Bates
2019-06-14 9:37 ` Nicolas Dichtel
2019-06-17 2:04 ` Lucas Bates
2019-06-18 8:52 ` Nicolas Dichtel
2019-06-21 0:45 ` Lucas Bates
2019-06-21 7:48 ` Nicolas Dichtel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=66ee49271b9ecc89cd2ee7b9fbffd298ae219d14.camel@redhat.com \
--to=dcaratti@redhat.com \
--cc=davem@davemloft.net \
--cc=haliu@redhat.com \
--cc=jhs@mojatatu.com \
--cc=jiri@resnulli.us \
--cc=kernel@mojatatu.com \
--cc=lucasb@mojatatu.com \
--cc=mleitner@redhat.com \
--cc=netdev@vger.kernel.org \
--cc=nicolas.dichtel@6wind.com \
--cc=vladbu@mellanox.com \
--cc=xiyou.wangcong@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).