From nobody Thu Mar 10 00:40:39 2022 X-Original-To: freebsd-net@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 5078A19F4DC9 for ; Thu, 10 Mar 2022 00:40:56 +0000 (UTC) (envelope-from joh.hendriks@gmail.com) Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KDVbq44Bwz4lxr for ; Thu, 10 Mar 2022 00:40:55 +0000 (UTC) (envelope-from joh.hendriks@gmail.com) Received: by mail-lj1-x229.google.com with SMTP id u3so5625292ljd.0 for ; Wed, 09 Mar 2022 16:40:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=N7iowvL0mg4K8B5wmOimkJt1NHgr1gCfx4dm2anA6Nk=; b=KGHb3WtcTvlsoisUbeOphWplUyMd6l4yfd4yJ/Qk5Gg9eaMLaAi1K4iN30kOMmIwuU tNEAiqAqIU2V3U7muXvBMZvCl0HsAI5lATVvPBwseuU3K/+muim+1Z6k4FHOa6S/h2AG RRzZk5GsQyFdga9Yz5bFiWIQ2Lq0V54sK4I4xg5yZZYd0DjduRYGpCNkeQckuzD6Xpbo m7Bqnl07al2FJxZ/Qtm19FVqKwQw+sTUPRf8aoT/CFMRvSVPMgaKFin78v1G5UstdTLA BaPCPbC6leGIH1WbNPo/kSOn0UEo4E/iYH1O/0PMR6bB/y/BDcAxRNB69UGh42P329YK 9QXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=N7iowvL0mg4K8B5wmOimkJt1NHgr1gCfx4dm2anA6Nk=; b=sfw14+7xeKNcSWN9FfdWCZR0p4QugWVaLUdLRhxcHCLkV5nsvrti4xlHp7D2Ka5uH1 DA9PpxuV+69FH9nH548SJbG4Wg0ZhdShOkQlu01DUTgb+m0OWYKdQ7pIC4Kdo8TvyHJW pedD55xww+6vjMOM91FgH9LV2vX+6B+gOENqAVjk0p33+fCdWVaId6EiROO+7Bo+nYs/ 429cj2e7hhaVSA2x6AZjniSD/Zx9Y+PrDkBDVfcHaNO2EQCpUCyiYvcJHJIZvrMB3g4X RAdraFzMqz+AGERKoq9wTXwtE7BQ5oV1+AginrEAJYZrNA0/J6XsJNxWo9YXwMfwLbgf nTKQ== X-Gm-Message-State: AOAM531vbEHv+AoEhQK5RqcpYOOvAz7maT1wtJ3S9Ew8suH+/WE3DCjV taGLsyA+St8PSwSQ2VM15MFAhKOjXIhufWCn3Hct6FtBTTo= X-Google-Smtp-Source: ABdhPJwqjz8n9kPQRKXWitWCx8KPLe5hlp8JEphTOc5/1FCfvdpjCbTENYXdrkfcNJ+kOnfnRFfILSD92NuWceOWyeI= X-Received: by 2002:a2e:960f:0:b0:248:3f7:c0da with SMTP id v15-20020a2e960f000000b0024803f7c0damr1377495ljh.324.1646872852305; Wed, 09 Mar 2022 16:40:52 -0800 (PST) List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 References: <051d51b6-2a07-fbc6-7b4d-13947e7fcdbb@gmail.com> In-Reply-To: <051d51b6-2a07-fbc6-7b4d-13947e7fcdbb@gmail.com> From: Johan Hendriks Date: Thu, 10 Mar 2022 01:40:39 +0100 Message-ID: Subject: Re: epair and vnet jail loose connection. To: freebsd-net@freebsd.org Content-Type: multipart/alternative; boundary="0000000000005a1b5905d9d277b2" X-Rspamd-Queue-Id: 4KDVbq44Bwz4lxr X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=KGHb3Wtc; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of johhendriks@gmail.com designates 2a00:1450:4864:20::229 as permitted sender) smtp.mailfrom=johhendriks@gmail.com X-Spamd-Result: default: False [-4.00 / 15.00]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_NONE(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-net@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::229:from]; MLMMJ_DEST(0.00)[freebsd-net]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N --0000000000005a1b5905d9d277b2 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I remembered that it used to work, so i thought lets go back in time. So i did a git reset --hard 375fdb6e161ea78a957314efeecd5ee0654a2793 which is a commit from january the first of 2022. [root]@[jhost001] - [ ~ ] > uname -a FreeBSD jhost001 13.0-STABLE FreeBSD 13.0-STABLE #0 stable/13-n248793-375fdb6e161: Thu Mar 10 00:11:19 CET 2022 root@jhost001:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 With this version i do not see the jails go down, so it is something that has been done after 01-01-2022 I will try to rebuild it a couple more times and see when it breaks. Op wo 9 mrt. 2022 om 20:55 schreef Johan Hendriks : > The problem: > I have a FreeBSD 14 machine and a FreeBSD 13-stable machine, both running= the same jails just to test the workings. > > The jails that are running are a salt master, a haproxy jail, 2 webserve= rs, 2 varnish servers, 2 php jails one for php8.0 and one with 8.1. All the= jails are connected to bridge0 and all the jails use vnet. > > I believe this worked on an older 14-HEAD machine, but i did not do a lot= with it back then, and when i started testing again and after updating the= OS i noticed that one of the varnish jails lost it's network connection af= ter running for a few hours. I thought it was just something on HEAD so nev= er really looked at it. But later on when i start using the jails again and= testing a test wordpress site i noticed that with a simple load test my ha= proxy jail within one minute looses it's network connection. I see nothing = in the logs, on the host and on the jail. > From the jail i can not ping the other jails or the IP adres of the bridg= e. I can however ping the jails own IP adres. From the host i can also not = ping the haproxy jail IP adres. If i start a tcpdump on the epaira interfac= e from the haproxy jail i do see the packets arrive but not in the jail. > > I used ZFS to send all the jails to a 13-STABLE machine and copied over t= he jail.conf file as well as the pf.conf file and i saw the same behavior. > > Then i tried to use 13.0-RELEASE-p7 and on that machine i do not see this= happening. There i can stress test the machine for 10 minutes without a pr= oblem but on 14-HEAD and 13-STABLE within a minute the jail's network conne= ction fails and only a restart of the jail brings it back online to exhibit= the same behavior if i start a simple load test which it should handle nic= ely. > > One of the jail hosts is running under VMWARE and the other is running un= der Ubuntu with KVM. The 13.0-RELEASE-p7 jail host is running under Ubuntu = with KVM > > Thank you for your time. > regards > Johan > > --0000000000005a1b5905d9d277b2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I remembered that it used to work, so i thought lets go ba= ck in time.
So i did a=C2=A0git reset --hard 375fdb6e161ea78a957314efeec= d5ee0654a2793 which is a commit from january the first of 2022.=C2=A0
[root]@[jhost001] -
[ ~ ] > uname -a
FreeBSD jhost001 13.0-STABL= E FreeBSD 13.0-STABLE #0 stable/13-n248793-375fdb6e161: Thu Mar 10 00:11:19= CET 2022 =C2=A0 =C2=A0 root@jhost001:/usr/obj/usr/src/amd64.amd64/sys/GENE= RIC =C2=A0amd64

With this version i do not see the jails go down, so= it is something that has been done after 01-01-2022
I will try to rebui= ld it a couple more times and see when it breaks.



Op wo 9 mrt. 2= 022 om 20:55 schreef Johan Hendriks <joh.hendriks@gmail.com>:
=20 =20 =20
The problem:
I have a FreeBSD 14 machine and a FreeBSD 13-stable machine, both running t=
he same jails just to test the workings.

The jails that are running are a salt master, a haproxy  jail, 2 webservers=
, 2 varnish servers, 2 php jails one for php8.0 and one with 8.1. All the j=
ails are connected to bridge0 and all the jails use vnet.

I believe this worked on an older 14-HEAD machine, but i did not do a lot w=
ith it back then, and when i started testing again and after updating the O=
S i noticed that one of the varnish jails lost it's network connection =
after running for a few hours. I thought it was just something on HEAD so n=
ever really looked at it. But later on when i start using the jails again a=
nd testing a test wordpress site i noticed that with a simple load test my =
haproxy jail within one minute looses it's network connection. I see no=
thing in the logs, on the host and on the jail.
>From the jail i can not ping the other jails or the IP adres of the bridge.=
 I can however ping the jails own IP adres. From the host i can also not pi=
ng the haproxy jail IP adres. If i start a tcpdump on the epaira interface =
from the haproxy jail i do see the packets arrive but not in the jail.

I used ZFS to send all the jails to a 13-STABLE machine and copied over the=
 jail.conf file as well as the pf.conf file and i saw the same behavior.

Then i tried to use 13.0-RELEASE-p7 and on that machine i do not see this h=
appening. There i can stress test the machine for 10 minutes without a prob=
lem but on 14-HEAD and 13-STABLE within a minute the jail's network con=
nection fails and only a restart of the jail brings it back online to exhib=
it the same behavior if i start a simple load test which it should handle n=
icely.

One of the jail hosts is running under VMWARE and the other is running unde=
r Ubuntu with KVM. The 13.0-RELEASE-p7 jail host is running under Ubuntu wi=
th KVM

Thank you for your time.
regards
Johan
--0000000000005a1b5905d9d277b2--