RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 916362 - Display appropriate message when we query for service-level of a machine when already registered to another
Summary: Display appropriate message when we query for service-level of a machine when...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: subscription-manager
Version: 7.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: candlepin-bugs
QA Contact: IDM QE LIST
URL:
Whiteboard:
Depends On:
Blocks: rhsm-rhel70
TreeView+ depends on / blocked
 
Reported: 2013-02-27 22:36 UTC by Sharath Dwaral
Modified: 2015-03-23 01:14 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-01-17 21:28:04 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Sharath Dwaral 2013-02-27 22:36:13 UTC
Description of problem:

There should be an appropriate message diaplayed when we attempt to query service leve of another server when already register to another

Version-Release number of selected component (if applicable):
# rpm -qa | egrep "subscription-manager|python-rhsm"
python-rhsm-1.8.3-1.el7.x86_64
subscription-manager-gui-1.8.3-1.el7.x86_64
subscription-manager-migration-1.8.3-1.el7.x86_64
subscription-manager-debuginfo-1.8.3-1.el7.x86_64
subscription-manager-1.8.3-1.el7.x86_64
subscription-manager-firstboot-1.8.3-1.el7.x86_64
python-rhsm-debuginfo-1.8.3-1.el7.x86_64

How reproducible:
Always

Steps to Reproduce:

# cat /etc/rhsm/rhsm.conf | grep hostname
# Server hostname:
hostname=fsharath-candlepin.usersys.redhat.com
proxy_hostname =

# subscription-manager identity
This system is not yet registered. Try 'subscription-manager register --help' for more information.

# subscription-manager register
Username: testuser1
Password: 
Organization: snowwhite
The system has been registered with id: 30b164f5-1082-4fe3-bf41-dba6627c93c6 

# subscription-manager service-level --serverurl subscription.rhn.redhat.com:443/subscription
tlsv1 alert unknown ca

# subscription-manager service-level --serverurl subscription.rhn.redhat.com:443/subscription --list
tlsv1 alert unknown ca

Actual results:

AS shown above

Expected results:

Appropriate error message such as "You are already registered to a different system" should be displayed instead of cert error. 

Additional info:

Comment 1 William Poteat 2013-07-22 12:49:58 UTC
This needs to be handled at the point where the SSL error is first caught.

The suggested solution is not proper. It takes a known scenario, gets a generic error message, and wants to change it into a specific one. This error may be thrown for many reasons, not just the one in this bug.

Logging the stack and then producing an output message more like "There is a certificate credential issue between this unit and the entitlement server. Please view the log at /var/log/rhsm/rhsm.log for additional details."

Comment 3 Carter Kozak 2014-01-17 21:28:04 UTC
This is working as expected because the consumer cert is being used for verification.  You should have supplied a username and password for the serverurl supplied.


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