From patchwork Thu Apr 4 17:13:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ihar Hrachyshka X-Patchwork-Id: 1919895 Return-Path: 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=WAQmHJN3; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=2605:bc80:3010::138; helo=smtp1.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=patchwork.ozlabs.org) Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) (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 4V9Sr01MHjz1yYn for ; Fri, 5 Apr 2024 04:13:19 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id B043F83750; Thu, 4 Apr 2024 17:13:13 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id xaYz8_e5mBh9; Thu, 4 Apr 2024 17:13:12 +0000 (UTC) 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= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 9C4BB83696 Authentication-Results: smtp1.osuosl.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=WAQmHJN3 Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [IPv6:2605:bc80:3010:104::8cd3:938]) by smtp1.osuosl.org (Postfix) with ESMTPS id 9C4BB83696; Thu, 4 Apr 2024 17:13:12 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 6E8D6C0077; Thu, 4 Apr 2024 17:13:12 +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 10373C0037 for ; Thu, 4 Apr 2024 17:13:11 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id DB24261057 for ; Thu, 4 Apr 2024 17:13:10 +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 tqRC-0bsjv_U for ; Thu, 4 Apr 2024 17:13:10 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=170.10.129.124; helo=us-smtp-delivery-124.mimecast.com; envelope-from=ihrachys@redhat.com; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp3.osuosl.org 1F7DB6104F Authentication-Results: smtp3.osuosl.org; dmarc=pass (p=none dis=none) header.from=redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 1F7DB6104F Authentication-Results: smtp3.osuosl.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=WAQmHJN3 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by smtp3.osuosl.org (Postfix) with ESMTPS id 1F7DB6104F for ; Thu, 4 Apr 2024 17:13:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1712250788; 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=SGTompQHkhIx08mFYoNbdTL9E8ctehpzZ7EFU5UbDcQ=; b=WAQmHJN3y4MKVIy8YJRMfAI2XBzGzEZWUVr/IwADhl3cT6w4f7zZAvskzODgPCOf5aVy8T Qyka6m7FYyDSAiezwBiobjY+U79d95mL7ACrAugzMMY5pgSB5K7A/BH0ZOntZ2XMLr3ZDD ijJwMnU6kQqDD42PYSz5xTVD77MKPXk= Received: from mail-qt1-f199.google.com (mail-qt1-f199.google.com [209.85.160.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-477-zDfhaKpsPwqEj33WqE2DmA-1; Thu, 04 Apr 2024 13:13:07 -0400 X-MC-Unique: zDfhaKpsPwqEj33WqE2DmA-1 Received: by mail-qt1-f199.google.com with SMTP id d75a77b69052e-42f521e0680so12036161cf.1 for ; Thu, 04 Apr 2024 10:13:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712250786; x=1712855586; 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=SGTompQHkhIx08mFYoNbdTL9E8ctehpzZ7EFU5UbDcQ=; b=ceQVUcXzjOI+2pmhHnScCw8QzD9kNzuxyQHjMmyAGis8OWb+v6QgFA0Hj4CEowv9wu xtb7/mjG+CyAp6w3la9VnaDTg+ZU7BdNPFUYgmv3qi03OooAfqDFhtn9wCTFwrsTKbWO HFGJe15G+xmYs6e20xFx6iEgqCweJVnomEw1dUYYGxSkk1DEyyx9zQ7ezzYf0cgDILzV FvNxpc8WU2QC4tETW9sclcUyA8d2rHp0nkZUtZABf4g2RuESdj5IOj9fYFSHYleUlxwI 1QDggPwTTGm4mvy+xgkqxu/St8vlFCvjxj/uxJOSEynNeiTyvj0L4JLXUS4bkx949cFo eKvA== X-Gm-Message-State: AOJu0YwMaEru7bLm+olWEkETZnJ8BBJ7rdeR5MaiqOOw+IepGuM/qSgM cJzFG4giNA1m7nHPlYI7Y5P02j+jdXKZg3WZA777uMWPRYaNU/d34ZzD9d6CEIQSNCGFdEHQO/H kXRiHGNcq+Rv2JVC7jEWtrC9sYT76kpH5ncAfCsa+bAt1jt5NSjY4ZcUXpz6EJaodJMSlizsxRB p32+zwE4TKkktBv5b2us9V03EvG4F65d2FXg== X-Received: by 2002:a05:622a:1314:b0:432:ec21:ad4 with SMTP id v20-20020a05622a131400b00432ec210ad4mr326435qtk.27.1712250786347; Thu, 04 Apr 2024 10:13:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFQc8wg9EXXe1G74fw+aDCnqmqhulOsfM8p0Hxgx82IsZIyTv5zNSd0zMefpCZurzIgtC62Rw== X-Received: by 2002:a05:622a:1314:b0:432:ec21:ad4 with SMTP id v20-20020a05622a131400b00432ec210ad4mr326415qtk.27.1712250786012; Thu, 04 Apr 2024 10:13:06 -0700 (PDT) Received: from fedora38.localdomain.com (172-073-180-250.res.spectrum.com. [172.73.180.250]) by smtp.gmail.com with ESMTPSA id fc20-20020a05622a489400b00430c76f0c86sm7832732qtb.80.2024.04.04.10.13.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 10:13:05 -0700 (PDT) From: Ihar Hrachyshka To: dev@openvswitch.org Date: Thu, 4 Apr 2024 17:13:02 +0000 Message-ID: <20240404171302.54562-1-ihrachys@redhat.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Subject: [ovs-dev] [PATCH] Make tunnel ids exhaustion test case trigger the problem. 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" The original version of the scenario passed with or without the fix. Fixes: a1f165a7b807 ("northd: fix infinite loop in ovn_allocate_tnlid()") Signed-off-by: Ihar Hrachyshka --- tests/ovn-northd.at | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/tests/ovn-northd.at b/tests/ovn-northd.at index fc2c972a4..e8ea8b050 100644 --- a/tests/ovn-northd.at +++ b/tests/ovn-northd.at @@ -2826,11 +2826,6 @@ OVN_FOR_EACH_NORTHD_NO_HV([ AT_SETUP([check tunnel ids exhaustion]) ovn_start -# Create a fake chassis with vxlan encap to lower MAX DP tunnel key to 2^12 -ovn-sbctl \ - --id=@e create encap chassis_name=hv1 ip="192.168.0.1" type="vxlan" \ - -- --id=@c create chassis name=hv1 encaps=@e - cmd="ovn-nbctl --wait=sb" for i in {1..4097}; do @@ -2840,7 +2835,17 @@ done eval $cmd check_row_count nb:Logical_Switch 4097 -wait_row_count sb:Datapath_Binding 4095 +wait_row_count sb:Datapath_Binding 4097 + +# Now create a fake chassis with vxlan encap to lower MAX DP tunnel key to 2^12 +ovn-sbctl \ + --id=@e create encap chassis_name=hv1 ip="192.168.0.1" type="vxlan" \ + -- --id=@c create chassis name=hv1 encaps=@e + +ovn-nbctl --wait=sb ls-add lsw-exhausted + +check_row_count nb:Logical_Switch 4098 +wait_row_count sb:Datapath_Binding 4097 OVS_WAIT_UNTIL([grep "all datapath tunnel ids exhausted" northd/ovn-northd.log])