[ovs-dev,2/2,ovn] Support starting containers with unix socket
diff mbox series

Message ID 20190912000634.64928-2-amginwal@gmail.com
State New
Headers show
Series
  • [ovs-dev,1/2,ovn] OVN: Fix container build.
Related show

Commit Message

aginwala aginwala Sept. 12, 2019, 12:06 a.m. UTC
From: Aliasgar Ginwala <aginwala@ebay.com>

---
 Documentation/intro/install/general.rst | 14 ++++++++++++++
 utilities/docker/start-ovn              |  9 +++++++++
 2 files changed, 23 insertions(+)

Comments

0-day Robot Sept. 12, 2019, 1:01 a.m. UTC | #1
Bleep bloop.  Greetings aginwala aginwala, I am a robot and I have tried out your patch.
Thanks for your contribution.

I encountered some error that I wasn't expecting.  See the details below.


checkpatch:
ERROR: Author Aliasgar Ginwala <aginwala@ebay.com> needs to sign off.
Lines checked: 58, Warnings: 0, Errors: 1


Please check this out.  If you feel there has been an error, please email aconole@redhat.com

Thanks,
0-day Robot
aginwala Sept. 12, 2019, 1:28 a.m. UTC | #2
Signed-off-by: Aliasgar Ginwala <aginwala@ebay.com>

On Wed, Sep 11, 2019 at 6:04 PM 0-day Robot <robot@bytheb.org> wrote:

> Bleep bloop.  Greetings aginwala aginwala, I am a robot and I have tried
> out your patch.
> Thanks for your contribution.
>
> I encountered some error that I wasn't expecting.  See the details below.
>
>
> checkpatch:
> ERROR: Author Aliasgar Ginwala <aginwala@ebay.com> needs to sign off.
> Lines checked: 58, Warnings: 0, Errors: 1
>
>
> Please check this out.  If you feel there has been an error, please email
> aconole@redhat.com
>
> Thanks,
> 0-day Robot
> _______________________________________________
> dev mailing list
> dev@openvswitch.org
> https://mail.openvswitch.org/mailman/listinfo/ovs-dev
>

Patch
diff mbox series

diff --git a/Documentation/intro/install/general.rst b/Documentation/intro/install/general.rst
index 4936540fb..bbf05723b 100644
--- a/Documentation/intro/install/general.rst
+++ b/Documentation/intro/install/general.rst
@@ -449,6 +449,20 @@  Start OVN containers using below command::
     $ docker run -itd --net=host --name=ovn-northd \
       <docker_repo>:<tag> ovn-northd-tcp
 
+Start OVN containers using unix socket::
+
+    $ docker run -itd --net=host --name=ovn-nb \
+      -v /var/run/ovn/:/var/run/ovn/ \
+      <docker_repo>:<tag> ovn-nb
+
+    $ docker run -itd --net=host --name=ovn-sb \
+      -v /var/run/ovn/:/var/run/ovn/
+      <docker_repo>:<tag> ovn-sb
+
+    $ docker run -itd --net=host --name=ovn-northd \
+      -v /var/run/ovn/:/var/run/ovn/
+      <docker_repo>:<tag> ovn-northd
+
 .. note::
     Current ovn central components comes up in docker image in a standalone
     mode with protocol tcp.
diff --git a/utilities/docker/start-ovn b/utilities/docker/start-ovn
index 7457836fe..fbdd2af91 100755
--- a/utilities/docker/start-ovn
+++ b/utilities/docker/start-ovn
@@ -13,6 +13,15 @@ 
 # limitations under the License.
 
 case $1 in
+        "ovn-nb") /usr/share/ovn/scripts/ovn-ctl run_nb_ovsdb
+        ;;
+        "ovn-sb") /usr/share/ovn/scripts/ovn-ctl run_sb_ovsdb
+        ;;
+        "ovn-northd") ovn-northd --pidfile \
+                      --ovnnb-db="unix:/var/run/ovn/ovnnb_db.sock" \
+                      --ovnsb-db="unix:/var/run/ovn/ovnsb_db.sock" \
+                      --log-file=/var/log/ovn/ovn-northd.log
+        ;;
         "ovn-nb-tcp") source /etc/ovn/ovn_default_nb_port
                       /usr/share/ovn/scripts/ovn-ctl start_ovsdb
                       ovn-nbctl set-connection ptcp:$nb_db_port