From patchwork Tue Apr 20 10:32:21 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dumitru Ceara X-Patchwork-Id: 1468279 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::133; helo=smtp2.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=iMMNi+kZ; dkim-atps=neutral Received: from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133]) (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 4FPg491bmlz9vFD for ; Tue, 20 Apr 2021 20:32:40 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 9B7AF402FE; Tue, 20 Apr 2021 10:32:38 +0000 (UTC) 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 p452nLNjQMXg; Tue, 20 Apr 2021 10:32:37 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp2.osuosl.org (Postfix) with ESMTP id E328A402DA; Tue, 20 Apr 2021 10:32:36 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id A452DC000F; Tue, 20 Apr 2021 10:32:36 +0000 (UTC) X-Original-To: ovs-dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) by lists.linuxfoundation.org (Postfix) with ESMTP id 067D4C000B for ; Tue, 20 Apr 2021 10:32:35 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id DCD5B83AB4 for ; Tue, 20 Apr 2021 10:32:34 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp1.osuosl.org (amavisd-new); dkim=pass (1024-bit key) header.d=redhat.com Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id g6C-xrBquAw2 for ; Tue, 20 Apr 2021 10:32:33 +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 [216.205.24.124]) by smtp1.osuosl.org (Postfix) with ESMTPS id C0D838344C for ; Tue, 20 Apr 2021 10:32:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1618914752; 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=49G7v5c6mltPIh1jLWIa8JujgQR5zLnTGfxMMrTwa/E=; b=iMMNi+kZSkjqVvg4tVWzzUobaeswm/x3HjZNAWU18EZ3pSRKSaQzz7QmZ4mCKbufujcSJs ches0keabZ6xq+0e7oAAs4Il7ahsh6kEVUGsFNutnU2gOPyZUQXSIq+kQdSHHOtq/7RX1M 6VAJQHKZtShVQOj114spqOg57LK7e8A= 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-167-95E3rgyQPcev8B2XJXFmRA-1; Tue, 20 Apr 2021 06:32:29 -0400 X-MC-Unique: 95E3rgyQPcev8B2XJXFmRA-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 8BE1E8030CA; Tue, 20 Apr 2021 10:32:28 +0000 (UTC) Received: from dceara.remote.csb (ovpn-113-87.ams2.redhat.com [10.36.113.87]) by smtp.corp.redhat.com (Postfix) with ESMTP id AA83519D80; Tue, 20 Apr 2021 10:32:27 +0000 (UTC) From: Dumitru Ceara To: ovs-dev@openvswitch.org Date: Tue, 20 Apr 2021 12:32:21 +0200 Message-Id: <20210420103221.1123-1-dceara@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 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 Subject: [ovs-dev] [PATCH ovn] ovn-controller-vtep: Set chassis_name for newly created Encap. 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" Without this ovn-controller-vtep fails to register new chassis when RBAC is enabled. Reported-at: https://mail.openvswitch.org/pipermail/ovs-dev/2021-April/382207.html Reported-by: Odintsov Vladislav Fixes: d06760b64276 ("ovn: Restrict encap modification to its creating chassis") Signed-off-by: Dumitru Ceara Acked-by: Mark Michelson Tested-by: Vladislav Odintsov --- controller-vtep/gateway.c | 1 + 1 file changed, 1 insertion(+) diff --git a/controller-vtep/gateway.c b/controller-vtep/gateway.c index 636dab365..e9419138b 100644 --- a/controller-vtep/gateway.c +++ b/controller-vtep/gateway.c @@ -59,6 +59,7 @@ create_chassis_rec(struct ovsdb_idl_txn *txn, const char *name, sbrec_encap_set_ip(encap_rec, encap_ip); const struct smap options = SMAP_CONST1(&options, "csum", "false"); sbrec_encap_set_options(encap_rec, &options); + sbrec_encap_set_chassis_name(encap_rec, name); sbrec_chassis_set_encaps(chassis_rec, &encap_rec, 1); return chassis_rec;