Description of problem: "Unit ovn-northd.service could not be found" report when install OVN central and host packages Version-Release number of selected component (if applicable): [root@dell-per730-42 ~]# uname -a Linux dell-per730-42.rhts.eng.pek2.redhat.com 4.18.0-107.el8.x86_64 #1 SMP Fri Jun 14 13:46:34 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux [root@dell-per730-42 ~]# rpm -qa | grep openvswitch openvswitch2.11-2.11.0-18.el8fdp.x86_64 openvswitch-selinux-extra-policy-1.0-16.el8fdp.noarch [root@dell-per730-42 ~]# rpm -qa | grep ovn ovn2.11-2.11.0-26.el8fdp.x86_64 ovn2.11-central-2.11.0-26.el8fdp.x86_64 ovn2.11-host-2.11.0-26.el8fdp.x86_64 [root@dell-per730-42 ~]# How reproducible: everytime Steps to Reproduce: [root@dell-per730-17 ~]# rpm -ivh http://download-node-02.eng.bos.redhat.com/brewroot/packages/openvswitch2.11/2.11.0/18.el8fdp/x86_64/openvswitch2.11-2.11.0-18.el8fdp.x86_64.rpm Retrieving http://download-node-02.eng.bos.redhat.com/brewroot/packages/openvswitch2.11/2.11.0/18.el8fdp/x86_64/openvswitch2.11-2.11.0-18.el8fdp.x86_64.rpm Verifying... ################################# [100%] Preparing... ################################# [100%] Updating / installing... 1:openvswitch2.11-2.11.0-18.el8fdp ################################# [100%] [root@dell-per730-17 ~]# rpm -ivh http://download-node-02.eng.bos.redhat.com/brewroot/packages/ovn2.11/2.11.0/26.el8fdp/x86_64/ovn2.11-2.11.0-26.el8fdp.x86_64.rpm Retrieving http://download-node-02.eng.bos.redhat.com/brewroot/packages/ovn2.11/2.11.0/26.el8fdp/x86_64/ovn2.11-2.11.0-26.el8fdp.x86_64.rpm Verifying... ################################# [100%] Preparing... ################################# [100%] Updating / installing... 1:ovn2.11-2.11.0-26.el8fdp ################################# [100%] [root@dell-per730-17 ~]# rpm -ivh http://download-node-02.eng.bos.redhat.com/brewroot/packages/ovn2.11/2.11.0/26.el8fdp/x86_64/ovn2.11-central-2.11.0-26.el8fdp.x86_64.rpm Retrieving http://download-node-02.eng.bos.redhat.com/brewroot/packages/ovn2.11/2.11.0/26.el8fdp/x86_64/ovn2.11-central-2.11.0-26.el8fdp.x86_64.rpm Verifying... ################################# [100%] Preparing... ################################# [100%] Unit ovn-northd.service could not be found. Updating / installing... 1:ovn2.11-central-2.11.0-26.el8fdp ################################# [100%] [root@dell-per730-17 ~]# rpm -ivh http://download-node-02.eng.bos.redhat.com/brewroot/packages/ovn2.11/2.11.0/26.el8fdp/x86_64/ovn2.11-host-2.11.0-26.el8fdp.x86_64.rpm Retrieving http://download-node-02.eng.bos.redhat.com/brewroot/packages/ovn2.11/2.11.0/26.el8fdp/x86_64/ovn2.11-host-2.11.0-26.el8fdp.x86_64.rpm Verifying... ################################# [100%] Preparing... ################################# [100%] Unit ovn-controller.service could not be found. Updating / installing... 1:ovn2.11-host-2.11.0-26.el8fdp ################################# [100%] Actual results: Expected results: no extra info displayed Additional info:
This message is being displayed due to a preinstallation hook in the spec file. When ovn-host is installed, it tries to determine if ovn-controller is running, and if the old openvswitch-ovn-host package is installed. If the service is running, then the installation of ovn-host will automatically start the service again as part of installation. The same check is performed for the ovn-central package, except that it checks if ovn-northd is running and if the old openvswitch-ovn-central package is installed. Since you are installing the packages on a new system, when systemd checks if ovn-controller or ovn-northd is running, it returns an error saying the service cannot be found. This doesn't actually cause a problem, but it can be alarming to see such a message during package installation. I think the proper fix in this case is to suppress the output from the `systemctl status` command.
I've submitted a fix upstream and have fixed this problem in the fast-datapth-next-rhel-7 branch.
*** Bug 1771907 has been marked as a duplicate of this bug. ***
The BZ 1771907 which is a duplicate of this BZ has addressed it and 1771907 is already closed. So closing this BZ.