Bug 1004239

Summary: After unregister, subscription management server is not displayed as 'Unknown' when run 'subscription-manager version' command.
Product: [Retired] Subscription Asset Manager Reporter: qianzhan
Component: candlepinAssignee: Katello Bug Bin <katello-bugs>
Status: CLOSED NOTABUG QA Contact: SAM QE List <sam-qe-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 1.3CC: bkearney, ckozak, gxing, liliu, sgao
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-09 15:20:55 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:
Bug Depends On:    
Bug Blocks: 971511    

Description qianzhan 2013-09-04 09:20:15 UTC
Description of problem:
After unregister, subscription management server is not displayed as 'Unknown' when run 'subscription-manager version' command.

Version-Release number of selected component (if applicable):
katello-candlepin-cert-key-pair-1.0-1.noarch
katello-certs-tools-1.4.2-2.el6sat.noarch
katello-cli-1.4.3-9.el6sat.noarch
katello-cli-common-1.4.3-9.el6sat.noarch
katello-common-1.4.3-11.el6sam_splice.noarch
katello-configure-1.4.4-3.el6sat.noarch
katello-glue-candlepin-1.4.3-11.el6sam_splice.noarch
katello-glue-elasticsearch-1.4.3-11.el6sam_splice.noarch
katello-headpin-1.4.3-11.el6sam_splice.noarch
katello-headpin-all-1.4.3-11.el6sam_splice.noarch
katello-selinux-1.4.4-2.el6sat.noarch
signo-katello-0.0.20-1.el6sat.noarch
candlepin-0.8.24-1.el6sam.noarch
candlepin-scl-1-5.el6_4.noarch
candlepin-scl-quartz-2.1.5-5.el6_4.noarch
candlepin-scl-rhino-1.7R3-1.el6_4.noarch
candlepin-scl-runtime-1-5.el6_4.noarch
candlepin-selinux-0.8.24-1.el6sam.noarch
candlepin-tomcat6-0.8.24-1.el6sam.noarch
thumbslug-0.0.32-1.el6sam.noarch
thumbslug-selinux-0.0.32-1.el6sam.noarch
subscription-manager-gui-1.8.21-1.el5
subscription-manager-1.8.21-1.el5

How reproducible:
always

Steps to Reproduce:
1. Register to SAM
[root@unused-65-239 ~]# subscription-manager register
Username: admin
Password: 
The system has been registered with ID: 665cd0c2-6bbe-48e1-8e4e-6b3aff44f2e3 

2. Check the subscription-manager version:
[root@unused-65-239 ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 1.4.3-11.el6sam_splice-Headpin
subscription-manager: 1.8.21-1.el5
python-rhsm: 1.8.17-1.el5

3. Unregister and clean the local data:
[root@unused-65-239 ~]# subscription-manager unregister
Error updating system data on the server, see /var/log/rhsm/rhsm.log for more details.
[root@unused-65-239 ~]# subscription-manager clean
All local data removed

4. Check the subscription-manager version after unregister:
[root@unused-65-239 ~]# subscription-manager version
server type: This system is currently not registered.
subscription management server: 1.4.3-11.el6sam_splice-Headpin
subscription-manager: 1.8.21-1.el5
python-rhsm: 1.8.17-1.el5

Actual results:
As above.

Expected results:
The value of subscription management server should be 'Unknown' after unregister.

Additional info:

Comment 1 Carter Kozak 2013-09-09 15:20:55 UTC
This is expected behavior.  Whether or not you are registered should have no bearing on the server information, which doesn't require any authentication.  It shows the server version of the subscription management service that your rhsm.conf is pointing to.