Bug 1308304 - [RHEL-6.8] can't query installed openmpi-1.8 with 'rpm -q'
Summary: [RHEL-6.8] can't query installed openmpi-1.8 with 'rpm -q'
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: openmpi
Version: 6.8
Hardware: All
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Michal Schmidt
QA Contact: Infiniband QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-02-14 06:42 UTC by Honggang LI
Modified: 2016-02-26 12:27 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-02-26 12:27:34 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Honggang LI 2016-02-14 06:42:57 UTC
Description of problem:

[root@rdma-qe-06 ~]$ cat /etc/motd| grep -i distro
                           DISTRO=RHEL-6.8-20160212.2

[root@rdma-qe-06 ~]$ rpm -q openmpi
package openmpi is not installed

[root@rdma-qe-06 ~]$ yum install openmpi
Loaded plugins: product-id, search-disabled-repos, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Setting up Install Process
Package openmpi-1.8-1.8.1-5.el6.x86_64 already installed and latest version
Nothing to do

[root@rdma-qe-06 ~]$ 
[root@rdma-qe-06 ~]$ rpm -qa | grep openmpi
openmpi-1.8-1.8.1-5.el6.x86_64
openmpi-1.8-devel-1.8.1-5.el6.x86_64
[root@rdma-qe-06 ~]$ 


Version-Release number of selected component (if applicable):


How reproducible:
always

Steps to Reproduce:
1.
2.
3.

Actual results:
[root@rdma-qe-06 ~]$ rpm -q openmpi
package openmpi is not installed

Expected results:
[root@rdma-qe-06 ~]$ rpm -q openmpi
openmpi-1.8-1.8.1-5.el6.x86_64

Additional info:

Comment 1 Honggang LI 2016-02-14 06:47:45 UTC
openmpi-1.8-1.8.1-5.el6.x86_64
        ^^^ ^^^

The name looks really weird. Is it necessary to duplicate '1.8' in the name?

Comment 2 Honggang LI 2016-02-14 06:50:01 UTC
[root@rdma-qe-06 ~]$ rpm -q --provides openmpi-1.8
mpi  
openmpi = 1.8.1-5.el6
openmpi(x86-64) = 1.8.1-5.el6
libmca_common_sm.so.4()(64bit)  
libmca_common_verbs.so.0()(64bit)  
libmpi_cxx.so.1()(64bit)  
libmpi_mpifh.so.2()(64bit)  
libmpi.so.1()(64bit)  
libmpi_usempi.so.1()(64bit)  
libopen-pal.so.6()(64bit)  
libopen-rte.so.7()(64bit)  
libopen-trace-format.so.1()(64bit)  
liboshmem.so.1()(64bit)  
libotfaux.so.0()(64bit)  
libvt-mpi-unify.so.0()(64bit)  
openmpi-1.8 = 1.8.1-5.el6
openmpi-1.8(x86-64) = 1.8.1-5.el6
[root@rdma-qe-06 ~]$ 
[root@rdma-qe-06 ~]$ rpm -q openmpi-1.8
openmpi-1.8-1.8.1-5.el6.x86_64

Comment 4 Michal Schmidt 2016-02-15 13:33:09 UTC
In the N-V-R.A string "openmpi-1.8-1.8.1-5.el6.x86_64" the components are:
Name: openmpi-1.8
Version: 1.8.1
Release: 5.el6
Arch: x86_64

The name of the binary package really is "openmpi-1.8".
This is intentional. We ship more than one compat version of openmpi and we have to distinguish them by the name. See my comment at:
https://bugzilla.redhat.com/show_bug.cgi?id=1158864#c11

The latest version of openmpi in RHEL6.8 is called "openmpi-1.10".
I am aware this will need proper release notes.

Or is it truly necessary for the package to be called "openmpi"?

Comment 5 Honggang LI 2016-02-16 08:06:03 UTC
(In reply to Michal Schmidt from comment #4)
> The latest version of openmpi in RHEL6.8 is called "openmpi-1.10".
> I am aware this will need proper release notes.

+1, doc is necessary.

> Or is it truly necessary for the package to be called "openmpi"?

maybe not. But as you see 'rpm -q openmpi' and 'yum install openmpi' conflict with each other when openmpi-1.8 installed. There should be same issue while openmpi-1.10 installed.

Comment 6 Michal Schmidt 2016-02-26 12:27:34 UTC
(In reply to Honggang LI from comment #5)
> But as you see 'rpm -q openmpi' and 'yum install openmpi'
> conflict with each other when openmpi-1.8 installed. There should be same
> issue while openmpi-1.10 installed.

In the 'yum install openmpi' command, the 'openmpi' is a provide name, not necessarily a package name. 'openmpi-1.8' provides 'openmpi', hence yum try to install 'openmpi-1.8'.
The package naming here is a bit unusual, but it's valid by RPM rules.


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