Bug 1317890

Summary: openvswitch: debuginfo package has symlinks to missing binaries
Product: Red Hat Enterprise Linux 7 Reporter: Panu Matilainen <pmatilai>
Component: openvswitchAssignee: Panu Matilainen <pmatilai>
Status: CLOSED NEXTRELEASE QA Contact: Jean-Tsung Hsiao <jhsiao>
Severity: medium Docs Contact:
Priority: low    
Version: 7.3CC: atragler, fleitner, jean-mickael.guerin, jhsiao, kzhang, lhh, vincent.jardin
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: openvswitch-2.5.0-2.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1281913 Environment:
Last Closed: 2016-09-29 18:08:29 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:
Bug Depends On: 1281913    
Bug Blocks:    

Description Panu Matilainen 2016-03-15 12:58:07 UTC
+++ This bug was initially created as a clone of Bug #1281913 +++

Description of problem:

openvswitch-dpdk RPM package doesn't ship all the binaries, so some of them are intentionally out.  However, the debuginfo package contains broken symlinks to them which triggers OSP alarms.

Expected results:
No broken symlinks.

--- Additional comment from Panu Matilainen on 2015-11-16 04:24:36 EST ---

Debuginfo extraction doesn't know about spec level %exclude's (see bug 878863), so files that are not packaged at all need to be physically removed from the buildroot.

This is done in openvswitch-dpdk for the sub-package contents (see line 246-254) but I hadn't noticed there are such %excludes (ovs-benchmark etc) present in the upstream ovs spec. The same buggy %excludes are in the regular openvswitch package too, so it'll be affected as well.

Comment 1 Panu Matilainen 2016-03-15 12:59:36 UTC
devel_ack+

Comment 2 Panu Matilainen 2016-03-17 07:33:34 UTC
Fixed in openvswitch-2.5.0-2.el7

Comment 3 Jean-Tsung Hsiao 2016-06-24 14:21:09 UTC
(In reply to Panu Matilainen from comment #2)
> Fixed in openvswitch-2.5.0-2.el7

Hi Panu,

Do you have a reproducer for this?

Thanks!

Jean

Comment 4 Panu Matilainen 2016-06-27 07:09:57 UTC
Install openvswitch-debuginfo, look for broken symlinks in it.

Comment 5 Jean-Tsung Hsiao 2016-06-28 18:50:40 UTC
With 2.5.0-1 below are the three broken symlinks:

root@netqe17 ~]# ll -l /usr/lib/debug/.build-id/28/dd8009a6485600531dc328ed0d214145221d23
lrwxrwxrwx. 1 root root 29 Jun 28 11:09 /usr/lib/debug/.build-id/28/dd8009a6485600531dc328ed0d214145221d23 -> ../../../../bin/ovs-benchmark
[root@netqe17 ~]# ll -l /usr/lib/debug/.build-id/45/2f24bdb32cb72817621b22687496a50be6ff5a
lrwxrwxrwx. 1 root root 40 Jun 28 11:09 /usr/lib/debug/.build-id/45/2f24bdb32cb72817621b22687496a50be6ff5a -> ../../../../sbin/ovs-vlan-bug-workaround
[root@netqe17 ~]# ll -l /usr/lib/debug/.build-id/d7/34a35e1eabe8d247dc7e3ad57c9d1774c6c686
lrwxrwxrwx. 1 root root 34 Jun 28 11:09 /usr/lib/debug/.build-id/d7/34a35e1eabe8d247dc7e3ad57c9d1774c6c686 -> ../../../../bin/ovs-testcontroller
[root@netqe17 ~]# 
[root@netqe17 ~]# rpm -qa | grep openvswitch
openvswitch-debuginfo-2.5.0-1.el7.x86_64
openvswitch-2.5.0-1.el7.x86_64

But, with 2.5.0-3, there are no such broken symlinks.