[ovs-git] [openvswitch/ovs] fd66db: rhel-systemd: Restart openvswitch service if a dae...
GitHub
noreply at github.com
Mon Feb 27 21:25:10 UTC 2017
Branch: refs/heads/branch-2.7
Home: https://github.com/openvswitch/ovs
Commit: fd66db94497a79649c14c65c5ebb12cbf9712276
https://github.com/openvswitch/ovs/commit/fd66db94497a79649c14c65c5ebb12cbf9712276
Author: Eelco Chaudron <echaudro at redhat.com>
Date: 2017-02-27 (Mon, 27 Feb 2017)
Changed paths:
M rhel/usr_lib_systemd_system_openvswitch.service
M rhel/usr_lib_systemd_system_ovs-vswitchd.service
M rhel/usr_lib_systemd_system_ovsdb-server.service
Log Message:
-----------
rhel-systemd: Restart openvswitch service if a daemon crashes
Currently if either ovsdb-server or ovs-vswitchd is crashing the
daemon is not restarting leaving the system in faulty state.
This patch will detect the daemon crash and will restart the
openvswitch service.
Here is a (bit to wide) table showing the behavior before and after
the patch. Note that only the Crash behavior has changed:
Before patch:
| Process Status | systemctl <> status |
| ovs-vswitchd | ovsdb-server | openvswitch | ovs-vswitchd | ovsdb-server |
+--------------+--------------+--------------+--------------+--------------+
systemctl start openvswitch* | started | started |active,exited |active,running|active,running|
Crash vswitchd | crashed | stopped |inactive, dead|failed |inactive,dead |
Crash ovsdb | stopped | crashed |inactive, dead|inactive,dead |failed |
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|
With patch:
| Process Status | systemctk <> status |
| ovs-vswitchd | ovsdb-server | openvswitch | ovs-vswitchd | ovsdb-server |
+--------------+--------------+--------------+--------------+--------------+
systemctl start openvswitch* | started | started |active,exited |active,running|active,running|
Crash vswitchd | crash,started| re-started |active,exited |active,running|active,running|
Crash 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 ovs related processes where
running. All other commands where executed when OVS was successfully
running.
Signed-off-by: Eelco Chaudron <echaudro at redhat.com>
Acked-by: Markos Chandras <mchandras at suse.de>
Acked-by: Aaron Conole <aconole at redhat.com>
Acked-by: Flavio Leitner <fbl at sysclose.org>
Signed-off-by: Russell Bryant <russell at ovn.org>
Commit: 3620f0c278c41219fe6dd1f1cab22d60f55950fa
https://github.com/openvswitch/ovs/commit/3620f0c278c41219fe6dd1f1cab22d60f55950fa
Author: Eelco Chaudron <echaudro at redhat.com>
Date: 2017-02-27 (Mon, 27 Feb 2017)
Changed paths:
M rhel/README.RHEL.rst
Log Message:
-----------
rhel-systemd: Document systemd behavior
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 at redhat.com>
Acked-by: Flavio Leitner <fbl at sysclose.org>
Signed-off-by: Russell Bryant <russell at ovn.org>
Compare: https://github.com/openvswitch/ovs/compare/fe332d744515...3620f0c278c4
More information about the git
mailing list