From patchwork Tue Oct 4 23:01:05 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Pfaff X-Patchwork-Id: 678263 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from archives.nicira.com (archives.nicira.com [96.126.127.54]) by ozlabs.org (Postfix) with ESMTP id 3spZCZ6q21z9sf9 for ; Wed, 5 Oct 2016 10:01:14 +1100 (AEDT) Received: from archives.nicira.com (localhost [127.0.0.1]) by archives.nicira.com (Postfix) with ESMTP id CFA4F105E6; Tue, 4 Oct 2016 16:01:13 -0700 (PDT) X-Original-To: dev@openvswitch.org Delivered-To: dev@openvswitch.org Received: from mx3v3.cudamail.com (mx3.cudamail.com [64.34.241.5]) by archives.nicira.com (Postfix) with ESMTPS id E5036105E0 for ; Tue, 4 Oct 2016 16:01:12 -0700 (PDT) Received: from bar6.cudamail.com (localhost [127.0.0.1]) by mx3v3.cudamail.com (Postfix) with ESMTPS id 5F4BE1618A6 for ; Tue, 4 Oct 2016 17:01:12 -0600 (MDT) X-ASG-Debug-ID: 1475622070-0b32375317478a0001-byXFYA Received: from mx3-pf1.cudamail.com ([192.168.14.2]) by bar6.cudamail.com with ESMTP id 6svZ40WZbJZT46F1 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 04 Oct 2016 17:01:11 -0600 (MDT) X-Barracuda-Envelope-From: blp@ovn.org X-Barracuda-RBL-Trusted-Forwarder: 192.168.14.2 Received: from unknown (HELO relay6-d.mail.gandi.net) (217.70.183.198) by mx3-pf1.cudamail.com with ESMTPS (DHE-RSA-AES256-SHA encrypted); 4 Oct 2016 23:01:10 -0000 Received-SPF: pass (mx3-pf1.cudamail.com: SPF record at ovn.org designates 217.70.183.198 as permitted sender) X-Barracuda-Apparent-Source-IP: 217.70.183.198 X-Barracuda-RBL-IP: 217.70.183.198 Received: from mfilter33-d.gandi.net (mfilter33-d.gandi.net [217.70.178.164]) by relay6-d.mail.gandi.net (Postfix) with ESMTP id D7AB8FB87D; Wed, 5 Oct 2016 01:01:08 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mfilter33-d.gandi.net Received: from relay6-d.mail.gandi.net ([IPv6:::ffff:217.70.183.198]) by mfilter33-d.gandi.net (mfilter33-d.gandi.net [::ffff:10.0.15.180]) (amavisd-new, port 10024) with ESMTP id J9tZXF4jrB4P; Wed, 5 Oct 2016 01:01:06 +0200 (CEST) X-Originating-IP: 173.228.112.90 Received: from sigabrt.gateway.sonic.net (173-228-112-90.dsl.dynamic.fusionbroadband.com [173.228.112.90]) (Authenticated sender: blp@ovn.org) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 92EF1FB8A1; Wed, 5 Oct 2016 01:01:05 +0200 (CEST) X-CudaMail-Envelope-Sender: blp@ovn.org From: Ben Pfaff To: dev@openvswitch.org X-CudaMail-Whitelist-To: dev@openvswitch.org X-CudaMail-MID: CM-V1-1003061531 X-CudaMail-DTE: 100416 X-CudaMail-Originating-IP: 217.70.183.198 Date: Tue, 4 Oct 2016 16:01:05 -0700 X-ASG-Orig-Subj: [##CM-V1-1003061531##][PATCH] INSTALL.Docker: Explain how to set up a system-id. Message-Id: <1475622065-4356-1-git-send-email-blp@ovn.org> X-Mailer: git-send-email 2.1.3 X-Barracuda-Connect: UNKNOWN[192.168.14.2] X-Barracuda-Start-Time: 1475622071 X-Barracuda-Encrypted: DHE-RSA-AES256-SHA X-Barracuda-URL: https://web.cudamail.com:443/cgi-mod/mark.cgi X-ASG-Whitelist: Header =?UTF-8?B?eFwtY3VkYW1haWxcLXdoaXRlbGlzdFwtdG8=?= X-Virus-Scanned: by bsmtpd at cudamail.com X-Barracuda-BRTS-Status: 1 Cc: Hui Kang , Ben Pfaff Subject: [ovs-dev] [PATCH] INSTALL.Docker: Explain how to set up a system-id. X-BeenThere: dev@openvswitch.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dev-bounces@openvswitch.org Sender: "dev" Reported-by: Hui Kang Signed-off-by: Ben Pfaff Acked-by: Gurucharan Shetty --- INSTALL.Docker.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/INSTALL.Docker.md b/INSTALL.Docker.md index b62922d..097452f 100644 --- a/INSTALL.Docker.md +++ b/INSTALL.Docker.md @@ -83,6 +83,19 @@ ovs-vsctl set Open_vSwitch . external_ids:ovn-remote="tcp:$CENTRAL_IP:6642" \ external_ids:ovn-nb="tcp:$CENTRAL_IP:6641" external_ids:ovn-encap-ip=$LOCAL_IP external_ids:ovn-encap-type="$ENCAP_TYPE" ``` +Each Open vSwitch instance in an OVN deployment needs a unique, persistent +identifier, called the "system-id". If you install OVS from distribution +packaging for Open vSwitch (e.g. .deb or .rpm packages), or if you use the +ovs-ctl utility included with Open vSwitch, it automatically configures a +system-id. If you start Open vSwitch manually, you should set one up yourself, +e.g.: + +``` +id_file=/etc/openvswitch/system-id.conf +test -e $id_file || uuidgen > $id_file +ovs-vsctl set Open_vSwitch . external_ids:system-id=$(cat $id_file) +``` + And finally, start the ovn-controller. (You need to run the below command on every boot)