Red Hat Bugzilla – Bug 1472729
/usr/lib/ocf/resource.d/ovn/ovndb-servers is missing in the openvswitch.spec file
Last modified: 2017-08-03 08:35:39 EDT
Description of problem: The upstream openvswitch-fedora.spec.in has below section which is missing in the downstream openvswitch.spec file. --------------------------- %post ovn-common mkdir -p /usr/lib/ocf/resource.d/ovn ln -sf %{_datadir}/openvswitch/scripts/ovndb-servers.ocf /usr/lib/ocf/resource.d/ovn/ovndb-servers --------------------------- This section is required to create "ovn:ovsdb-servers" pacemaker resource to manage the OVN DB servers. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
This is blocking OVN in OSP in the upcoming 12 release.
Upstream commit adding that %post section is https://github.com/openvswitch/ovs/commit/a4245b7869c8943415a153dfe1878829991a553a which also added %postun ovn-common and ovndb-servers.ocf file entry. In Fedora Rawhide distgit, ocf file entry was introduced in 2.7.0 update: http://pkgs.fedoraproject.org/cgit/rpms/openvswitch.git/commit/?id=2cacd7451f0f01a6a8ee09cfb07fd5a16cb3dd5d and symlink creation was introduced in 2.7.2 update: http://pkgs.fedoraproject.org/cgit/rpms/openvswitch.git/commit/?id=5fb65cc83c78a92657b58d5985a75e77d523c5d9 in %install section Should this be synced to upstream openvswitch-fedora.spec.in or vice versa?
Numan, why is the symlink created in %post, that seems wrong?
@Alan - I am not sure. The patch was added by Babu. What is the right way to do ? May be we can do the right way and correct it in upstream
(In reply to Numan Siddique from comment #7) > @Alan - I am not sure. The patch was added by Babu. What is the right way to > do ? > May be we can do the right way and correct it in upstream Right is what Timothy did in Fedora distgit, so that symlink is properly accounted for in rpmdb.
I already sent a patch upstream, before doing that in Fedora Rawhide: https://patchwork.ozlabs.org/patch/791003/
reproduced with openvswitch-2.7.1-1.git20170710.el7fdp verified with openvswitch-2.7.2-1.git20170719.el7fdp [root@dell-per730-04 ~]# rpm -q openvswitch openvswitch-2.7.2-1.git20170719.el7fdp.x86_64 [root@dell-per730-04 ~]# ls -l /lib/ocf/resource.d/ovn/ total 0 lrwxrwxrwx. 1 root root 48 Jul 22 04:12 ovndb-servers -> /usr/share/openvswitch/scripts/ovndb-servers.ocf [root@dell-per730-04 ~]# ls -l /usr/lib/ocf/resource.d/ovn/ total 0 lrwxrwxrwx. 1 root root 48 Jul 22 04:12 ovndb-servers -> /usr/share/openvswitch/scripts/ovndb-servers.ocf [root@dell-per730-04 ~]#
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2017:2418