Ben Pfaff <b...@ovn.org> wrote on 10/04/2016 12:25:50 AM:
> From: Ben Pfaff <b...@ovn.org> > To: Hui Kang/Watson/IBM@IBMUS > Cc: dev@openvswitch.org, Hui Kang <hkang.sun...@gmail.com> > Date: 10/04/2016 12:26 AM > Subject: Re: [ovs-dev] [PATCH] Fix missing system-id in INSTALL.Docker > > On Mon, Oct 03, 2016 at 10:15:21PM -0400, Hui Kang wrote: > > > > > > Ben Pfaff <b...@ovn.org> wrote on 10/03/2016 09:23:29 PM: > > > > > From: Ben Pfaff <b...@ovn.org> > > > To: Hui Kang/Watson/IBM@IBMUS > > > Cc: Hui Kang <hkang.sun...@gmail.com>, dev@openvswitch.org > > > Date: 10/03/2016 09:23 PM > > > Subject: Re: [ovs-dev] [PATCH] Fix missing system-id in INSTALL.Docker > > > > > > On Mon, Oct 03, 2016 at 04:43:20PM -0400, Hui Kang wrote: > > > > > > > > > > > > "dev" <dev-boun...@openvswitch.org> wrote on 10/03/2016 03:57:21 PM: > > > > > > > > > From: Ben Pfaff <b...@ovn.org> > > > > > To: Hui Kang <hkang.sun...@gmail.com> > > > > > Cc: dev@openvswitch.org > > > > > Date: 10/03/2016 03:57 PM > > > > > Subject: Re: [ovs-dev] [PATCH] Fix missing system-id in > > INSTALL.Docker > > > > > Sent by: "dev" <dev-boun...@openvswitch.org> > > > > > > > > > > On Mon, Oct 03, 2016 at 03:30:51PM -0400, Hui Kang wrote: > > > > > > Signed-off-by: Hui Kang <ka...@us.ibm.com> > > > > > > --- > > > > > > INSTALL.Docker.md | 8 ++++++-- > > > > > > 1 file changed, 6 insertions(+), 2 deletions(-) > > > > > > > > > > > > diff --git a/INSTALL.Docker.md b/INSTALL.Docker.md > > > > > > index b62922d..5cb49d0 100644 > > > > > > --- a/INSTALL.Docker.md > > > > > > +++ b/INSTALL.Docker.md > > > > > > @@ -69,6 +69,8 @@ gets cleared. It is harmless to run it again > > inany > > > > case.) > > > > > > $LOCAL_IP in the below command is the IP address via which other > > hosts > > > > > > can reach this host. This acts as your local tunnel endpoint. > > > > > > > > > > > > +$SYSTEM_ID in the below command is the unique identifier for the > > > > > docker host. > > > > > > + > > > > > > $ENCAP_TYPE is the type of tunnel that you would like to use for > > > > overlay > > > > > > networking. The options are "geneve" or "stt". (Please note that > > > > your > > > > > > kernel should have support for your chosen $ENCAP_TYPE. Both > > geneve > > > > > > @@ -79,8 +81,10 @@ support in upstream Linux. You can verify > > > > > whether you have the support in your > > > > > > kernel by doing a "lsmod | grep $ENCAP_TYPE".) > > > > > > > > > > > > ``` > > > > > > -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" > > > > > > +ovs-vsctl set Open_vSwitch . external-ids:system-id=$SYSTEM_ID \ > > > > > > + 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" > > > > > > > > > > Usually the OVS system startup script should ensure that the system > > has > > > > > a system-id. You don't see that behavior in your environment? > > > > > > > > No. I followed the instruction in [1] and [2] to setup the OVN. Without > > > > system-id in the ovs-vsctl command, I saw the following message and > > > > "ovn-sbctl show" does not show any connected chassis. With the > > system-id > > > > in the command, "ovn-sbctl show" outputs correctly. > > > > > > > > 2016-10-03T19:10:56.892Z|00008|main|WARN|'system-id' in Open_vSwitch > > > > database is missing. > > > > 2016-10-03T19:11:11.902Z|00009|main|WARN|Dropped 6 log messages in last > > 15 > > > > seconds (most recently, 5 seconds ago) due to excessive rate > > > > 2016-10-03T19:11:11.902Z|00010|main|WARN|'system-id' in Open_vSwitch > > > > database is missing. > > > > 2016-10-03T19:11:26.912Z|00011|main|WARN|Dropped 6 log messages in last > > 15 > > > > seconds (most recently, 5 seconds ago) due to excessive rate > > > > 2016-10-03T19:11:26.912Z|00012|main|WARN|'system-id' in Open_vSwitch > > > > database is missing. > > > > 2016-10-03T19:11:41.927Z|00013|main|WARN|Dropped 5 log messages in last > > 15 > > > > seconds (most recently, 5 seconds ago) due to excessive rate > > > > > > It's probably best to fix the instructions so that they say how to set > > > up Open vSwitch itself (rather than OVN) to include a system-id. > > > > > > You said that the instructions are in "[1] and [2]" but I don't know > > > what those reference. > > > > My bad. They are > > > > [1] https://github.com/openvswitch/ovs/blob/master/INSTALL.md > > [2] https://github.com/openvswitch/ovs/blob/master/INSTALL.Docker.md > > > > There is no where in [1] or [2] mentioning system-id. Thanks. > > OK. It's IntegrationGuide.md that describes how to set up the > system-id. We should probably add something to INSTALL.md that > describes it (and that mentions that if ovs-ctl is used to start OVS, > then there's no need to manually set up a system-id). sounds good to me. I will send a v2. Thanks. - Hui > _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev