diff mbox

[ovs-dev,2/2] rhel-systemd: Document systemd behavior

Message ID ebd636851c3e6a84797fc1c6e928ba1c45e22c43.1486571267.git.echaudro@redhat.com
State Accepted
Delegated to: Russell Bryant
Headers show

Commit Message

Eelco Chaudron Feb. 8, 2017, 4:28 p.m. UTC
This is a follow up patch to document the systemd behavior including
the change introduced by the "rhel-systemd: Restart openvswitch
service if a daemon crashes", still under review.

Signed-off-by: Eelco Chaudron <echaudro@redhat.com>
---
 rhel/README.RHEL.rst | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

Comments

Flavio Leitner Feb. 20, 2017, 2:42 p.m. UTC | #1
On Wed, Feb 08, 2017 at 05:28:22PM +0100, Eelco Chaudron wrote:
> This is a follow up patch to document the systemd behavior including
> the change introduced by the "rhel-systemd: Restart openvswitch
> service if a daemon crashes", still under review.
> 
> Signed-off-by: Eelco Chaudron <echaudro@redhat.com>
> ---

Glad to see this being documented, Thanks Eelco.
Acked-by: Flavio Leitner <fbl@sysclose.org>

Russell, FYI this is the second patch documenting the change
of another patch as noted in the commit message. So, either
apply both or none :-).

Thanks
Flavio
Russell Bryant Feb. 27, 2017, 9:26 p.m. UTC | #2
On Mon, Feb 20, 2017 at 9:42 AM, Flavio Leitner <fbl@sysclose.org> wrote:

> On Wed, Feb 08, 2017 at 05:28:22PM +0100, Eelco Chaudron wrote:
> > This is a follow up patch to document the systemd behavior including
> > the change introduced by the "rhel-systemd: Restart openvswitch
> > service if a daemon crashes", still under review.
> >
> > Signed-off-by: Eelco Chaudron <echaudro@redhat.com>
> > ---
>
> Glad to see this being documented, Thanks Eelco.
> Acked-by: Flavio Leitner <fbl@sysclose.org>
>
> Russell, FYI this is the second patch documenting the change
> of another patch as noted in the commit message. So, either
> apply both or none :-).
>

Thanks!  I applied this to master and branch-2.7 with a minor change to the
heading to be a 2nd level heading like:

Red Hat systemd integration
---------------------------------------
diff mbox

Patch

diff --git a/rhel/README.RHEL.rst b/rhel/README.RHEL.rst
index afccf17..a299799 100644
--- a/rhel/README.RHEL.rst
+++ b/rhel/README.RHEL.rst
@@ -296,6 +296,39 @@  DPDK NIC port:
     OVS_OPTIONS="bond_mode=active-backup"
     HOTPLUG=no
 
+
+===========================
+Red Hat systemd integration
+===========================
+
+The RPM packages for Open vSwitch provide support for systemd integration. It's
+recommended to use the openvswitch.service to start and stop the Open vSwitch
+daemons. The below table shows systemd's behavior:
+
+=============================== ============== ============== ============== =============== ===============
+              -                 Process Status                systemctk <> status
+------------------------------- ----------------------------- ----------------------------------------------
+Action                          ovs-vswitch     ovsdb-server  openvswitch    ovs-vswitchd    ovsdb-server
+=============================== ============== ============== ============== =============== ===============
+systemctl start openvswitch*    started        started        active, exited active, running active, running
+crash of vswitchd               crash, started re-started     active, exited active, running active, running
+crash of ovsdb                  re-started     crash, started active, exited active, running active, running
+systemctl restart openvswitch   re-started     re-started     active, exited active, running active, running
+systemctl restart ovs-vswitchd  re-started     re-started     active, exited active, running active, running
+systemctl restart ovsdb-server  re-started     re-started     active, exited active, running active, running
+systemctl stop openvswitch      stopped        stopped        inactive, dead inactive, dead  inactive, dead
+systemctl stop ovs-vswitchd     stopped        stopped        inactive, dead inactive, dead  inactive, dead
+systemctl stop ovsdb-server     stopped        stopped        inactive, dead inactive, dead  inactive, dead
+systemctl start ovs-vswitchd*   started        started        inactive, dead active, running active, running
+systemctl start ovsdb-server*   not started    started        inactive, dead inactive, dead  active, running
+=============================== ============== ============== ============== =============== ===============
+
+
+\* These commands where executed when no Open vSwitch related processes where
+running. All other commands where executed when Open vSwitch was successfully
+running.
+
+
 Reporting Bugs
 --------------