Bug 1004239 - After unregister, subscription management server is not displayed as 'Unknown' when run 'subscription-manager version' command.
Summary: After unregister, subscription management server is not displayed as 'Unknown...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Subscription Asset Manager
Classification: Retired
Component: candlepin
Version: 1.3
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: rc
: ---
Assignee: Katello Bug Bin
QA Contact: SAM QE List
URL:
Whiteboard:
Depends On:
Blocks: sam20-tracker
TreeView+ depends on / blocked
 
Reported: 2013-09-04 09:20 UTC by qianzhan
Modified: 2013-09-09 15:20 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-09-09 15:20:55 UTC
Embargoed:


Attachments (Terms of Use)

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.


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