Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1466181

Summary: ovn-controller is not configured to start at boot
Product: [oVirt] ovirt-provider-ovn Reporter: Mor <mkalfon>
Component: driverAssignee: Marcin Mirecki <mmirecki>
Status: CLOSED CURRENTRELEASE QA Contact: Mor <mkalfon>
Severity: high Docs Contact:
Priority: high    
Version: 1.0.4CC: bugs, danken, ylavi
Target Milestone: ovirt-4.2.0Flags: rule-engine: ovirt-4.2+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-20 11:10:38 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Network RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Mor 2017-06-29 08:28:35 UTC
Description of problem:
ovn-controller service is not shipped as enabled (to start at boot), by thus can cause a VM to fail if it has OVN network attached to it after a reboot to the hypervisor.

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

How reproducible:
100%

Steps to Reproduce:
1. on hypervisor, run yum install openvswitch-ovn-host
2. systemctl status ovn-controller

Actual results:
Loaded: loaded (/usr/lib/systemd/system/ovn-controller.service; disabled; vendor preset: disabled)

Expected results:
ovn-controller should be enabled by the RPM installation.

Comment 1 Mor 2017-06-29 08:29:10 UTC
*** Bug 1466169 has been marked as a duplicate of this bug. ***

Comment 2 Mor 2017-07-13 11:39:41 UTC
Verified on:
ovirt-provider-ovn-driver-1.1-2.20170710074946.git5abef7f.el7.centos.noarch

# vdsm-tool ovn-config <central_ip> <tunneling ip>

Using default PKI files
Created symlink from /etc/systemd/system/multi-user.target.wants/openvswitch.service to /usr/lib/systemd/system/openvswitch.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/ovn-controller.service to /usr/lib/systemd/system/ovn-controller.service.

# systemctl status ovn-controller
ovn-controller.service - OVN controller daemon
   Loaded: loaded (/usr/lib/systemd/system/ovn-controller.service; enabled; vendor preset: disabled)
   Active: active (exited) since Thu 2017-07-13 14:36:31 IDT; 11s ago
  Process: 10303 ExecStart=/usr/share/openvswitch/scripts/ovn-ctl start_controller $OVN_CONTROLLER_OPTS (code=exited, status=0/SUCCESS)
 Main PID: 10303 (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/ovn-controller.service
           ├─10328 ovn-controller: monitoring pid 10329 (healthy)
           └─10329 ovn-controller unix:/var/run/openvswitch/db.sock -vconsole:emer -vsyslog:err -vfile:info --private-key=/etc/pki/vdsm/keys/vdsmkey.pem --certificate=/etc/pki/vdsm/certs/vdsmcert.pem --ca-cer...

# systemctl status openvswitch.service 
openvswitch.service - Open vSwitch
   Loaded: loaded (/usr/lib/systemd/system/openvswitch.service; enabled; vendor preset: disabled)
   Active: active (exited) since Thu 2017-07-13 14:36:31 IDT; 20s ago
  Process: 10166 ExecStop=/bin/true (code=exited, status=0/SUCCESS)
  Process: 10300 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
 Main PID: 10300 (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/openvswitch.service

Comment 3 Sandro Bonazzola 2017-12-20 11:10:38 UTC
This bugzilla is included in oVirt 4.2.0 release, published on Dec 20th 2017.

Since the problem described in this bug report should be
resolved in oVirt 4.2.0 release, published on Dec 20th 2017, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.