From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: passt.top; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=K2i2ZU2P; dkim-atps=neutral Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by passt.top (Postfix) with ESMTPS id 69F915A0265 for ; Sat, 20 Jun 2026 22:09:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1781986166; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=2SrYvun7a+Z8zaRVssL3QVbthcP3vOYj5tu94fPqV0A=; b=K2i2ZU2Ph5Elic2/A2UcRj4U4ki3oW9Enw1iNZDt5KqcvYb9cNVxdrBwTSjD4tA1qkKp88 KEIn/PvWu4wpbt6fnQDkoy+egcBd/fevZfMa8D90wqGckPtaYiQ8ZbOosaIrSScuhcVSOV YRCB1+iYCSNv59DulagNuzYuEHNbULc= Received: from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-75-SWYFRHjiPD-O5nNzVDsEXg-1; Sat, 20 Jun 2026 16:09:24 -0400 X-MC-Unique: SWYFRHjiPD-O5nNzVDsEXg-1 X-Mimecast-MFC-AGG-ID: SWYFRHjiPD-O5nNzVDsEXg_1781986164 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id D69DD18004A9; Sat, 20 Jun 2026 20:09:23 +0000 (UTC) Received: from jmaloy-thinkpadp16vgen1.rmtcaqc.csb (unknown [10.22.88.44]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 9493918005B6; Sat, 20 Jun 2026 20:09:22 +0000 (UTC) From: Jon Maloy To: sbrivio@redhat.com, david@gibson.dropbear.id.au, jmaloy@redhat.com, passt-dev@passt.top Subject: [PATCH] test/lib: Add --config-net to setup_pasta() Date: Sat, 20 Jun 2026 16:09:21 -0400 Message-ID: <20260620200921.1720380-1-jmaloy@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: Wd10ceIQum7PT1kvpzWpUeo4SB5cLiEXk1wwN3c9bcg_1781986164 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit content-type: text/plain; charset="US-ASCII"; x-default=true Message-ID-Hash: W5PSVKNWY4KKAAZWAY4THAG5DFIJTVG2 X-Message-ID-Hash: W5PSVKNWY4KKAAZWAY4THAG5DFIJTVG2 X-MailFrom: jmaloy@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Since commit b4dace8 ("fwd: Direct inbound spliced forwards to the guest's external address"), inbound splice connections target the guest's external address (addr_seen) rather than loopback. This requires the namespace tap interface to be configured with that address. setup_pasta() starts pasta without --config-net, so the tap interface in the namespace is never brought up and has no addresses or routes. Splice connections to addr_seen fail because the address is unreachable in the namespace, breaking all pasta TCP and UDP tests. Add --config-net to the pasta command line in setup_pasta(), matching what setup_passt_in_ns() and setup_two_guests() already do. Signed-off-by: Jon Maloy --- test/lib/setup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/lib/setup b/test/lib/setup index 59945987..dbf8079d 100755 --- a/test/lib/setup +++ b/test/lib/setup @@ -107,7 +107,7 @@ setup_pasta() { [ ${DEBUG} -eq 1 ] && __opts="${__opts} -d" [ ${TRACE} -eq 1 ] && __opts="${__opts} --trace" - context_run_bg passt "./pasta ${__opts} -f -t 10002 -T 10003 -u 10002 -U 10003 -P ${STATESETUP}/passt.pid $(${NSTOOL} info -pw ${STATESETUP}/ns.hold)" + context_run_bg passt "./pasta ${__opts} -f -t 10002 -T 10003 -u 10002 -U 10003 --config-net -P ${STATESETUP}/passt.pid $(${NSTOOL} info -pw ${STATESETUP}/ns.hold)" # pidfile isn't created until pasta is ready wait_for [ -f "${STATESETUP}/passt.pid" ] -- 2.52.0