Bug 995292
Summary: | Error to unregister rhel 5.10 from SAM server | ||||||
---|---|---|---|---|---|---|---|
Product: | [Retired] Subscription Asset Manager | Reporter: | gaoshang <sgao> | ||||
Component: | katello | Assignee: | Katello Bug Bin <katello-bugs> | ||||
Status: | CLOSED WONTFIX | QA Contact: | SAM QE List <sam-qe-list> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 1.3 | CC: | alikins, awood, bkearney, liliu, pjanda, qianzhan, 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:31:59 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 | ||||||
Attachments: |
|
Description
gaoshang
2013-08-09 01:39:09 UTC
Created attachment 784709 [details]
katello-debug log info attached
katello-debug log info
@gaoshang - Please always include output of katello-devel as an attachment. This script creates a .tar.gz file with all relevant logs and config files. Please mark this attachment private. Thank you! (In reply to Tom McKay from comment #2) > @gaoshang - Please always include output of katello-devel as an attachment. > This script creates a .tar.gz file with all relevant logs and config files. > Please mark this attachment private. Thank you! Hi Tom, thanks for your infomation, but I still have a little problem on how to run "katello-devel", pls see following command, seems like katello-devel is not installed at all, so what can we do to get required info? [root@samserv katello]# katello- katello-configure katello-debug-certificates katello-selinux-enable katello-ssl-tool katello-configure-answer katello-generate-passphrase katello-selinux-relabel katello-sudo-ssl-tool katello-debug katello-passwd katello-service katello-upgrade [root@samserv katello]# rpm -qa | grep katello katello-common-1.4.3-6.el6sam_splice.noarch katello-selinux-1.4.4-2.el6sat.noarch katello-glue-candlepin-1.4.3-6.el6sam_splice.noarch katello-configure-1.4.4-2.el6sat.noarch katello-cli-1.4.3-5.el6sat.noarch signo-katello-0.0.10-2.el6sat.noarch katello-headpin-all-1.4.3-6.el6sam_splice.noarch katello-cli-common-1.4.3-5.el6sat.noarch katello-candlepin-cert-key-pair-1.0-1.noarch katello-certs-tools-1.4.2-2.el6sat.noarch katello-glue-elasticsearch-1.4.3-6.el6sam_splice.noarch katello-headpin-1.4.3-6.el6sam_splice.noarch SAM installed by command: yum install -y katello-headpin-all Running latest RHEL510 canidate subman against a standalone cp, this seems to work ok. However.. 1) client ends up making requests for that consumer after the consumer has been deleted (it try's the clients entitlement status to reflect unregistration, but that process now involves making a request to the server using consumer auth, which will now cause a 401. 5.10subman and latest candlepin seem okay with this and return a 401 and handle it. 2) client's handling of 401 errors will be different depending on the body of the 401 response. Basically, if the body is valid JSON with the error info, this ends up raising a RestlibException If the body is empty or otherwise fails to parse as json, this is going to raise a NetworkException. And for that code path, NetworkException ends up showing the error message referencing the log. Based on the logs, I'd guess that sam/katello is not returning a JSON error blob in the body for the 401, but just the string "No Credentials provided" So, katello should return that 401 as a JSON blob. subscription-manager shouldn't make those requests in the first place. subscription-manager should not depend on the body of the 401 in it's exception handling. Based on comment #4, the most expedient fix would be for Katello to return a 401 with a response body of { "displayMessage" : "Invalid credentials." } I have filed bug #997935 to address this issue in subscription-manager. 401s in katello return this value No Credentials provided[root@bkearney ~]# curl -k -u "bkearney:bkearney" https://sam13/sam/api/consumers {"displayMessage":"Invalid credentials","errors":["Invalid credentials"]}[root@bkearney ~]# I have verified against SAM-1.3-snapshot4, and the bug still exists. We will verify it again when SAM-1.3-snapshot5 comes out. According to my tests bug exists still in SAM-1.3-snapshot5 When I test RHEL5.11 against SAM, the bug still exists, and the error message also prompts when execute "subscription-manager clean": [root@localhost ~]# subscription-manager register Username: admin Password: The system has been registered with ID: ce84d9d5-8c75-462a-b25c-35f8c534e6ea [root@localhost ~]# subscription-manager clean All local data removed Error updating system data on the server, see /var/log/rhsm/rhsm.log for more details. 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! |