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 874623 - subscription-manager version report for server when not registered classically nor certificatlely
Summary: subscription-manager version report for server when not registered classicall...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: subscription-manager
Version: 6.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Alex Wood
QA Contact: IDM QE LIST
URL:
Whiteboard:
Depends On:
Blocks: 771481
TreeView+ depends on / blocked
 
Reported: 2012-11-08 14:43 UTC by John Sefler
Modified: 2013-02-21 08:59 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-21 08:59:54 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:0350 0 normal SHIPPED_LIVE subscription-manager bug fix and enhancement update 2013-02-20 20:53:35 UTC

Description John Sefler 2012-11-08 14:43:07 UTC
Description of problem:
When the rhsm.conf is configured for a valid candlepin server, but the system is not registered to it (nor registered classically to RHN), the subscription-manager version report is giving half the server info.

[root@jsefler-6 ~]# subscription-manager version
server type: Unknown                      <====== if the server type is unknown,
subscription management server: 0.7.18-1  <====== how can we know its version?
subscription-manager: 1.1.5-1.git.14.ae9fffd.el6
python-rhsm: 1.1.4-1.git.0.57fc0de.el6

Version-Release number of selected component (if applicable):
[root@jsefler-6 ~]# rpm -q subscription-manager
subscription-manager-1.1.5-1.git.14.ae9fffd.el6.x86_64


How reproducible:


Steps to Reproduce:
[root@jsefler-6 ~]# subscription-manager config --server.hostname=jsefler-f14-6candlepin.usersys.redhat.com --server.port=8443 --server.prefix=/candlepin

[root@jsefler-6 ~]# subscription-manager unregister
This system is currently not registered.

[root@jsefler-6 ~]# rm /etc/sysconfig/rhn/systemid
rm: cannot remove `/etc/sysconfig/rhn/systemid': No such file or directory

[root@jsefler-6 ~]# subscription-manager version
server type: Unknown
subscription management server: 0.7.18-1
subscription-manager: 1.1.5-1.git.14.ae9fffd.el6
python-rhsm: 1.1.4-1.git.0.57fc0de.el6

  
Actual results:
server type: Unknown
subscription management server: 0.7.18-1

Expected results:
  I can't decide what the correct expectations should be.
  In my opinion it should be either:
server type: Unknown
subscription management server: Unknown
  OR
server type: Red Hat Subscription Management
subscription management server: 0.7.18-1

Comment 1 Adrian Likins 2012-11-19 15:21:44 UTC
commit 004314cea99b4b81ba03afb259cd813c50eb30fd
Author: Alex Wood <awood>
Date:   Fri Nov 16 16:00:01 2012 -0500

    874623: Tell users running the version command if they are not registered.

Comment 4 spandey 2012-11-26 11:10:02 UTC
Verified using following rpm with rhel6.4 
[root@localhost ~]# rpm -qa | grep subscription
subscription-manager-1.8.0-1.git.3.006a990.el6.x86_64
subscription-manager-migration-1.8.0-1.git.3.006a990.el6.x86_64
subscription-manager-firstboot-1.8.0-1.git.3.006a990.el6.x86_64
subscription-manager-gui-1.8.0-1.git.3.006a990.el6.x86_64
subscription-manager-migration-data-1.12.2.6-1.git.0.171d4c3.el6.noarch



[root@localhost ~]# subscription-manager version
server type: This system is currently not registered.
subscription management server: Unknown
subscription-manager: 1.8.0-1.git.3.006a990.el6
python-rhsm: 1.8.0-1.git.0.28876af.el6

I think this is meeting the expected behaviour, so marking defect as verified.

Comment 6 errata-xmlrpc 2013-02-21 08:59:54 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.

http://rhn.redhat.com/errata/RHBA-2013-0350.html


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