Bug 1004239 - After unregister, subscription management server is not displayed as 'Unknown' when run 'subscription-manager version' command.
After unregister, subscription management server is not displayed as 'Unknown...
Status: CLOSED NOTABUG
Product: Subscription Asset Manager
Classification: Red Hat
Component: candlepin (Show other bugs)
1.3
Unspecified Unspecified
unspecified Severity medium
: rc
: ---
Assigned To: Katello Bug Bin
SAM QE List
:
Depends On:
Blocks: sam20-tracker
  Show dependency treegraph
 
Reported: 2013-09-04 05:20 EDT by qianzhan
Modified: 2013-09-09 11:20 EDT (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-09-09 11:20:55 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description qianzhan 2013-09-04 05:20:15 EDT
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 11:20:55 EDT
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.