From: Stefano Brivio <sbrivio@redhat.com>
To: passt-dev@passt.top
Subject: Re: passt & mbuto
Date: Tue, 14 Jun 2022 03:33:13 +0200 [thread overview]
Message-ID: <20220614033313.5a8c6600@elisabeth> (raw)
In-Reply-To: <YqK/lPx3m1PSOXny@yekko>
[-- Attachment #1: Type: text/plain, Size: 2724 bytes --]
On Fri, 10 Jun 2022 13:50:44 +1000
David Gibson <david(a)gibson.dropbear.id.au> wrote:
> Hi again,
>
> I realized I wasn't quite right when I said that qrap problems where
> what was currently stopping me running the passt (not pasta) tests. I
> did hit qrap issues somewhere, but the current stumbling block is that
> mbuto looks for udhcpc to put into the guest image, which I can't
> easily put onto my host system.
>
> Now, in the short term, once my patch to remove usage of udhcpc from
> the passt/pasta tests is applied, we could just remove udhcpc from the
> mbuto profile as well. However, that raises a wider scope issue:
>
> The passt testing profile for mbuto appliances is in the mbuto tree,
> not the passt tree. That doesn't realy make sense, since it means any
> change to what we need for the passt tests requires a synchronized
> change with mbuto. Particularly for a pretty young and project like
> passt, that's not really tenable. Plus, slurping an external tool
> from some random URL in the tests is just kinda ugly.
Hmm, yes, in my ideal world mbuto would be already widely distributed
and we could drop the git clone. On the other hand, that's still one
long-term goal of mine, so:
> I'm not immediately sure how best to to address this:
>
> * We could make mbuto take the profiles as some sort of external
> file, so they can be provided by the user, rather than built into
> the mbuto repository.
...I would prefer this option. Even though if you look at mbuto's git
history, the last change to the passt profile was in September last
year, so quantitatively speaking this might be more of a theoretical
problem.
Actually, mbuto already allows overriding every part of a profile with
environmental variables (this would be PROGS), but the resulting
command line wouldn't be that nice, especially for demos.
I could implement an option there which sources a shell script file
with assignments, instead. Would that make sense?
> * We could just fork a copy of mbuto into the passt tree, making
> local modifications for the profile, and only manually updating it
> to match upstream mbuto changes.
Oh, you mean "vendoring"... :) this looks rather messy to me.
> * We could use an entirely different and more established tool for
> building our testing guest images in passt (e.g. supermin,
> buildroot or just picking a standard distro guest image)
supermin needs packages though: it only supports Debian and Fedora at
the moment, and we would also have an issue with neper's tcp_{,c}rr and
udp_rr.
Buildroot would be somewhat slow in demos, same for a "standard" distro
image (which we would need to update and tweak before starting it, too).
--
Stefano
next prev parent reply other threads:[~2022-06-14 1:33 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-10 3:50 passt & mbuto David Gibson
2022-06-14 1:33 ` Stefano Brivio [this message]
2022-06-14 2:57 ` David Gibson
2022-06-14 14:30 ` Stefano Brivio
2022-06-16 6:51 ` Stefano Brivio
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=20220614033313.5a8c6600@elisabeth \
--to=sbrivio@redhat.com \
--cc=passt-dev@passt.top \
/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.
Code repositories for project(s) associated with this public inbox
https://passt.top/passt
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 IMAP folder(s).