From patchwork Thu Mar 9 11:39:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Wojciechowicz X-Patchwork-Id: 736965 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 3vf7hm03Ycz9s7R for ; Thu, 9 Mar 2017 22:39:20 +1100 (AEDT) Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id D41D0941; Thu, 9 Mar 2017 11:39:15 +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 DC55D412 for ; Thu, 9 Mar 2017 11:39:14 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 59744127 for ; Thu, 9 Mar 2017 11:39:14 +0000 (UTC) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga105.fm.intel.com with ESMTP; 09 Mar 2017 03:39:13 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos; i="5.36,268,1486454400"; d="scan'208"; a="1106582975" Received: from irsmsx153.ger.corp.intel.com ([163.33.192.75]) by orsmga001.jf.intel.com with ESMTP; 09 Mar 2017 03:39:13 -0800 Received: from localhost (163.33.239.181) by IRSMSX153.ger.corp.intel.com (163.33.192.75) with Microsoft SMTP Server id 14.3.248.2; Thu, 9 Mar 2017 11:39:12 +0000 Date: Thu, 9 Mar 2017 06:39:11 -0500 From: Robert Wojciechowicz To: Ben Pfaff Message-ID: <20170309113911.GA8570@debian> References: <1> <1488465619-19890-1-git-send-email-robertx.wojciechowicz@intel.com> <20170309053122.GX29912@ovn.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20170309053122.GX29912@ovn.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-Originating-IP: [163.33.239.181] X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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 Cc: dev@openvswitch.org Subject: Re: [ovs-dev] [PATCH] ovsdb: Expose openvswitch run directory through ovsdb 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 On Wed, Mar 08, 2017 at 09:31:22PM -0800, Ben Pfaff wrote: > On Thu, Mar 02, 2017 at 02:40:19PM +0000, Robert Wojciechowicz wrote: > > When using vhost-user client or server mode with openstack, > > neutron needs to be able to construct the fully qualified socket path > > and pass it to nova. > > While the relative vhost-user socket directory is exposed via > > the `Open_vSwitch` table (other_config:vhost-sock-dir), > > the openvswith run directory is not. > > As the full socket path is the combination of the openvswitch run > > directory + relative vhost-user socket dir + interface name without > > exposing the run directory the full path cannot be calculated. > > Since `external_ids` column is meant for storing > > key-value pairs for use by external frameworks that integrate > > with Open vSwitch it is a perfect place for exposing OVS > > run directory. > > So this patch adds to the `Open_vSwitch` table `external_ids` column > > this key: > > 1. ovs-run-dir - OVS run directory > > > > Signed-off-by: Robert Wojciechowicz > > Acked-by: Sean K Mooney > > Please add documentation for this in the Open_vSwitch table in > vswitch.xml. Maybe something like that: Should I resend the complete patch again? Br, Robert diff --git a/vswitchd/vswitch.xml b/vswitchd/vswitch.xml index 782417f..43a94e4 100644 --- a/vswitchd/vswitch.xml +++ b/vswitchd/vswitch.xml @@ -77,6 +77,10 @@ qualified domain name since version 2.6.2. + + The run directory of the running Open vSwitch daemon. + +