From patchwork Fri Jul 14 02:23:13 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: wang qianyu X-Patchwork-Id: 788047 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail.linuxfoundation.org (mail.linuxfoundation.org [140.211.169.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3x7xLw5Mf5z9s75 for ; Fri, 14 Jul 2017 12:23:36 +1000 (AEST) Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id BD8E7B75; Fri, 14 Jul 2017 02:23:33 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@mail.linuxfoundation.org Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id 90F0EB5D for ; Fri, 14 Jul 2017 02:23:31 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from out1.zte.com.cn (out1.zte.com.cn [202.103.147.172]) by smtp1.linuxfoundation.org (Postfix) with ESMTP id DAD491DB for ; Fri, 14 Jul 2017 02:23:28 +0000 (UTC) X-scanvirus: By SEG_CYREN AntiVirus Engine X-scanresult: CLEAN X-MAILFROM: X-RCPTTO: X-FROMIP: 10.30.3.20 X-SEG-Scaned: 1 X-Received: unknown,10.30.3.20,20170714102302 Received: from unknown (HELO mse01.zte.com.cn) (10.30.3.20) by localhost with (AES256-SHA encrypted) SMTP; 14 Jul 2017 02:23:02 -0000 Received: from notes_smtp.zte.com.cn ([10.30.1.239]) by mse01.zte.com.cn with ESMTP id v6E2Mqax044787; Fri, 14 Jul 2017 10:22:52 +0800 (GMT-8) (envelope-from wang.qianyu@zte.com.cn) To: dev@openvswitch.org MIME-Version: 1.0 X-KeepSent: F8358356:F4493828-4825815D:00057B5B; type=4; name=$KeepSent X-Mailer: Lotus Notes Release 8.5.3 September 15, 2011 Message-ID: From: wang.qianyu@zte.com.cn Date: Fri, 14 Jul 2017 10:23:13 +0800 X-MIMETrack: Serialize by Router on notes_smtp/zte_ltd(Release 8.5.3FP6|November 21, 2013) at 2017-07-14 10:22:36, Serialize complete at 2017-07-14 10:22:36 X-MAIL: mse01.zte.com.cn v6E2Mqax044787 X-HQIP: 127.0.0.1 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,HTML_MESSAGE, RP_MATCHES_RCVD autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp1.linux-foundation.org X-Content-Filtered-By: Mailman/MimeDel 2.1.12 Cc: zhou.huijing@zte.com.cn, xu.rong@zte.com.cn Subject: [ovs-dev] [PATCH 2/2] ovn-controller: fix vlan_trunk bug X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: ovs-dev-bounces@openvswitch.org Errors-To: ovs-dev-bounces@openvswitch.org The bug description is as follow: Neutron configure a trunk-sub port. The parent-port and sub-port located in different network. there is a vm attached to parent port. And no vm attached to the network of sub-port in the same chassis. In this situation, the ovn-controller can not get the configuration info of sub-port. The reason is that ovn-controller does not monitor the port-binding with parent. This patch fix this bug. Change-Id: I0ce3f5b1b5a9e81608ecc587a796998520a8da47 Signed-off-by: wangqianyu --- ovn/controller/ovn-controller.c | 1 + 1 file changed, 1 insertion(+) } if (local_datapaths) { diff --git a/ovn/controller/ovn-controller.c b/ovn/controller/ovn-controller.c index 45a670b..41eedbc 100644 --- a/ovn/controller/ovn-controller.c +++ b/ovn/controller/ovn-controller.c @@ -174,6 +174,7 @@ update_sb_monitors(struct ovsdb_idl *ovnsb_idl, const char *name; SSET_FOR_EACH (name, local_ifaces) { sbrec_port_binding_add_clause_logical_port(&pb, OVSDB_F_EQ, name); + sbrec_port_binding_add_clause_parent_port(&pb, OVSDB_F_EQ, name); }