Message ID | 1475622065-4356-1-git-send-email-blp@ovn.org |
---|---|
State | Accepted |
Headers | show |
On 4 October 2016 at 16:01, Ben Pfaff <blp@ovn.org> wrote: > Reported-by: Hui Kang <hkang.sunysb@gmail.com> > Signed-off-by: Ben Pfaff <blp@ovn.org> > Acked-by: Gurucharan Shetty <guru@ovn.org> > --- > 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) > > -- > 2.1.3 > > _______________________________________________ > dev mailing list > dev@openvswitch.org > http://openvswitch.org/mailman/listinfo/dev >
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)
Reported-by: Hui Kang <hkang.sunysb@gmail.com> Signed-off-by: Ben Pfaff <blp@ovn.org> --- INSTALL.Docker.md | 13 +++++++++++++ 1 file changed, 13 insertions(+)