[ovs-git] [ovn-org/ovn] 8540c5: rhel, utils: don't affect traffic on controller up...

Vladislav Odintsov noreply at github.com
Fri Sep 17 20:01:03 UTC 2021


  Branch: refs/heads/master
  Home:   https://github.com/ovn-org/ovn
  Commit: 8540c544f0e67d3dc475bbeb350ea3053a1772dd
      https://github.com/ovn-org/ovn/commit/8540c544f0e67d3dc475bbeb350ea3053a1772dd
  Author: Vladislav Odintsov <odivlad at gmail.com>
  Date:   2021-09-17 (Fri, 17 Sep 2021)

  Changed paths:
    M rhel/ovn-fedora.spec.in
    M utilities/ovn-ctl

  Log Message:
  -----------
  rhel, utils: don't affect traffic on controller upgrade

Currently upgrade of ovn-host rpm package affects active
traffic. This is because systemctl try-restart
ovn-controller is invoked during rpm package upgrade.
It calls ovn-ctl stop_controller and then start_controller.

Adding ovn-ctl stop_controller --restart to %postun
upgrade case right before systemctl try-restart. Also,
upgrade ovn-ctl script to support --restart argument in it.

Ideally this should be done by systemd when restart is
called, but it's impossible to pass restart command to
systemd.

Signed-off-by: Vladislav Odintsov <odivlad at gmail.com>
Signed-off-by: Numan Siddique <numans at ovn.org>




More information about the git mailing list