From patchwork Fri Apr 2 15:46:18 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dumitru Ceara X-Patchwork-Id: 1461775 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: 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: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=cstvVN2V; 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 RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FBkx652bQz9sRK for ; Sat, 3 Apr 2021 02:48:40 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 450DD40F84; Fri, 2 Apr 2021 15:48:33 +0000 (UTC) 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 0Id1W5s9TyLp; Fri, 2 Apr 2021 15:48:32 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [IPv6:2605:bc80:3010:104::8cd3:938]) by smtp4.osuosl.org (Postfix) with ESMTP id 349DE403D5; Fri, 2 Apr 2021 15:48:31 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 0E7E2C000C; Fri, 2 Apr 2021 15:48:31 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [IPv6:2605:bc80:3010::137]) by lists.linuxfoundation.org (Postfix) with ESMTP id 05369C000A for ; Fri, 2 Apr 2021 15:48:30 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 0049A403D5 for ; Fri, 2 Apr 2021 15:48:30 +0000 (UTC) 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 5XtlvKTYW6BX for ; Fri, 2 Apr 2021 15:48:28 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by smtp4.osuosl.org (Postfix) with ESMTPS id 9EF3240F0D for ; Fri, 2 Apr 2021 15:48:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1617378507; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=gna04u2XgHg8FILnuB4hrHFYTyrQMqUQP9J9EIoI2bY=; b=cstvVN2V4j/hNLlzwuWo20cJsa30WmZn6Nfos4lonuHs8QqaMtbreXn8hkYtVBMhfaggMk 4Emp8ddlbhy1qXrIHN/M93gsny7megbxLp/tl4DdTRx+OARHkA/j6VhdWDgU7qQrMDeKHa MbkAU/PIP5N9p//wvYDuDUkAkK5eWcU= 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-544-sCelT7ZaP_GHt3c5zSrgzA-1; Fri, 02 Apr 2021 11:48:25 -0400 X-MC-Unique: sCelT7ZaP_GHt3c5zSrgzA-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 21EB1180FCA2; Fri, 2 Apr 2021 15:48:24 +0000 (UTC) Received: from dceara.remote.csb (ovpn-112-193.ams2.redhat.com [10.36.112.193]) by smtp.corp.redhat.com (Postfix) with ESMTP id 409FA5D9DC; Fri, 2 Apr 2021 15:48:22 +0000 (UTC) From: Dumitru Ceara To: dev@openvswitch.org Date: Fri, 2 Apr 2021 17:46:18 +0200 Message-Id: <20210402154605.7879.66878.stgit@dceara.remote.csb> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=dceara@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Cc: i.maximets@ovn.org, dceara@redhat.com Subject: [ovs-dev] [PATCH branch-2.13 0/4] ovsdb-idl: Preserve references for tracked deleted rows. 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 backports the IDL change tracking fixes recently accepted on master branch. The first patch is a backport of Ben's commit that introduces print_and_log() in test-ovsdb.c. Cherry picking this commit avoids quite a lot of the conflicts when backporting the rest of the fixes and should be harmless because it only touches test code. Ben Pfaff (1): test-ovsdb: Log steps in idl test. Dumitru Ceara (3): ovsdb-idl.at: Make test outputs more predictable. ovsdb-idl: Preserve references for deleted rows. ovsdb-idl: Mark arc sources as updated when destination is deleted. lib/ovsdb-idl.c | 135 +++++++-- lib/ovsdb-idl.h | 2 tests/ovsdb-cluster.at | 2 tests/ovsdb-idl.at | 747 ++++++++++++++++++++++++++++++++---------------- tests/test-ovsdb.c | 442 +++++++++++++++++----------- tests/test-ovsdb.py | 119 +++++--- 6 files changed, 962 insertions(+), 485 deletions(-)