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

GitHub noreply at github.com
Sat Oct 7 02:32:00 UTC 2017


  Branch: refs/heads/branch-2.8
  Home:   https://github.com/openvswitch/ovs
  Commit: 01001c7ac420aef365db19d9ef9dc1bdf7bbbe7e
      https://github.com/openvswitch/ovs/commit/01001c7ac420aef365db19d9ef9dc1bdf7bbbe7e
  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: 8609fa7ddd2fd3bd6cdbf5b03e18ec9abdb44aed
      https://github.com/openvswitch/ovs/commit/8609fa7ddd2fd3bd6cdbf5b03e18ec9abdb44aed
  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/37b2cc26fa4f...8609fa7ddd2f


More information about the git mailing list