RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1472729 - /usr/lib/ocf/resource.d/ovn/ovndb-servers is missing in the openvswitch.spec file
Summary: /usr/lib/ocf/resource.d/ovn/ovndb-servers is missing in the openvswitch.spec ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: openvswitch
Version: 7.4
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: rc
: ---
Assignee: Timothy Redaelli
QA Contact: ovs-qe
URL:
Whiteboard:
Depends On:
Blocks: 1472296
TreeView+ depends on / blocked
 
Reported: 2017-07-19 09:39 UTC by Numan Siddique
Modified: 2017-08-03 12:35 UTC (History)
11 users (show)

Fixed In Version: openvswitch-2.7.2-1.git20170719.el7fdp
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-03 12:35:39 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2017:2418 0 normal SHIPPED_LIVE Moderate: openvswitch security, bug fix, and enhancement update 2017-08-03 16:35:07 UTC

Description Numan Siddique 2017-07-19 09:39:25 UTC
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:

Comment 2 Assaf Muller 2017-07-19 13:35:36 UTC
This is blocking OVN in OSP in the upcoming 12 release.

Comment 5 Alan Pevec 2017-07-20 01:40:48 UTC
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?

Comment 6 Alan Pevec 2017-07-20 01:42:40 UTC
Numan, why is the symlink created in %post, that seems wrong?

Comment 7 Numan Siddique 2017-07-20 01:44:52 UTC
@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

Comment 9 Alan Pevec 2017-07-20 02:05:35 UTC
(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.

Comment 10 Timothy Redaelli 2017-07-20 07:18:38 UTC
I already sent a patch upstream, before doing that in Fedora Rawhide: https://patchwork.ozlabs.org/patch/791003/

Comment 13 qding 2017-07-26 08:52:18 UTC
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 ~]#

Comment 15 errata-xmlrpc 2017-08-03 12:35:39 UTC
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


Note You need to log in before you can comment on or make changes to this bug.