From patchwork Sat Mar 18 23:50:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladislav Odintsov X-Patchwork-Id: 1758581 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=2605:bc80:3010::137; helo=smtp4.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=WQCAIZIx; dkim-atps=neutral Received: from smtp4.osuosl.org (smtp4.osuosl.org [IPv6:2605:bc80:3010::137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PfHnH0YN3z1yWp for ; Sun, 19 Mar 2023 10:50:42 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 5262F415B5; Sat, 18 Mar 2023 23:50:40 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 5262F415B5 Authentication-Results: smtp4.osuosl.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=WQCAIZIx X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Cj2zyeuyGeJ8; Sat, 18 Mar 2023 23:50:39 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [IPv6:2605:bc80:3010:104::8cd3:938]) by smtp4.osuosl.org (Postfix) with ESMTPS id 2D4B541575; Sat, 18 Mar 2023 23:50:38 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 2D4B541575 Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id F19C9C0035; Sat, 18 Mar 2023 23:50:37 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by lists.linuxfoundation.org (Postfix) with ESMTP id D09CAC0032 for ; Sat, 18 Mar 2023 23:50:36 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 9E6A260E4E for ; Sat, 18 Mar 2023 23:50:36 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 9E6A260E4E Authentication-Results: smtp3.osuosl.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=WQCAIZIx X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bS5Z_o4yGKtD for ; Sat, 18 Mar 2023 23:50:36 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org B5BB260ADD Received: from mail-lj1-x234.google.com (mail-lj1-x234.google.com [IPv6:2a00:1450:4864:20::234]) by smtp3.osuosl.org (Postfix) with ESMTPS id B5BB260ADD for ; Sat, 18 Mar 2023 23:50:35 +0000 (UTC) Received: by mail-lj1-x234.google.com with SMTP id s20so1451444ljp.1 for ; Sat, 18 Mar 2023 16:50:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679183433; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Ka2UQZrlqXR1WS9PXmCp0L2CdbYsKgXziAlTq/lgz0E=; b=WQCAIZIxq65Li9k4uDIAVR/5pkBvo+ck7nuYGN/Qr5BoHVxoRjaTf4gW64IfVX1wID PV170mR0DbZJxc2YquLRHlArU2r1xhwfrXZqiIDXnrJ0xbJtMrUqIMb+5B22H7jt949f uRXQ03nAWqLemzGsiZxv5+zqWvLtZuiAwFgw+KGFyJz/9dGlsJtJ3KgwQwA1lUsWS2io OpUHRtDfv3QMzeE/Fcm34xI8CgP6EaCfh3I+2H9jejMC7OCfKH6CHL77rEUFhuoKe+Je /+6hJ9wZe9SVhgQIkSFq/Jm7H/3zHCoU8i2HAc6Klm6qOrUDxH3HQl+bnfPZcoP5Z+kl H0rQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679183433; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Ka2UQZrlqXR1WS9PXmCp0L2CdbYsKgXziAlTq/lgz0E=; b=bl/33T8/E78xMKR5ABtsrUHfabfy3idkdJwT+QMjLY5+WNbXZmrUTOYEFXsSAfCjmS I3smy0zcs+Nlww6Z5Jj69HYocw9q2EmpFulu08U5YqEQjoQ/l2CB7rdsjUxlFJL/tfoM c6GK0BgxwDdiSBzeDR3QNMoGuuOJztZK+8Jbl3MBoC23Is+Ge466ypnCGBJPaOMLYwzW NUG9dlRGW1kMa8BQjg0l82LR8OxSBzCo2daEyvTqAwv6+zQWH6Bx3/ftEUKSCDR+lyFZ gkjX4Rr+4Qwpjp04jr1TAYhrESG0jhxreuvCEkEm3vBXzyao9wLLMwAspBd6lwoiVtX1 6kqg== X-Gm-Message-State: AO0yUKXeWrZdpoKMFThONJtltPW2fOB9s3tk9UNFJUkTzc30vGLn+01q ymsIIlaD0Nwri84+9mWeMWEFJjxWSFs= X-Google-Smtp-Source: AK7set81fisCRhAnJShQi2JvB63/HK7s1nHWk7eqPOyy36NpZ9JX8ROpmIv++BdirghS0AAbsIP+tQ== X-Received: by 2002:a2e:8748:0:b0:29a:4a25:d961 with SMTP id q8-20020a2e8748000000b0029a4a25d961mr2429748ljj.45.1679183433259; Sat, 18 Mar 2023 16:50:33 -0700 (PDT) Received: from ip-10-70-112-12.vpc-1e810be1.internal (c2-178-216-98-9.elastic.cloud.croc.ru. [178.216.98.9]) by smtp.gmail.com with ESMTPSA id v6-20020a2e9f46000000b0029c13f4d519sm162007ljk.119.2023.03.18.16.50.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Mar 2023 16:50:32 -0700 (PDT) From: Vladislav Odintsov To: dev@openvswitch.org Date: Sun, 19 Mar 2023 02:50:25 +0300 Message-Id: <20230318235031.3793301-1-odivlad@gmail.com> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 Cc: Vladislav Odintsov Subject: [ovs-dev] [PATCH ovn 0/6] Inactivity probe configuration for ic, controller-vtep X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" This patch series adds support to configure inactivity probe for ovn-ic and ovn-controller-vtep. In first commit is just a preparation for adding support: the duplicated logic from ovn-controller and ovn-northd is moved to lib/ovn-util. Additionally methods to monitor OVSDB connection status were added to ovn-ic and ovn-controller-vtep. Vladislav Odintsov (6): controller,northd: move inactivity probe configuration to lib/ ic: add support to configure ovsdb inactivity probe controller-vtep: add support to configure inactivity probe interval controller-vtep: add unixctl commands to show DB connection status ovn-ic: add unixctl commands to report db connection status NEWS: add info about ic/controller-vtep inactivity probe support NEWS | 2 ++ controller-vtep/ovn-controller-vtep.8.xml | 14 +++++++++ controller-vtep/ovn-controller-vtep.c | 22 ++++++++++++++ controller/ovn-controller.c | 8 ++--- ic/ovn-ic.c | 37 +++++++++++++++++++++++ lib/ovn-util.c | 22 ++++++++++++++ lib/ovn-util.h | 4 +++ northd/ovn-northd.c | 30 +++--------------- ovn-ic-nb.xml | 14 +++++++++ ovn-nb.xml | 13 ++++++++ 10 files changed, 135 insertions(+), 31 deletions(-)