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 1241184

Summary: subscription-manager version reports "RPM_VERSION" instead of actual version
Product: Red Hat Enterprise Linux 7 Reporter: John Sefler <jsefler>
Component: subscription-managerAssignee: Chris "Ceiu" Rog <crog>
Status: CLOSED ERRATA QA Contact: John Sefler <jsefler>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.2CC: crog, skallesh
Target Milestone: rcKeywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-19 11:49:07 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:
Attachments:
Description Flags
subscription-manager-gui version none

Description John Sefler 2015-07-08 16:34:01 UTC
Description of problem:


Version-Release number of selected component (if applicable):
subscription-manager-1.15.3-1

How reproducible:
always


Steps to Reproduce:
[root@jsefler-7workstation ~]# rpm -q subscription-manager python-rhsm
subscription-manager-1.15.2-1.el7.x86_64
python-rhsm-1.15.2-1.el7.x86_64
[root@jsefler-7workstation ~]# subscription-manager version
server type: This system is currently not registered.
subscription management server: 2.0.3-1
subscription management rules: 5.16
subscription-manager: 1.15.2-1.el7
python-rhsm: 1.15.2-1.el7

That^ version of subscription-manager reported above is correct and expected.
However after upgrading to a newer nvr....

[root@jsefler-7workstation ~]# rpm -q subscription-manager python-rhsm
subscription-manager-1.15.3-1.el7.x86_64
python-rhsm-1.15.3-1.el7.x86_64
[root@jsefler-7workstation ~]# subscription-manager version
server type: This system is currently not registered.
subscription management server: 2.0.3-1
subscription management rules: 5.16
subscription-manager: RPM_VERSION
python-rhsm: 1.15.3-1.el7

That ^ version of subscription-manager package is incomplete

Actual results:
RPM_VERSION

Expected results:
subscription-manager-1.15.3-1.el7

Additional info:

Comment 2 Chris "Ceiu" Rog 2015-07-08 17:12:43 UTC
commit 7469467bc9e0b178b624e33ba179327b0179e12d
Author: Chris Rog <crog>
Date:   Wed Jul 8 12:55:09 2015 -0400

    1241184: Updated Makefile to prevent version string clobbering

Comment 3 Adrian Likins 2015-07-08 20:50:16 UTC
*** Bug 1240225 has been marked as a duplicate of this bug. ***

Comment 5 Shwetha Kallesh 2015-07-10 07:13:06 UTC
Created attachment 1050530 [details]
subscription-manager-gui version

Marking verified!


[root@dhcp35-236 ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 2.0.3-1
subscription management rules: 5.16
subscription-manager: 1.15.6-1.el7
python-rhsm: 1.15.3-1.el7

Comment 6 errata-xmlrpc 2015-11-19 11:49:07 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://rhn.redhat.com/errata/RHBA-2015-2122.html