| Summary: | Need clearer error message when register with system name exceeding max characters. | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Community] Candlepin | Reporter: | qianzhan | ||||
| Component: | candlepin | Assignee: | pjonasti | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Katello QA List <katello-qa-list> | ||||
| Severity: | low | Docs Contact: | |||||
| Priority: | low | ||||||
| Version: | 0.9.23 | CC: | csnyder, dsarman, it-eng-bz, jsefler, pjonasti, redakkan, skallesh, vrjain, weiliu | ||||
| Target Milestone: | --- | Keywords: | EasyFix, Reopened, Triaged | ||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | candlepin-0.9.23.4-1, candlepin-2.0.22-1, candlepin-0.9.51.21-1, candlepin-0.9.54.19-1 | Doc Type: | If docs needed, set a value | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2017-01-30 09:22:25 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: | |||||
| Attachments: |
|
||||||
|
Description
qianzhan
2016-08-29 07:15:26 UTC
Created attachment 1195187 [details]
rhsm.log
Candlepin should be validating the length of the consumer name before attempting to create the consumer. This issue still exists when test RHEL-6.9-20161201.0 against stage,so reopen this issue Now should be fixed. (In reply to Wei Liu from comment #4) > This issue still exists when test RHEL-6.9-20161201.0 against stage,so > reopen this issue The fix for this bug was implemented in Candlepin version > candlepin-2.0.21-1 It was not a subscription-manager fix and is independent of a RHEL compose. The reason why you still observe the failure against stage is because it is currently running older version candlepin-0.9.51.20-1. Here is a verification of the fix against the current master candlepin using the current sub-man build for RHEL69... [root@jsefler-rhel6 ~]# subscription-manager version server type: This system is currently not registered. subscription management server: 2.0.21-1 subscription management rules: 5.20 subscription-manager: 1.18.6-1.el6 python-rhsm: 1.18.6-1.el6 [root@jsefler-rhel6 ~]# [root@jsefler-rhel6 ~]# subscription-manager register --username=testuser1 --password=password --org=admin --name="256_characters_6789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456" Registering to: jsefler-candlepin.usersys.redhat.com:8443/candlepin Name of the consumer should be shorter than 255 characters. [root@jsefler-rhel6 ~]# [root@jsefler-rhel6 ~]# subscription-manager register --username=testuser1 --password=password --org=admin --name="255_characters_678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345" Registering to: jsefler-candlepin.usersys.redhat.com:8443/candlepin The system has been registered with ID: a72437b9-6813-4bc1-910f-f1676716768f [root@jsefler-rhel6 ~]# FailedQA - the error message is not yet accurate. Change 255 to 256. |