From patchwork Thu Dec 15 17:02:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladislav Odintsov X-Patchwork-Id: 1716216 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=140.211.166.133; helo=smtp2.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=JNblY2Xt; dkim-atps=neutral Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (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 4NXz8S3v36z2403 for ; Fri, 16 Dec 2022 04:03:36 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id A2C7841058; Thu, 15 Dec 2022 17:03:34 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org A2C7841058 Authentication-Results: smtp2.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=JNblY2Xt X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id L29YB4fusDrZ; Thu, 15 Dec 2022 17:03:33 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [IPv6:2605:bc80:3010:104::8cd3:938]) by smtp2.osuosl.org (Postfix) with ESMTPS id E007B41004; Thu, 15 Dec 2022 17:03:31 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org E007B41004 Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 8FA83C007C; Thu, 15 Dec 2022 17:03:31 +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 17CE4C0035 for ; Thu, 15 Dec 2022 17:03:30 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 0E16361041 for ; Thu, 15 Dec 2022 17:02:50 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 0E16361041 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=JNblY2Xt 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 Wch2g76SwxGh for ; Thu, 15 Dec 2022 17:02:49 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 0625661055 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by smtp3.osuosl.org (Postfix) with ESMTPS id 0625661055 for ; Thu, 15 Dec 2022 17:02:49 +0000 (UTC) Received: by mail-wr1-x433.google.com with SMTP id h7so3765243wrs.6 for ; Thu, 15 Dec 2022 09:02:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Kr8G04SBRLBmLUm/7uQgLaHxKIN0jm/v5JE7a720Ra8=; b=JNblY2XteDJQxMWiSCAFViHJfJCTfn5Igm/TrhgFDiM8JxCEDnBXueGnTkybybFWAe wg5cu+RAtiupCGwIbszkKG5NXRUoNEi2Tb5n3goJtr3RwPh4QxA/XR+MWssn2ER7WHwB mKt+R9wkOmfNiysEFmz8/cTYNegL5h1s1FFC7vJD21I8vLzwWpb/aBpspl7ipLzh4ydk +6ScBkbM/arlPE4qHZKwoJMy8OFhINZhJEcTsEYuryKCCIFMeO57vUyC5NpzjocIB8qx 42KXIE2cU57bdOA1HLGy+6Gl15vvziaFUiTIPJJHMIYSI2wRriXzlZ6yW4ekX9wW2yyQ q86w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Kr8G04SBRLBmLUm/7uQgLaHxKIN0jm/v5JE7a720Ra8=; b=x0+wGeMAAUulR0kuAEUBUdgnLX367o1/sFGdrarD3SV8QE5ilQIKtwr6cs4WAE9cEP xMl7/0TlZOZHTfKbhjWTf3x7Ir0a5mYiAjkVLcdFt9PW2/Xtu9/Yemscvd5DMq00OOx8 Pu9SycIWx0QBtC9Qj1uurBTlnwaDr4Sqm/Yl+on/gWN4ad7XTe7qU5zOlsDRB31EqoaT hesgUug6cg5CN39A9VrvUMi3owKQGbjKng52AlbVMoYNDzF09nzvt3eE+V3ggPjJdqwk E7neayRn6jQyFgroUicBqsUxMaEYNpX3YEC8oea2xRu5FuvW5OUBYlFfpGbXNCv2mQuB Ol7g== X-Gm-Message-State: ANoB5pnv1Cjtvh8tb+kA8wdsHJ+I9EzqfWIRpfjC/B5dJApjA9chIPRo KfYb6pVl3przSLf6B77Ddi1CMCvxxoWwafXn X-Google-Smtp-Source: AA0mqf7fXaLoitV87vcGG7sVSahkrZz4LvLdKBwNKb31Wr8YJxJBKLMwuUiw7VxP9CuH9NuyFCYWng== X-Received: by 2002:a5d:6304:0:b0:242:736f:d3c5 with SMTP id i4-20020a5d6304000000b00242736fd3c5mr18280714wru.57.1671123768343; Thu, 15 Dec 2022 09:02:48 -0800 (PST) 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 q6-20020adff506000000b0022e57e66824sm7429148wro.99.2022.12.15.09.02.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Dec 2022 09:02:47 -0800 (PST) From: Vladislav Odintsov To: dev@openvswitch.org Date: Thu, 15 Dec 2022 20:02:19 +0300 Message-Id: <20221215170219.3072151-6-odivlad@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20221215170219.3072151-1-odivlad@gmail.com> References: <20221215170219.3072151-1-odivlad@gmail.com> MIME-Version: 1.0 Cc: Vladislav Odintsov Subject: [ovs-dev] [PATCH ovn v3 5/5] ic-sb schema: add index for routes table & document upgrade path 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" Add new uniq index to OVN IC Southbound Route table to prevent same routes installation. Also document ovn-ic upgrade details & note new schema change to known possible duplicate records, which can fail the schema convert. Signed-off-by: Vladislav Odintsov --- Documentation/intro/install/ovn-upgrades.rst | 20 ++++++++++++++++++++ NEWS | 4 ++++ ovn-ic-sb.ovsschema | 6 ++++-- 3 files changed, 28 insertions(+), 2 deletions(-) diff --git a/Documentation/intro/install/ovn-upgrades.rst b/Documentation/intro/install/ovn-upgrades.rst index 4c131987e..d0865ede8 100644 --- a/Documentation/intro/install/ovn-upgrades.rst +++ b/Documentation/intro/install/ovn-upgrades.rst @@ -75,6 +75,20 @@ or if you're using a Linux distribution with systemd:: $ sudo systemctl restart ovn-northd +In case your deployment utilizes OVN Interconnection (OVN IC) functionality, +it is also needed to restart ovn-ic daemons and separately restart ovn-ic +databases. + +You may perform this restart using the ovn-ctl script:: + + $ sudo /usr/share/openvswitch/scripts/ovn-ctl restart_ic + $ sudo /usr/share/openvswitch/scripts/ovn-ctl restart_ic_ovsdb + +or if you're using a Linux distribution with systemd:: + + $ sudo systemctl restart ovn-ic + $ sudo systemctl restart ovn-ic-db + Schema Change ^^^^^^^^^^^^^ @@ -102,6 +116,12 @@ of known impactible schema changes and how to fix when error encountered. $ ovn-sbctl chassis-del +#. Release 22.12: index [transit_switch, availability_zone, route_table, + ip_prefix, nexthop] added for OVN Interconnection Southbound DB table Route. + If there are duplicated records in this table, users are adviced to upgrade + ovn-ic daemons in all availability zones first and after that convert OVS + schema (restart ovn-ic database daemon). + Upgrading OVN Integration ------------------------- diff --git a/NEWS b/NEWS index d46f04943..9e5aae6ce 100644 --- a/NEWS +++ b/NEWS @@ -11,6 +11,10 @@ OVN v22.12.0 - xx xxx xxxx - Add support for component templates within logical flows and load balancers. - Add support for remote port mirroring (Experimental). + - Add new OVN IC Route table index. This index ensures no duplicate routes + can be advertized. When upgrading to this version user must ensure that + all ovn-ic daemons in all availability zones are upgraded before ovn-ic SB + database schema is converted. OVN v22.09.0 - 16 Sep 2022 -------------------------- diff --git a/ovn-ic-sb.ovsschema b/ovn-ic-sb.ovsschema index 72c9d3f3e..1d60b36d1 100644 --- a/ovn-ic-sb.ovsschema +++ b/ovn-ic-sb.ovsschema @@ -1,7 +1,7 @@ { "name": "OVN_IC_Southbound", - "version": "1.1.0", - "cksum": "2309827842 6784", + "version": "1.1.1", + "cksum": "3684563024 6914", "tables": { "IC_SB_Global": { "columns": { @@ -101,6 +101,8 @@ "external_ids": { "type": {"key": "string", "value": "string", "min": 0, "max": "unlimited"}}}, + "indexes": [["transit_switch", "availability_zone", "route_table", + "ip_prefix", "nexthop"]], "isRoot": true}, "Connection": { "columns": {