[ovs-git] [openvswitch/ovs] 0a286d: ovs-ctl.in: Call 'hostname -f' after vswitchd star...

GitHub noreply at github.com
Sat Oct 7 02:40:22 UTC 2017


  Branch: refs/heads/branch-2.6
  Home:   https://github.com/openvswitch/ovs
  Commit: 0a286dafa270be4cad1849044ee75fca37b26c17
      https://github.com/openvswitch/ovs/commit/0a286dafa270be4cad1849044ee75fca37b26c17
  Author: Gurucharan Shetty <guru at ovn.org>
  Date:   2017-10-06 (Fri, 06 Oct 2017)

  Changed paths:
    M utilities/ovs-ctl.in

  Log Message:
  -----------
  ovs-ctl.in: Call 'hostname -f' after vswitchd starts.

Currently we call 'hostname -f' when ovs-vswitchd is not
running. If you are using ovs-vswitchd to provide your
primary networking, then 'hostname -f' will "hang" till it
times out. On the system this issue was discovered, this was
as long as 40 seconds. This is a problem during OVS restarts
or upgrades.

This commit calls 'hostname -f' after ovs-vswitchd has started.

VMware-BZ: #1972026
Signed-off-by: Gurucharan Shetty <guru at ovn.org>
Acked-by: Ben Pfaff <blp at ovn.org>


  Commit: 8377a33651124d361406656829851ff711c12b5b
      https://github.com/openvswitch/ovs/commit/8377a33651124d361406656829851ff711c12b5b
  Author: Gurucharan Shetty <guru at ovn.org>
  Date:   2017-10-06 (Fri, 06 Oct 2017)

  Changed paths:
    M rhel/etc_init.d_openvswitch

  Log Message:
  -----------
  rhel: Skip systemctl redirect.

We still use SysV scripts for RHEL. Currently, invoking
/etc/init.d/openvswitch will redirect the calls to
dynamically generated systemd scripts. In the above case when you call
"/etc/init.d/openvswitch-switch start", it inturn calls
"/bin/systemctl start openvswitch-switch.service" and
that inturn again calls "/etc/init.d/openvswitch-switch start"

This patch avoids it.  This is similar to what was done to
Debian in commit 873d85653d8 (debian: Skip systemctl redirect.)

Signed-off-by: Gurucharan Shetty <guru at ovn.org>
Acked-by: Ben Pfaff <blp at ovn.org>


Compare: https://github.com/openvswitch/ovs/compare/f9471e7b3476...8377a3365112


More information about the git mailing list