From nobody Sun Dec 14 06:15:45 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1558528310; cv=none; d=zoho.com; s=zohoarc; b=Jr3CKsiyXUfsI0h4FfRM/clhJ7iArrn8urChgxdxA/1WwFzCvPe3d+AmoMSwS4trXro2XENfVRvSztLwpIi81vuWyXvumZZN4AUfN5YzUHM6DVGJISeNqoRRzVq/2baShvGM3S0RXAfAUF9g7/MSZOiDmjz6nFp8JvJD3PDZoLg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1558528310; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=D3G+f6+FFZEL5Vjuk6/BDqZPRDCiOQZrbWLwi2uie2Y=; b=Y0TNkUJyTCslpR97wUzLl34iXcBP9ZFFZJ27NCXNuC7IxJXpdeC+RsCXhqAMRVFOeoKK03VucUxDGYNAt7L8gwc8m3GIguUBXxLck5zcxdwcvYN8bOQNEiHe+oE7s+KeZOoBIF6j0CPiGjRYibfSLK8jfq/QXGKXkNJ8qmoBm+I= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1558528310696660.3474089524847; Wed, 22 May 2019 05:31:50 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C64EE3001828; Wed, 22 May 2019 12:31:26 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 95FAC8A54B; Wed, 22 May 2019 12:31:23 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 584C25B424; Wed, 22 May 2019 12:31:18 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x4MCTC96021316 for ; Wed, 22 May 2019 08:29:12 -0400 Received: by smtp.corp.redhat.com (Postfix) id 97958648D0; Wed, 22 May 2019 12:29:12 +0000 (UTC) Received: from dhcp-17-248.lcy.redhat.com (unknown [10.42.17.248]) by smtp.corp.redhat.com (Postfix) with ESMTP id DA6F0648D9; Wed, 22 May 2019 12:29:10 +0000 (UTC) From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: libvir-list@redhat.com Date: Wed, 22 May 2019 13:29:02 +0100 Message-Id: <20190522122903.18763-3-berrange@redhat.com> In-Reply-To: <20190522122903.18763-1-berrange@redhat.com> References: <20190522122903.18763-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 2/3] network: add more debugging of firewall chain creation X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.40]); Wed, 22 May 2019 12:31:44 +0000 (UTC) Signed-off-by: Daniel P. Berrang=C3=A9 Reviewed-by: Jim Fehlig --- src/network/bridge_driver_linux.c | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/src/network/bridge_driver_linux.c b/src/network/bridge_driver_= linux.c index 0d849173b2..2b29363f3c 100644 --- a/src/network/bridge_driver_linux.c +++ b/src/network/bridge_driver_linux.c @@ -45,28 +45,42 @@ static void networkSetupPrivateChains(void) { int rc; =20 + VIR_DEBUG("Setting up global firewall chains"); + createdChains =3D false; =20 rc =3D iptablesSetupPrivateChains(VIR_FIREWALL_LAYER_IPV4); if (rc < 0) { + VIR_DEBUG("Failed to create global IPv4 chains: %s", + virGetLastErrorMessage()); errInitV4 =3D virSaveLastError(); virResetLastError(); } else { virFreeError(errInitV4); errInitV4 =3D NULL; - if (rc) + if (rc) { + VIR_DEBUG("Created global IPv4 chains"); createdChains =3D true; + } else { + VIR_DEBUG("Global IPv4 chains already exist"); + } } =20 rc =3D iptablesSetupPrivateChains(VIR_FIREWALL_LAYER_IPV6); if (rc < 0) { + VIR_DEBUG("Failed to create global IPv6 chains: %s", + virGetLastErrorMessage()); errInitV6 =3D virSaveLastError(); virResetLastError(); } else { virFreeError(errInitV6); errInitV6 =3D NULL; - if (rc) + if (rc) { + VIR_DEBUG("Created global IPv6 chains"); createdChains =3D true; + } else { + VIR_DEBUG("Global IPv6 chains already exist"); + } } } =20 --=20 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list