Bug 1397073

Summary: ovn-controller service does not start automatically at boot
Product: Red Hat Enterprise Linux 7 Reporter: Mor <mkalfon>
Component: openvswitchAssignee: Mark Michelson <mmichels>
Status: CLOSED CURRENTRELEASE QA Contact: qding
Severity: high Docs Contact:
Priority: high    
Version: 7.3CC: aloughla, atragler, fleitner, qding, wchadwic
Target Milestone: rc   
Target Release: 7.3   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: openvswitch-2.6.1-1.git20161206.el7fdb Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-16 17:00:43 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Mor 2016-11-21 14:25:07 UTC
Description of problem:
Ovn-controller systemd configuration file is missing "WantedBy" value (in [Install] section) to make it start at boot.

Version-Release number of selected component (if applicable):
openvswitch-ovn-host-2.6.90-1.fc24.x86_64

How reproducible:
100%

Steps to Reproduce:
1. systemctl enable ovn-controller
2. Reboot server.
3. systemctl status ovn-controller

Actual results:
Service does not start.

Expected results:
Service should start.

Additional info:
We fixed it by adding:
[Install]
WantedBy=multi-user.target
To the ovs-controller.service file.

Comment 1 Lance Richardson 2016-11-21 22:10:13 UTC
Good find, this also applies to the ovn-northd and ovn-controller-vtep
services.

Comment 2 Lance Richardson 2016-11-21 22:54:33 UTC
Patch posted upstream:

   https://patchwork.ozlabs.org/patch/697445/

Also noticed when testing that ovn-common rpm installation fails if
pacemaker has not been installed, posted a patch for that issue as
well:

   https://patchwork.ozlabs.org/patch/697444/

Comment 4 Lance Richardson 2016-11-22 16:26:44 UTC
Fix has been applied upstream to master and 2.6 branches.

Comment 5 Lance Richardson 2016-12-12 16:14:27 UTC
RPMs with fix available here:

    http://download-node-02.eng.bos.redhat.com/brewroot/packages/openvswitch/2.6.1/2.git20161206.el7fdb/

Comment 7 qding 2017-01-13 08:46:54 UTC
Verified with openvswitch-2.6.1-2.git20161206.el7fdb.x86_64
Steps as in Comment #0

Comment 9 Flavio Leitner 2018-02-16 17:00:43 UTC
Closing resolved bugs.