Bug 1122772

Summary: yum repolist does not inform "This system is not yet registered" when the system is unregistered.
Product: Red Hat Enterprise Linux 6 Reporter: qianzhan
Component: subscription-managerAssignee: Bryan Kearney <bkearney>
Status: CLOSED ERRATA QA Contact: John Sefler <jsefler>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.6CC: bkearney, gxing, jesusr, liliu, qianzhan, shihliu, skallesh
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: yum repolist does not inform "This system is not yet registered" when the system is unregistered. Consequence: n/a Fix: Notify user system is not registered. Result: yum repolist now notifies the user the system is not registered.
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-10-14 07:47:50 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:    
Bug Blocks: 1014343    

Description qianzhan 2014-07-24 04:02:23 UTC
Description of problem:
yum repolist does not inform "This system is not yet registered" when the system is unregistered.

Version-Release number of selected component (if applicable):
subscription-manager: 1.12.4-1.el6
python-rhsm: 1.12.4-1.el6


How reproducible:
always

Steps to Reproduce:
1. Make sure the system is not registered.
[root@dhcp-14-238 ~]# subscription-manager identity
This system is not yet registered. Try 'subscription-manager register --help' for more information.


2. yum repolist.
[root@dhcp-14-238 ~]# yum repolist
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
repolist: 0


Actual results:
As step 2, the result of yum repolist is 0, but no explanation for the result.

Expected results:
An explanation, like "This system is not yet registered. Try 'subscription-manager register --help' for more information", should be displayed for why yum repolist is 0.

Additional info:

Comment 2 Chris Snyder 2014-07-28 13:36:09 UTC
Should be in master as of commit: 384208585272a25eea06a7c3db538bc84194c17d

Comment 4 qianzhan 2014-08-14 03:16:52 UTC
Verifying version: RHEL-6.6-20140812.1

[root@dhcp-14-148 ~]# subscription-manager version
server type: This system is currently not registered.
subscription management server: Unknown
subscription management rules: Unknown
subscription-manager: 1.12.10-1.el6
python-rhsm: 1.12.5-1.el6

Verification:

[root@dhcp-14-148 ~]# subscription-manager identity
This system is not yet registered. Try 'subscription-manager register --help' for more information.
[root@dhcp-14-148 ~]# yum repolist
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
repolist: 0
[root@dhcp-14-148 ~]#

The bug still exists in build RHEL-6.6-20140812.1, so move it form "ON_QA" to "ASSIGNED"

Comment 5 John Sefler 2014-08-20 23:29:43 UTC
The fix (In reply to qianzhan from comment #4)
> Verifying version: RHEL-6.6-20140812.1
> 
> [root@dhcp-14-148 ~]# subscription-manager version
> server type: This system is currently not registered.
> subscription management server: Unknown
> subscription management rules: Unknown
> subscription-manager: 1.12.10-1.el6
> python-rhsm: 1.12.5-1.el6
> 
> The bug still exists in build RHEL-6.6-20140812.1, so move it form "ON_QA"
> to "ASSIGNED"

The fix applied in comment 2 will appear in subscription-manager-1.12.11-1

Comment 6 John Sefler 2014-08-20 23:34:14 UTC
Note that this bug is actually reverting the removal of some "This system is not registered to..." messages from bug 1058380 thrown by the subscription-manager yum plugin.

Comment 7 Shwetha Kallesh 2014-08-21 06:41:30 UTC
Marking verified!! I see an explaination that system ins not registered.

[root@shwetha-ws ~]# subscription-manager version
server type: This system is currently not registered.
subscription management server: 0.9.21-1
subscription management rules: 5.11
subscription-manager: 1.12.13-1.el6
python-rhsm: 1.12.5-1.el6



[root@shwetha-ws ~]# subscription-manager identity
This system is not yet registered. Try 'subscription-manager register --help' for more information.
[root@shwetha-ws ~]# yum repolist
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
repo id                                                                       repo name                                                                           status
rhel-6.6-blr                                                                  RHEL 6.6 BLR repo                                                                   3,783
rhel-6.6-blr-optional                                                         RHEL 6.6 BLR repo Optional

Comment 9 errata-xmlrpc 2014-10-14 07:47:50 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-2014-1384.html