| Message ID | 20260922203106.2147404-5-twilson@redhat.com |
|---|---|
| State | New |
| Delegated to: | Ilya Maximets |
| Headers | show
Return-Path: <ovs-dev-bounces@openvswitch.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.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=aME6St4z; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=2605:bc80:3010::136; helo=smtp3.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=patchwork.ozlabs.org) Received: from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4hqBZl64mRz1y1m for <incoming@patchwork.ozlabs.org>; Wed, 23 Sep 2026 06:31:27 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 5FECB60814; Tue, 22 Sep 2026 20:31:25 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id 7YmPhwOtXGOx; Tue, 22 Sep 2026 20:31:24 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.0 smtp3.osuosl.org 3C66360803 Authentication-Results: smtp3.osuosl.org; arc=fail smtp.remote-ip="2605:bc80:3010:104::8cd3:938" ARC-Seal: i=2; d=osuosl.org; s=arc; a=rsa-sha256; cv=fail; t=1790109084; b=QlPNHnAjHBL/NWmvtWkjz3f0+FKwkG6/QFbTE+ITUcKhuaW1edoWwocd9c7SKCQ4zZ1a m1QOb0gGV2FeJMTArNW9Xks0g8DQTwZXX9IDwDpQ+uIhw+MxhOJAl9nMPgBPcU7alRh0X HUD7Xv5nZLoZeP4pcw/8c+rLku5+ZO0wbsZnXfVhgJC9aKCCx/h2KCPT2Sh9AUWXpZrlf meLzue+gx1CULOeWbCajzDRWAI6FjXXzDhsAViQbi8tK2EwEyyzbWlPD92j0Q9gFAAryE Z/rykThq6hInpXJSTWRbztI7GI5xj3eJuQT7HoVseDFZIy1mzc1kPg4q/qW8opbCACg== ARC-Message-Signature: i=2; d=osuosl.org; s=arc; a=rsa-sha256; c=relaxed/relaxed; t=1790109084; h=X-Comment:Received:X-Original-To:Delivered-To:Received:Received: X-Virus-Scanned:X-Spam-Flag:X-Spam-Score:X-Spam-Level:X-Spam-Status: Received:ARC-Filter:Received-SPF:Received:DKIM-Signature:Received: X-MC-Unique:X-Mimecast-MFC-AGG-ID:Received:Received:To:Date: Message-ID:In-Reply-To:References:MIME-Version:X-Scanned-By: X-Mimecast-Spam-Score:X-Mimecast-MFC-PROC-ID:X-Mimecast-Originator: Subject:X-BeenThere:X-Mailman-Version:Precedence:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:From: Reply-To:Content-Type:Content-Transfer-Encoding:Errors-To:Sender; bh=o5Oif9bc3ha/THhm0G34Q1OI9CyEEBj0Mzd2W+84Wyw=; b=ozP5Vpg/Zv1oLje77jo5ZqxRil5a2X3jbtTbXcI8fA6jgFq9QE7F6gkj8yZeaHtIYfxH ezVeSHMdytc+O7DFViaC31dMlZGg5F73VAbcy59pVoAXsbQaDi6JGsIfnRX3v93YVlRUV yEVctm9g0SfR38GPHr4/5C7KWHQ8TGrr1+xd814tnBxL/Sb57V8JXRXSk1rdTHaEf4u3P AQRjYqFuoaBPuzgi+M9vnPFmUfoejzhmiqU1HIUvY4z9zDwiaWoRSNCh2d0RXTgpPlqE6 IaWzcyD7L2fzN68k9sYAXWi6zetMB2Vq8iU4HHqXama6X68+18bJoaA7IajTgxhXMsA== ARC-Authentication-Results: i=2; smtp3.osuosl.org; dkim=fail reason="signature verification failed" header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=aME6St4z; arc=fail smtp.remote-ip="2605:bc80:3010:104::8cd3:938" X-Comment: SPF check N/A for local connections - client-ip=2605:bc80:3010:104::8cd3:938; helo=lists.linuxfoundation.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=<UNKNOWN> Authentication-Results: smtp3.osuosl.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=aME6St4z Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [IPv6:2605:bc80:3010:104::8cd3:938]) by smtp3.osuosl.org (Postfix) with ESMTPS id 3C66360803; Tue, 22 Sep 2026 20:31:24 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id C0B46C0907; Tue, 22 Sep 2026 20:31:23 +0000 (UTC) X-Original-To: ovs-dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by lists.linuxfoundation.org (Postfix) with ESMTP id 2D0F1C0905 for <ovs-dev@openvswitch.org>; Tue, 22 Sep 2026 20:31:21 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 11A7E401D0 for <ovs-dev@openvswitch.org>; Tue, 22 Sep 2026 20:31:21 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id aB3ZgXD-iAhI for <ovs-dev@openvswitch.org>; Tue, 22 Sep 2026 20:31:20 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.0 smtp2.osuosl.org 4D85C401E3 Authentication-Results: smtp2.osuosl.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; d=osuosl.org; s=arc; a=rsa-sha256; cv=none; t=1790109080; b=jGqgZXfaF1F3mtlJ3nC/1bvihb35uc8kjN490IsfeoAunyxSLovTaBwXBoCklbknjm/H rgj2T/UBmQJ5kkLDBVVrfILeBhpyz0NoHnGp7bbFimSwOeGZYmr8ov6hF69jnNlIABZeh aBpygulCofgHVd09cPgmq5OdugE/RhX10vr73TW8fKprrPwz6qZvapDETEF4OQALnbst4 ToBFwjC/8xjA4WgSElRGymhsPY18mVg1cQiPy3qQQHiPtKQTd150MHqKtCXpkDzr0rd8H uZMVLWf9NUVcskbqlrimOphOsSmRcOeVGzaz6oYZtrYXzSkQZgibeimHwtqKuNe/72A== ARC-Message-Signature: i=1; d=osuosl.org; s=arc; a=rsa-sha256; c=relaxed/relaxed; t=1790109080; h=Received-SPF:DKIM-Signature:Received:X-MC-Unique: X-Mimecast-MFC-AGG-ID:Received:Received:From:To:Cc:Subject:Date: Message-ID:In-Reply-To:References:MIME-Version:X-Scanned-By: X-Mimecast-Spam-Score:X-Mimecast-MFC-PROC-ID:X-Mimecast-Originator: Content-Transfer-Encoding:content-type; bh=qMLlMoBke2vWeZhCD12mkHVwnyDMUf4fJuaykgIRUN0=; b=FQKkUh2g6gs7QLsR7VMTETF6X/dzI+xSVtlrQ1fFUTUet+no+XpFAlcUaSREMZXSig5W txdhZlXII/RBNBd+ADPh+oZUfXeA7JakdMvhwW250vHbIWGjxvyTNnOEC7teloehmAxWl VYpbTJ6jopj8xChoEoSZFgtl03k8PzSDQq2tw79PLxAeDLhWdMkKeM/dO4gezs6+yM//j EOXaOv/Y+7i7Z7DjvJpTEb7MyqZe+HNJEpntJ4wL22JYZ8ssE+vJfXFdFi7HI+h/kX8Cc YeHqPRmDdqpi46VWMxVmwCb2bHacJEFR8+QKl6UokiYZBCzXPK7mQAauIBGc1fsBpnA== ARC-Authentication-Results: i=1; smtp2.osuosl.org; dmarc=pass header.from=redhat.com; dkim=pass header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=aME6St4z; arc=none smtp.remote-ip=170.10.133.124 Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=170.10.133.124; helo=us-smtp-delivery-124.mimecast.com; envelope-from=twilson@redhat.com; receiver=<UNKNOWN> Authentication-Results: smtp2.osuosl.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp2.osuosl.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=aME6St4z Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by smtp2.osuosl.org (Postfix) with ESMTP id 4D85C401E3 for <ovs-dev@openvswitch.org>; Tue, 22 Sep 2026 20:31:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1790109079; 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: in-reply-to:in-reply-to:references:references; bh=qMLlMoBke2vWeZhCD12mkHVwnyDMUf4fJuaykgIRUN0=; b=aME6St4zG+A2hLjJ10VJZkZ8pD732RwmLMvhUtguOEmuy5spopAhhZQrI9ceNr11OS7U4q KgX0EhVmtg1Jo6BNNqIY6Ay+lAHeAllvIiiygmnWRYjLWFn92hjAeDI8acZqVnpcvxooSb 2jbQRDjT4n8cpD0PSGoTNiPTU+9MJIs= Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-246-ZjFJbpqnNKqc_2NAGD80zQ-1; Tue, 22 Sep 2026 16:31:16 -0400 X-MC-Unique: ZjFJbpqnNKqc_2NAGD80zQ-1 X-Mimecast-MFC-AGG-ID: ZjFJbpqnNKqc_2NAGD80zQ_1790109075 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id C4F731944F02 for <ovs-dev@openvswitch.org>; Tue, 22 Sep 2026 20:31:15 +0000 (UTC) Received: from twilson-thinkpadp1gen3.rmtusmo.csb (headnet05.pony-001.prod.iad2.dc.redhat.com [10.2.32.117]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 309C71956095; Tue, 22 Sep 2026 20:31:15 +0000 (UTC) To: ovs-dev@openvswitch.org Date: Tue, 22 Sep 2026 15:31:03 -0500 Message-ID: <20260922203106.2147404-5-twilson@redhat.com> In-Reply-To: <20260922203106.2147404-1-twilson@redhat.com> References: <20260922203106.2147404-1-twilson@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: GSCs6GIlDGH_i8JHctW71-TIb3RI6kMeRR4v6ITCe-U_1790109075 X-Mimecast-Originator: redhat.com Subject: [ovs-dev] [PATCH v2 4/7] python: idl: Treat "unknown database" error as reason to reconnect. 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>, <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>, <mailto:ovs-dev-request@openvswitch.org?subject=subscribe> From: Terry Wilson via dev <ovs-dev@openvswitch.org> Reply-To: Terry Wilson <twilson@redhat.com> 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> |
| Series |
python: Backport C fixes that never made it.
|
expand
|
| Context | Check | Description |
|---|---|---|
| ovsrobot/apply-robot | success | apply and check: success |
| ovsrobot/github-robot-_Build_and_Test | success | github build: passed |
| ovsrobot/github-robot-_FreeBSD_Build_and_Test | success | github build: passed |
diff --git a/python/ovs/db/idl.py b/python/ovs/db/idl.py index 342fa487c..dafeaff26 100644 --- a/python/ovs/db/idl.py +++ b/python/ovs/db/idl.py @@ -2261,6 +2261,13 @@ class Transaction(object): if error is not None: if error == "timed out": soft_errors = True + elif error == "unknown database": + # ovsdb-server uses this error message to + # indicate that the database in question was + # removed, converted, etc. Flag the IDL as + # inconsistent so it reconnects and resyncs. + self.idl.flag_inconsistency() + soft_errors = True elif error == "not owner": lock_errors = True elif error == "aborted":
Ordinarily the IDL finds out in advance whether a particular database is on its server, or it finds out via notifications. But it's also a good idea to adopt a belt-and-suspenders approach so that, if the IDL does receive an "unknown database" error, we treat it as a "soft" error that can be fixed by reconnecting to another server, rather than a "hard" error that should cause an immediate abort. This is a Python port of C commit e83ea0d652f2 ("ovsdb-idl: Treat "unknown database" error as reason to reconnect."). It relies on Idl.flag_inconsistency() to force the reconnect and full re-download. Assisted-by: Claude Opus 4.8 Signed-off-by: Terry Wilson <twilson@redhat.com> --- python/ovs/db/idl.py | 7 +++++++ 1 file changed, 7 insertions(+)