get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/2218114/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 2218114,
    "url": "http://patchwork.ozlabs.org/api/patches/2218114/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/openvswitch/patch/15920e29c27bce96b361cad7b8e7a623dc0b144f.1774960196.git.tredaelli@redhat.com/",
    "project": {
        "id": 47,
        "url": "http://patchwork.ozlabs.org/api/projects/47/?format=api",
        "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": "<15920e29c27bce96b361cad7b8e7a623dc0b144f.1774960196.git.tredaelli@redhat.com>",
    "list_archive_url": null,
    "date": "2026-03-31T12:34:23",
    "name": "[ovs-dev,v2,3/5] rhel: Add ovsdb-server.socket unit for systemd socket activation.",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "bd83e6a3ffbe5fbf845e433a4939d8b9a372d566",
    "submitter": {
        "id": 70949,
        "url": "http://patchwork.ozlabs.org/api/people/70949/?format=api",
        "name": "Timothy Redaelli",
        "email": "tredaelli@redhat.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/openvswitch/patch/15920e29c27bce96b361cad7b8e7a623dc0b144f.1774960196.git.tredaelli@redhat.com/mbox/",
    "series": [
        {
            "id": 498188,
            "url": "http://patchwork.ozlabs.org/api/series/498188/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/openvswitch/list/?series=498188",
            "date": "2026-03-31T12:34:22",
            "name": "Add systemd socket activation for ovsdb-server",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/498188/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2218114/comments/",
    "check": "warning",
    "checks": "http://patchwork.ozlabs.org/api/patches/2218114/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@legolas.ozlabs.org",
            "ovs-dev@lists.linuxfoundation.org"
        ],
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=QegynNfp;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org\n (client-ip=2605:bc80:3010::133; helo=smtp2.osuosl.org;\n envelope-from=ovs-dev-bounces@openvswitch.org; receiver=patchwork.ozlabs.org)",
            "smtp2.osuosl.org;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key)\n header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=QegynNfp",
            "smtp2.osuosl.org; dmarc=pass (p=quarantine dis=none)\n header.from=redhat.com"
        ],
        "Received": [
            "from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4flSHx4WkYz1y1q\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 31 Mar 2026 23:35:09 +1100 (AEDT)",
            "from localhost (localhost [127.0.0.1])\n\tby smtp2.osuosl.org (Postfix) with ESMTP id E918D400A5;\n\tTue, 31 Mar 2026 12:35:06 +0000 (UTC)",
            "from smtp2.osuosl.org ([127.0.0.1])\n by localhost (smtp2.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP\n id rm4uiNEsEWBw; Tue, 31 Mar 2026 12:35:05 +0000 (UTC)",
            "from lists.linuxfoundation.org (lf-lists.osuosl.org\n [IPv6:2605:bc80:3010:104::8cd3:938])\n\tby smtp2.osuosl.org (Postfix) with ESMTPS id 35A9E406B1;\n\tTue, 31 Mar 2026 12:35:04 +0000 (UTC)",
            "from lf-lists.osuosl.org (localhost [127.0.0.1])\n\tby lists.linuxfoundation.org (Postfix) with ESMTP id 9DF3EC054C;\n\tTue, 31 Mar 2026 12:35:03 +0000 (UTC)",
            "from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133])\n by lists.linuxfoundation.org (Postfix) with ESMTP id 146BBC0549\n for <dev@openvswitch.org>; Tue, 31 Mar 2026 12:35:01 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n by smtp2.osuosl.org (Postfix) with ESMTP id 1A71640691\n for <dev@openvswitch.org>; Tue, 31 Mar 2026 12:35:00 +0000 (UTC)",
            "from smtp2.osuosl.org ([127.0.0.1])\n by localhost (smtp2.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP\n id sjeqZyZMNC2g for <dev@openvswitch.org>;\n Tue, 31 Mar 2026 12:34:59 +0000 (UTC)",
            "from us-smtp-delivery-124.mimecast.com\n (us-smtp-delivery-124.mimecast.com [170.10.129.124])\n by smtp2.osuosl.org (Postfix) with ESMTPS id 2CE7E40696\n for <dev@openvswitch.org>; Tue, 31 Mar 2026 12:34:58 +0000 (UTC)",
            "from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com\n (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by\n relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3,\n cipher=TLS_AES_256_GCM_SHA384) id us-mta-59-HXkksL34N0mRA17IcuHwAw-1; Tue,\n 31 Mar 2026 08:34:56 -0400",
            "from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com\n (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n (No client certificate requested)\n by mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS\n id 5274D18005B4; Tue, 31 Mar 2026 12:34:55 +0000 (UTC)",
            "from aldebaran.char-dominant.ts.net (unknown [10.44.32.65])\n by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP\n id 2238919560AB; Tue, 31 Mar 2026 12:34:53 +0000 (UTC)"
        ],
        "X-Virus-Scanned": [
            "amavis at osuosl.org",
            "amavis at osuosl.org"
        ],
        "X-Comment": "SPF check N/A for local connections -\n client-ip=2605:bc80:3010:104::8cd3:938; helo=lists.linuxfoundation.org;\n envelope-from=ovs-dev-bounces@openvswitch.org; receiver=<UNKNOWN> ",
        "DKIM-Filter": [
            "OpenDKIM Filter v2.11.0 smtp2.osuosl.org 35A9E406B1",
            "OpenDKIM Filter v2.11.0 smtp2.osuosl.org 2CE7E40696"
        ],
        "Received-SPF": "Pass (mailfrom) identity=mailfrom; client-ip=170.10.129.124;\n helo=us-smtp-delivery-124.mimecast.com; envelope-from=tredaelli@redhat.com;\n receiver=<UNKNOWN>",
        "DMARC-Filter": "OpenDMARC Filter v1.4.2 smtp2.osuosl.org 2CE7E40696",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1774960497;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:cc:mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=4aOiMp19j1s1pRVKHZnCgVrvs8BXsxiRbAoP+BG5Pws=;\n b=QegynNfp1x15cF8WQRKIDfjz29dGjv7SwG2b6YkfVs+/hBlvtsNc0mA4TWjwC4FUtQql45\n rNUiGb5VgEGYjE2bEscac8hMXj9ILmX/7wE95sOFE92IFGSJzuW+sd9pHeQKJjkEdopG3R\n pz0Q/xlIOFmzpmeHLSrCI56WQ7X5p2E=",
        "X-MC-Unique": "HXkksL34N0mRA17IcuHwAw-1",
        "X-Mimecast-MFC-AGG-ID": "HXkksL34N0mRA17IcuHwAw_1774960495",
        "To": "dev@openvswitch.org",
        "Date": "Tue, 31 Mar 2026 14:34:23 +0200",
        "Message-ID": "\n <15920e29c27bce96b361cad7b8e7a623dc0b144f.1774960196.git.tredaelli@redhat.com>",
        "In-Reply-To": "<cover.1774960196.git.tredaelli@redhat.com>",
        "References": "<cover.1774960196.git.tredaelli@redhat.com>",
        "MIME-Version": "1.0",
        "X-Scanned-By": "MIMEDefang 3.0 on 10.30.177.12",
        "X-Mimecast-Spam-Score": "0",
        "X-Mimecast-MFC-PROC-ID": "Yg7RkJu3ljLl_vByxi2tysrBAzQlR0bpUbubHcCTCZM_1774960495",
        "X-Mimecast-Originator": "redhat.com",
        "Subject": "[ovs-dev] [PATCH v2 3/5] rhel: Add ovsdb-server.socket unit for\n systemd socket activation.",
        "X-BeenThere": "ovs-dev@openvswitch.org",
        "X-Mailman-Version": "2.1.30",
        "Precedence": "list",
        "List-Id": "<ovs-dev.openvswitch.org>",
        "List-Unsubscribe": "<https://mail.openvswitch.org/mailman/options/ovs-dev>,\n <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 <mailto:ovs-dev-request@openvswitch.org?subject=subscribe>",
        "From": "Timothy Redaelli via dev <ovs-dev@openvswitch.org>",
        "Reply-To": "Timothy Redaelli <tredaelli@redhat.com>",
        "Cc": "Lubomir Rintel <lkundrak@v3.sk>",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Errors-To": "ovs-dev-bounces@openvswitch.org",
        "Sender": "\"dev\" <ovs-dev-bounces@openvswitch.org>"
    },
    "content": "Add an ovsdb-server.socket unit that has systemd create and manage the\n/run/openvswitch/db.sock listening socket.  This eliminates the window\nduring ovsdb-server restarts when clients cannot connect to the database.\n\nThe socket unit reads OVS_USER_ID from the same configuration files as\nthe service unit (/etc/openvswitch/default.conf, /etc/sysconfig/openvswitch)\nand adjusts socket group ownership via ExecStartPost so that non-root\nOVS deployments can connect.\n\nUpdate service dependencies:\n  - ovsdb-server.service: Requires=ovsdb-server.socket\n  - ovs-vswitchd.service: After/Requires=ovsdb-server.socket instead of\n    ovsdb-server.service, remove AssertPathIsReadWrite (socket exists\n    before the service starts)\n  - ovs-delete-transient-ports.service: After=ovsdb-server.socket,\n    remove AssertPathExists (same reason)\n\nCo-authored-by: Lubomir Rintel <lkundrak@v3.sk>\nSigned-off-by: Lubomir Rintel <lkundrak@v3.sk>\nSigned-off-by: Timothy Redaelli <tredaelli@redhat.com>\n---\n rhel/automake.mk                                |  1 +\n rhel/openvswitch-fedora.spec.in                 |  4 ++++\n ...md_system_ovs-delete-transient-ports.service |  3 +--\n ...r_lib_systemd_system_ovs-vswitchd.service.in |  5 ++---\n .../usr_lib_systemd_system_ovsdb-server.service |  1 +\n rhel/usr_lib_systemd_system_ovsdb-server.socket | 17 +++++++++++++++++\n 6 files changed, 26 insertions(+), 5 deletions(-)\n create mode 100644 rhel/usr_lib_systemd_system_ovsdb-server.socket",
    "diff": "diff --git a/rhel/automake.mk b/rhel/automake.mk\nindex 246bfb51e..9a08bf556 100644\n--- a/rhel/automake.mk\n+++ b/rhel/automake.mk\n@@ -23,6 +23,7 @@ EXTRA_DIST += \\\n \trhel/usr_lib_udev_rules.d_91-vfio.rules \\\n \trhel/usr_lib_systemd_system_openvswitch.service \\\n \trhel/usr_lib_systemd_system_ovsdb-server.service \\\n+\trhel/usr_lib_systemd_system_ovsdb-server.socket \\\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_openvswitch-ipsec.service\ndiff --git a/rhel/openvswitch-fedora.spec.in b/rhel/openvswitch-fedora.spec.in\nindex 320b1ad86..88bb734ad 100644\n--- a/rhel/openvswitch-fedora.spec.in\n+++ b/rhel/openvswitch-fedora.spec.in\n@@ -229,6 +229,9 @@ for service in openvswitch ovsdb-server ovs-vswitchd ovs-delete-transient-ports\n                         rhel/usr_lib_systemd_system_${service}.service \\\n                         $RPM_BUILD_ROOT%{_unitdir}/${service}.service\n done\n+install -p -D -m 0644 \\\n+        rhel/usr_lib_systemd_system_ovsdb-server.socket \\\n+        $RPM_BUILD_ROOT%{_unitdir}/ovsdb-server.socket\n install -m 0755 rhel/etc_init.d_openvswitch \\\n         $RPM_BUILD_ROOT%{_datadir}/openvswitch/scripts/openvswitch.init\n \n@@ -460,6 +463,7 @@ fi\n %config(noreplace) %{_sysconfdir}/logrotate.d/openvswitch\n %{_unitdir}/openvswitch.service\n %{_unitdir}/ovsdb-server.service\n+%{_unitdir}/ovsdb-server.socket\n %{_unitdir}/ovs-vswitchd.service\n %{_unitdir}/ovs-delete-transient-ports.service\n %{_datadir}/openvswitch/scripts/openvswitch.init\ndiff --git a/rhel/usr_lib_systemd_system_ovs-delete-transient-ports.service b/rhel/usr_lib_systemd_system_ovs-delete-transient-ports.service\nindex d4d7b204b..5f993e304 100644\n--- a/rhel/usr_lib_systemd_system_ovs-delete-transient-ports.service\n+++ b/rhel/usr_lib_systemd_system_ovs-delete-transient-ports.service\n@@ -1,8 +1,7 @@\n [Unit]\n Description=Open vSwitch Delete Transient Ports\n-After=ovsdb-server.service\n+After=ovsdb-server.socket\n Before=ovs-vswitchd.service\n-AssertPathExists=/run/openvswitch/db.sock\n \n [Service]\n Type=oneshot\ndiff --git a/rhel/usr_lib_systemd_system_ovs-vswitchd.service.in b/rhel/usr_lib_systemd_system_ovs-vswitchd.service.in\nindex 6d021618b..28f6dfc54 100644\n--- a/rhel/usr_lib_systemd_system_ovs-vswitchd.service.in\n+++ b/rhel/usr_lib_systemd_system_ovs-vswitchd.service.in\n@@ -1,10 +1,9 @@\n [Unit]\n Description=Open vSwitch Forwarding Unit\n-After=ovsdb-server.service network-pre.target systemd-udev-settle.service\n+After=ovsdb-server.socket network-pre.target systemd-udev-settle.service\n Before=network.target network.service\n-Requires=ovsdb-server.service\n+Requires=ovsdb-server.socket\n ReloadPropagatedFrom=ovsdb-server.service\n-AssertPathIsReadWrite=/run/openvswitch/db.sock\n PartOf=openvswitch.service\n \n [Service]\ndiff --git a/rhel/usr_lib_systemd_system_ovsdb-server.service b/rhel/usr_lib_systemd_system_ovsdb-server.service\nindex 43ea3a570..c6d5d4b52 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+Requires=ovsdb-server.socket\n Wants=ovs-delete-transient-ports.service\n PartOf=openvswitch.service\n \ndiff --git a/rhel/usr_lib_systemd_system_ovsdb-server.socket b/rhel/usr_lib_systemd_system_ovsdb-server.socket\nnew file mode 100644\nindex 000000000..543813e8c\n--- /dev/null\n+++ b/rhel/usr_lib_systemd_system_ovsdb-server.socket\n@@ -0,0 +1,17 @@\n+[Unit]\n+Description=Open vSwitch Database Socket\n+Before=ovsdb-server.service\n+\n+[Socket]\n+# Read OVS_USER_ID to set socket group ownership below.\n+# Note: /run/openvswitch.useropts is not available here because\n+# it is generated by ovsdb-server.service, which starts after us.\n+EnvironmentFile=/etc/openvswitch/default.conf\n+EnvironmentFile=-/etc/sysconfig/openvswitch\n+ListenStream=/run/openvswitch/db.sock\n+Service=ovsdb-server.service\n+SocketMode=0770\n+ExecStartPost=-/bin/sh -c 'GRP=\"${OVS_USER_ID##*:}\"; [ -n \"$GRP\" ] && [ \"$GRP\" != \"root\" ] && chgrp \"$GRP\" /run/openvswitch/db.sock || true'\n+\n+[Install]\n+WantedBy=sockets.target\n",
    "prefixes": [
        "ovs-dev",
        "v2",
        "3/5"
    ]
}