Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1308304

Summary: [RHEL-6.8] can't query installed openmpi-1.8 with 'rpm -q'
Product: Red Hat Enterprise Linux 6 Reporter: Honggang LI <honli>
Component: openmpiAssignee: Michal Schmidt <mschmidt>
Status: CLOSED NOTABUG QA Contact: Infiniband QE <infiniband-qe>
Severity: high Docs Contact:
Priority: high    
Version: 6.8CC: jshortt, mstowell
Target Milestone: rcKeywords: Regression
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-02-26 12:27:34 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:
Embargoed:

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.