Bug 1254349

Summary: unexpected "Registering to: hostname:port/prefix" when calling subscription-manager identity --regenerate --force
Product: Red Hat Enterprise Linux 7 Reporter: John Sefler <jsefler>
Component: subscription-managerAssignee: vritant <vrjain>
Status: CLOSED ERRATA QA Contact: John Sefler <jsefler>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.2CC: crog, skallesh, vrjain
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: 2015-11-19 11:50:44 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:

Description John Sefler 2015-08-17 19:46:52 UTC
Description of problem:
As a side affect of https://bugzilla.redhat.com/show_bug.cgi?id=985157#c13 we now get an additional stdout message when calling subscription-manager identity --regenerate" stating ...
Registering to: hostname:port/prefix

Although the extra stdout message is harmless, it is a little misleading because the system is already registered.


Version-Release number of selected component (if applicable):
[root@jsefler-7 ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 2.0.6-1
subscription management rules: 5.16
subscription-manager: 1.15.9-6.el7
python-rhsm: 1.15.4-2.el7


How reproducible:


Steps to Reproduce:
[root@jsefler-7 ~]# subscription-manager register --serverurl=subscription.rhn.stage.redhat.com:443/subscription
Registering to: subscription.rhn.stage.redhat.com:443/subscription
Username: stage_auto_testuser1
Password: 
The system has been registered with ID: 258d9752-ee44-413a-bc07-88a748d4133c 
[root@jsefler-7 ~]# 
[root@jsefler-7 ~]# subscription-manager identity --regenerate --force
Registering to: subscription.rhn.stage.redhat.com:443/subscription <===== UNEXPECTED
Username: stage_auto_testuser1
Password: 
Identity certificate has been regenerated.
[root@jsefler-7 ~]#


Actual results:
  stdout from identity includes "Registering to:"...

Expected results:
  stdout from identity should exclude "Registering to:"...

Additional info:

Comment 1 vritant 2015-08-27 18:17:55 UTC
*** Bug 1256960 has been marked as a duplicate of this bug. ***

Comment 2 vritant 2015-08-27 18:19:10 UTC
*** Bug 1254578 has been marked as a duplicate of this bug. ***

Comment 3 vritant 2015-08-27 18:20:14 UTC
*** Bug 1254353 has been marked as a duplicate of this bug. ***

Comment 7 Chris "Ceiu" Rog 2015-09-02 17:22:05 UTC
commit 1dd77a0892bc814e62a07025d9f9714da4362ceb
Author: Vritant Jain <vrjain>
Date:   Thu Aug 27 14:24:30 2015 -0400

    1254349: move Resgistering to message

Comment 9 Shwetha Kallesh 2015-09-03 09:09:39 UTC
Marking verified!!

[root@dhcp35-24 ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 2.0.6-1
subscription management rules: 5.16
subscription-manager: 1.15.9-8.el7
python-rhsm: 1.15.4-4.el7

[root@dhcp35-24 ~]# subscription-manager register  --org admin --serverurl 10.70.35.150:8443/candlepin
Registering to: 10.70.35.150:8443/candlepin
Username: admin
Password: 
The system has been registered with ID: 37a6cef2-3622-4816-8089-639a89773cbd 
[root@dhcp35-24 ~]# subscription-manager identity --regenerate --force
Username: admin
Password: 
Identity certificate has been regenerated.

Comment 10 errata-xmlrpc 2015-11-19 11:50:44 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.

https://rhn.redhat.com/errata/RHBA-2015-2122.html