[ovs-git] [openvswitch/ovs] ea36b0: rhel: Add support for "systemctl reload openvswitc...

GitHub noreply at github.com
Wed Nov 8 20:17:45 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: ea36b04688f37cf45b7c2304ce31f0d29f212d54
      https://github.com/openvswitch/ovs/commit/ea36b04688f37cf45b7c2304ce31f0d29f212d54
  Author: Timothy Redaelli <tredaelli at redhat.com>
  Date:   2017-11-08 (Wed, 08 Nov 2017)

  Changed paths:
    M rhel/automake.mk
    M rhel/openvswitch-fedora.spec.in
    M rhel/usr_lib_systemd_system_openvswitch.service
    M rhel/usr_lib_systemd_system_ovsdb-server.service
    A rhel/usr_share_openvswitch_scripts_ovs-systemd-reload

  Log Message:
  -----------
  rhel: Add support for "systemctl reload openvswitch"

The reload procedure will trigger a script that saves the flows and tlv
maps (using ovs-save) then it restarts ovsdb-server, it stops ovs-vswitchd,
it sets other_config:flow-restore-wait=true (to wait till flow restore is
finished), it starts ovs-vswitchd, it restore the backupped flows/tlv
maps and it removes other_config:flow-restore-wait=true (logic mostly ripped
from ovs-ctl).

It uses systemctl with --job-mode=ignore-dependencies to restart ovsdb-server
and stop and start ovs-vswitchd in order to avoid systemd to restart the other
components due to dependencies (as explained in rhel/README.RHEL.rst).

Signed-off-by: Timothy Redaelli <tredaelli at redhat.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>
Acked-by: Flavio Leitner <fbl at sysclose.org>




More information about the git mailing list