{"id":813202,"url":"http://patchwork.ozlabs.org/api/patches/813202/?format=json","web_url":"http://patchwork.ozlabs.org/project/openvswitch/patch/6cc09b4922f4c7944ebb4e030fefac3380966233.1504871394.git.tredaelli@redhat.com/","project":{"id":47,"url":"http://patchwork.ozlabs.org/api/projects/47/?format=json","name":"Open vSwitch","link_name":"openvswitch","list_id":"ovs-dev.openvswitch.org","list_email":"ovs-dev@openvswitch.org","web_url":"http://openvswitch.org/","scm_url":"git@github.com:openvswitch/ovs.git","webscm_url":"https://github.com/openvswitch/ovs","list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<6cc09b4922f4c7944ebb4e030fefac3380966233.1504871394.git.tredaelli@redhat.com>","list_archive_url":null,"date":"2017-09-13T07:35:34","name":"[ovs-dev,v4,2/2] rhel: Add systemd support to delete transient ports only on boot","commit_ref":null,"pull_url":null,"state":"accepted","archived":false,"hash":"06d32936df75e56540f1aa652f85442ca2d9472d","submitter":{"id":70949,"url":"http://patchwork.ozlabs.org/api/people/70949/?format=json","name":"Timothy Redaelli","email":"tredaelli@redhat.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/openvswitch/patch/6cc09b4922f4c7944ebb4e030fefac3380966233.1504871394.git.tredaelli@redhat.com/mbox/","series":[{"id":2823,"url":"http://patchwork.ozlabs.org/api/series/2823/?format=json","web_url":"http://patchwork.ozlabs.org/project/openvswitch/list/?series=2823","date":"2017-09-13T07:35:32","name":"Add system service to delete transient ports on boot.","version":4,"mbox":"http://patchwork.ozlabs.org/series/2823/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/813202/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/813202/checks/","tags":{},"related":[],"headers":{"Return-Path":"<ovs-dev-bounces@openvswitch.org>","X-Original-To":["incoming@patchwork.ozlabs.org","dev@openvswitch.org"],"Delivered-To":["patchwork-incoming@bilbo.ozlabs.org","ovs-dev@mail.linuxfoundation.org"],"Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=openvswitch.org\n\t(client-ip=140.211.169.12; helo=mail.linuxfoundation.org;\n\tenvelope-from=ovs-dev-bounces@openvswitch.org;\n\treceiver=<UNKNOWN>)","ext-mx04.extmail.prod.ext.phx2.redhat.com;\n\tdmarc=none (p=none dis=none) header.from=redhat.com","ext-mx04.extmail.prod.ext.phx2.redhat.com;\n\tspf=fail smtp.mailfrom=tredaelli@redhat.com"],"Received":["from mail.linuxfoundation.org (mail.linuxfoundation.org\n\t[140.211.169.12])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xsYQQ5byKz9sNw\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 13 Sep 2017 17:37:02 +1000 (AEST)","from mail.linux-foundation.org (localhost [127.0.0.1])\n\tby mail.linuxfoundation.org (Postfix) with ESMTP id A16A2B4B;\n\tWed, 13 Sep 2017 07:35:48 +0000 (UTC)","from smtp1.linuxfoundation.org (smtp1.linux-foundation.org\n\t[172.17.192.35])\n\tby mail.linuxfoundation.org (Postfix) with ESMTPS id CB818B1B\n\tfor <dev@openvswitch.org>; Wed, 13 Sep 2017 07:35:46 +0000 (UTC)","from mx1.redhat.com (mx1.redhat.com [209.132.183.28])\n\tby smtp1.linuxfoundation.org (Postfix) with ESMTPS id D7172113\n\tfor <dev@openvswitch.org>; Wed, 13 Sep 2017 07:35:45 +0000 (UTC)","from smtp.corp.redhat.com\n\t(int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby mx1.redhat.com (Postfix) with ESMTPS id 4C5C87EA8B\n\tfor <dev@openvswitch.org>; Wed, 13 Sep 2017 07:35:45 +0000 (UTC)","from graphite.redhat.com (ovpn-116-78.ams2.redhat.com\n\t[10.36.116.78])\n\tby smtp.corp.redhat.com (Postfix) with ESMTP id C111B5C6D7\n\tfor <dev@openvswitch.org>; Wed, 13 Sep 2017 07:35:44 +0000 (UTC)"],"X-Greylist":["domain auto-whitelisted by SQLgrey-1.7.6","Sender IP whitelisted, not delayed by milter-greylist-4.5.16\n\t(mx1.redhat.com [10.5.110.28]);\n\tWed, 13 Sep 2017 07:35:45 +0000 (UTC)"],"DMARC-Filter":"OpenDMARC Filter v1.3.2 mx1.redhat.com 4C5C87EA8B","From":"Timothy Redaelli <tredaelli@redhat.com>","To":"dev@openvswitch.org","Date":"Wed, 13 Sep 2017 09:35:34 +0200","Message-Id":"<6cc09b4922f4c7944ebb4e030fefac3380966233.1504871394.git.tredaelli@redhat.com>","In-Reply-To":"<cover.1504871394.git.tredaelli@redhat.com>","References":"<cover.1504871394.git.tredaelli@redhat.com>","X-Scanned-By":"MIMEDefang 2.79 on 10.5.11.11","X-Spam-Status":"No, score=-5.0 required=5.0 tests=RCVD_IN_DNSWL_HI,\n\tRP_MATCHES_RCVD autolearn=disabled version=3.3.1","X-Spam-Checker-Version":"SpamAssassin 3.3.1 (2010-03-16) on\n\tsmtp1.linux-foundation.org","Subject":"[ovs-dev] [PATCH v4 2/2] rhel: Add systemd support to delete\n\ttransient ports only on boot","X-BeenThere":"ovs-dev@openvswitch.org","X-Mailman-Version":"2.1.12","Precedence":"list","List-Id":"<ovs-dev.openvswitch.org>","List-Unsubscribe":"<https://mail.openvswitch.org/mailman/options/ovs-dev>,\n\t<mailto:ovs-dev-request@openvswitch.org?subject=unsubscribe>","List-Archive":"<http://mail.openvswitch.org/pipermail/ovs-dev/>","List-Post":"<mailto:ovs-dev@openvswitch.org>","List-Help":"<mailto:ovs-dev-request@openvswitch.org?subject=help>","List-Subscribe":"<https://mail.openvswitch.org/mailman/listinfo/ovs-dev>,\n\t<mailto:ovs-dev-request@openvswitch.org?subject=subscribe>","MIME-Version":"1.0","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Sender":"ovs-dev-bounces@openvswitch.org","Errors-To":"ovs-dev-bounces@openvswitch.org"},"content":"Using the dependencies feature of systemd ovs-delete-transient-ports.service\nis only started once and so transient ports are only deleted only the first\ntime after boot.\n\nAcked-by: Aaron Conole <aconole@redhat.com>\nSigned-off-by: Timothy Redaelli <tredaelli@redhat.com>\n---\n rhel/automake.mk                                               |  1 +\n rhel/openvswitch-fedora.spec.in                                |  3 ++-\n rhel/usr_lib_systemd_system_ovs-delete-transient-ports.service | 10 ++++++++++\n rhel/usr_lib_systemd_system_ovsdb-server.service               |  1 +\n 4 files changed, 14 insertions(+), 1 deletion(-)\n create mode 100644 rhel/usr_lib_systemd_system_ovs-delete-transient-ports.service","diff":"diff --git a/rhel/automake.mk b/rhel/automake.mk\nindex 1d1ac1a13..9336f0912 100644\n--- a/rhel/automake.mk\n+++ b/rhel/automake.mk\n@@ -30,6 +30,7 @@ EXTRA_DIST += \\\n \trhel/usr_lib_systemd_system_openvswitch.service \\\n \trhel/usr_lib_systemd_system_ovsdb-server.service \\\n \trhel/usr_lib_systemd_system_ovs-vswitchd.service.in \\\n+\trhel/usr_lib_systemd_system_ovs-delete-transient-ports.service \\\n \trhel/usr_lib_systemd_system_ovn-controller.service \\\n \trhel/usr_lib_systemd_system_ovn-controller-vtep.service \\\n \trhel/usr_lib_systemd_system_ovn-northd.service \\\ndiff --git a/rhel/openvswitch-fedora.spec.in b/rhel/openvswitch-fedora.spec.in\nindex dd79fa9a0..a08f369a3 100644\n--- a/rhel/openvswitch-fedora.spec.in\n+++ b/rhel/openvswitch-fedora.spec.in\n@@ -259,7 +259,7 @@ install -p -D -m 0644 rhel/usr_lib_udev_rules.d_91-vfio.rules \\\n install -p -D -m 0644 \\\n         rhel/usr_share_openvswitch_scripts_systemd_sysconfig.template \\\n         $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/openvswitch\n-for service in openvswitch ovsdb-server ovs-vswitchd \\\n+for service in openvswitch ovsdb-server ovs-vswitchd ovs-delete-transient-ports \\\n \t\tovn-controller ovn-controller-vtep ovn-northd; do\n \tinstall -p -D -m 0644 \\\n \t\t\trhel/usr_lib_systemd_system_${service}.service \\\n@@ -528,6 +528,7 @@ fi\n %{_unitdir}/openvswitch.service\n %{_unitdir}/ovsdb-server.service\n %{_unitdir}/ovs-vswitchd.service\n+%{_unitdir}/ovs-delete-transient-ports.service\n %{_datadir}/openvswitch/scripts/openvswitch.init\n %{_sysconfdir}/sysconfig/network-scripts/ifup-ovs\n %{_sysconfdir}/sysconfig/network-scripts/ifdown-ovs\ndiff --git a/rhel/usr_lib_systemd_system_ovs-delete-transient-ports.service b/rhel/usr_lib_systemd_system_ovs-delete-transient-ports.service\nnew file mode 100644\nindex 000000000..4cd4d7f57\n--- /dev/null\n+++ b/rhel/usr_lib_systemd_system_ovs-delete-transient-ports.service\n@@ -0,0 +1,10 @@\n+[Unit]\n+Description=Open vSwitch Delete Transient Ports\n+After=ovsdb-server.service\n+Before=ovs-vswitchd.service\n+AssertPathExists=/var/run/openvswitch/db.sock\n+\n+[Service]\n+Type=oneshot\n+RemainAfterExit=yes\n+ExecStart=/usr/share/openvswitch/scripts/ovs-ctl delete-transient-ports\ndiff --git a/rhel/usr_lib_systemd_system_ovsdb-server.service b/rhel/usr_lib_systemd_system_ovsdb-server.service\nindex 7acd25f78..5baac822d 100644\n--- a/rhel/usr_lib_systemd_system_ovsdb-server.service\n+++ b/rhel/usr_lib_systemd_system_ovsdb-server.service\n@@ -2,6 +2,7 @@\n Description=Open vSwitch Database Unit\n After=syslog.target network-pre.target\n Before=network.target network.service\n+Wants=ovs-delete-transient-ports.service\n ReloadPropagatedFrom=openvswitch.service\n PartOf=openvswitch.service\n \n","prefixes":["ovs-dev","v4","2/2"]}