From nobody Thu Dec 18 04:59:29 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 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=1628009348; cv=none; d=zohomail.com; s=zohoarc; b=Y1KammNVx4y0Usm86TOPEKWbcJjVwcWoQRT2wJN8bWgSzWowJt+OUoQIqzS4ky1+ItA6BdP3IPYnPnrtnXceD7sY4se9Xt1lhA0pm/P4/n8b1Cf99zsFiYY58AJ3ZqnYdc2HAKHnHvAqtsKD9h1qfcql6pBff+7szApmx3zzy6E= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1628009348; 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; bh=69L2M/JbhCeVzg5e/upJCxZ8oT26gbuO1NXeJ6ExhgY=; b=DLayCtJv8+pHulliRkTbACJqGEi6DXa8rBHFXyTZWmNdog5xq17RbeBHemv2pgu6TphueI6LZjVIfqcBoYyudGGcA9Yk+IEDeZq76LDrpFQYLA/tr+uJZF17K9cWAgb7FQrMaOd2lLNx8OobPxR02aqg1/RbVZIbUHjRfr6QV1E= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.zohomail.com with SMTPS id 162800934850537.08622749496271; Tue, 3 Aug 2021 09:49:08 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-203-GvnXLowQOLe7FfkVXHCnNQ-1; Tue, 03 Aug 2021 12:49:05 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 2316993929; Tue, 3 Aug 2021 16:49:00 +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 F3FDC60C9D; Tue, 3 Aug 2021 16:48:59 +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 BDD28473CD; Tue, 3 Aug 2021 16:48:59 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 173G85AR017975 for ; Tue, 3 Aug 2021 12:08:05 -0400 Received: by smtp.corp.redhat.com (Postfix) id 78E8826FC0; Tue, 3 Aug 2021 16:08:05 +0000 (UTC) Received: from localhost.localdomain.com (unknown [10.39.194.216]) by smtp.corp.redhat.com (Postfix) with ESMTP id A6EE227C4E; Tue, 3 Aug 2021 16:08:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1628009347; h=from:from:sender:sender: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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=69L2M/JbhCeVzg5e/upJCxZ8oT26gbuO1NXeJ6ExhgY=; b=V49GRXnTGeBxPYS0tIwDF26hMYfg2d2JJOKDxY2B4nquOK1mcHK2cMjuYR+m302mgfJ8hn 4wgfqFWBL0TpEdKrsZd+Z8+WB5Xx7GsS6oeOyQn7U5WsRakWNdNqpBwUC+fW2vw1BUikFO Aq7jPKafOMfoKUGLwqG7p+UbF5gQGBU= X-MC-Unique: GvnXLowQOLe7FfkVXHCnNQ-1 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: libvir-list@redhat.com Subject: [libvirt PATCH 2/6] rpm: restart virtnwfilter/virnetworkd if configs change Date: Tue, 3 Aug 2021 17:07:50 +0100 Message-Id: <20210803160754.3333793-3-berrange@redhat.com> In-Reply-To: <20210803160754.3333793-1-berrange@redhat.com> References: <20210803160754.3333793-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: libvir-list@redhat.com 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: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1628009349179100002 Currently we restart libvirtd if the nwfilter/network configs have changed. We need to take account of possibility that the modular daemons are in use instead though. Signed-off-by: Daniel P. Berrang=C3=A9 --- libvirt.spec.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libvirt.spec.in b/libvirt.spec.in index 1d657aec35..c00d4c73da 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -1404,10 +1404,12 @@ if test $1 -eq 1 && test ! -f %{_sysconfdir}/libvir= t/qemu/networks/default.xml ; =20 # Make sure libvirt picks up the new network defininiton %libvirt_daemon_schedule_restart libvirtd + %libvirt_daemon_schedule_restart virtnetworkd fi =20 %posttrans daemon-config-network %libvirt_daemon_perform_restart libvirtd +%libvirt_daemon_perform_restart virtnetworkd =20 %post daemon-config-nwfilter for datadir_file in %{_datadir}/libvirt/nwfilter/*.xml; do @@ -1419,9 +1421,11 @@ for datadir_file in %{_datadir}/libvirt/nwfilter/*.x= ml; do done # Make sure libvirt picks up the new nwfilter defininitons %libvirt_daemon_schedule_restart libvirtd +%libvirt_daemon_schedule_restart virtnwfilterd =20 %posttrans daemon-config-nwfilter %libvirt_daemon_perform_restart libvirtd +%libvirt_daemon_perform_restart virtnwfilterd =20 %if %{with_qemu} %pre daemon-driver-qemu --=20 2.31.1