Bug 912014

Summary: Error message is not friendly when register to SAM use system name with invalid characters
Product: [Retired] Subscription Asset Manager Reporter: qianzhan
Component: katelloAssignee: Katello Bug Bin <katello-bugs>
Status: CLOSED WONTFIX QA Contact: SAM QE List <sam-qe-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 1.3CC: ldai, liliu, qianzhan, sclewis, sgao, shihliu, sthirugn, tomckay
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: 2017-06-26 20:32:57 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-02-17 08:36:06 UTC
Description of problem:
Error message is not friendly when register to SAM use system name with invalid characters

Version-Release number of selected component (if applicable):
Test client:
python-rhsm-1.1.8-1.el6.x86_64
subscription-manager-1.1.23-1.el6.x86_64
subscription-manager-firstboot-1.1.23-1.el6.x86_64
subscription-manager-gui-1.1.23-1.el6.x86_64

SAM Server:
katello-candlepin-cert-key-pair-1.0-1.noarch
katello-certs-tools-1.2.1-1h.el6_3.noarch
katello-cli-1.2.1-12h.el6_3.noarch
katello-cli-common-1.2.1-12h.el6_3.noarch
katello-common-1.2.1-15h.el6_3.noarch
katello-configure-1.2.3-3h.el6_3.noarch
katello-glue-candlepin-1.2.1-15h.el6_3.noarch
katello-headpin-1.2.1-15h.el6_3.noarch
katello-headpin-all-1.2.1-15h.el6_3.noarch
katello-selinux-1.2.1-2h.el6_3.noarch
candlepin-0.7.23-1.el6_3.noarch
candlepin-tomcat6-0.7.23-1.el6_3.noarch
thumbslug-0.0.28-1.el6_3.noarch
thumbslug-selinux-0.0.28-1.el6_3.noarch

How reproducible:
always

Steps to Reproduce:
1. config test client to register to SAM
[root@dhcp-65-26 ~]# cat /etc/rhsm/rhsm.conf
hostname = samserv.redhat.com   ---> IP:10.66.12.203
baseurl=https://samserv.redhat.com:8088
ca_cert_dir = /etc/rhsm/ca/
repo_ca_cert = %(ca_cert_dir)scandlepin-local.pem

2. Register to SAM server use system name with invalid characters:
[root@dhcp-65-24 ~]# subscription-manager register --username=admin --password=*** --name=test+?test

Actual results:
After above step 2, the output is as below:
Problem creating consumer Consumer [id = 8ac28d4e3c8788c3013ce1d7b9a97baa, type = ConsumerType [id=1000, label=system], getName() = test56+?test]

Expected results:
After above step 2, the output should be as below:
System name cannot contain most special characters.

Additional info:

Comment 1 Scott Lewis 2013-02-25 15:51:30 UTC
Moving to appropriate release bucket

Comment 2 Bryan Kearney 2017-06-26 20:32:57 UTC
The release of Satellite 5.8 we are deprecating the support of Subscription Asset Manager. The release notes for 5.8 can be found at https://access.redhat.com/documentation/en-us/red_hat_satellite/5.8/pdf/release_notes/Red_Hat_Satellite-5.8-Release_Notes-en-US.pdf.

I am therefore closing out this bug as WONTFIX. If you believe this to be an error, please feel free tor each out to either Rich Jerrido or Bryan Kearney. Thank you!