Bug 1136081
Summary: | traceback when registering a content host | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Tomas Lestach <tlestach> | ||||||||
Component: | API | Assignee: | Christine Fouant <cfouant> | ||||||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | sthirugn <sthirugn> | ||||||||
Severity: | high | Docs Contact: | |||||||||
Priority: | unspecified | ||||||||||
Version: | 6.0.4 | CC: | bbuckingham, bkearney, cwelton, dlobatog, ggainey, mmccune, sthirugn, tlestach | ||||||||
Target Milestone: | Unspecified | Keywords: | Triaged | ||||||||
Target Release: | Unused | ||||||||||
Hardware: | Unspecified | ||||||||||
OS: | Unspecified | ||||||||||
URL: | http://projects.theforeman.org/issues/10536 | ||||||||||
Whiteboard: | |||||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||||
Doc Text: | Story Points: | --- | |||||||||
Clone Of: | Environment: | ||||||||||
Last Closed: | 2015-08-12 16:05:19 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: | |||||||||||
Attachments: |
|
Description
Tomas Lestach
2014-09-01 15:35:28 UTC
Created redmine issue http://projects.theforeman.org/issues/10536 from this bug Moving to POST since upstream bug http://projects.theforeman.org/issues/10536 has been closed ------------- Christine Fouant Applied in changeset commit:katello|b5b37d33cb9aeae12f2527d77f815667f282f941. Failed in Sat 6.1 GA Snap 5. I dont see any traceback while registering a content host using: # subscription-manager register --org="Default_Organization" --activationkey=rhel7partialak But when I use the api as mentioned in the bug description, I got the same error as mentioned in the bug description: # curl -s -H "Content-Type:application/json" -H "Accept:application/json,version=2" -k -u admin:changeme -X POST -d'{"name":"mysystem", "facts":{"fact1":1}, "type":"system", "organization_id":1}' https://$sat6host/katello/api/systems **curl command ran without any errors** But I saw the error in ==> /var/log/foreman/production.log <== [ERROR 2015-05-21 15:16:27 pulp_rest #5206] RestClient.get "https://ibm-x3250m4-05.lab.eng.rdu2.redhat.com/pulp/api/v2/consumers/39ebef93-b66f-452e-994d-c8d09834043a/profiles/rpm//", "Accept"=>"*/*; q=0.5, application/xml", "Accept-Encoding"=>"gzip, deflate", "Authorization"=>"OAuth oauth_consumer_key=\"katello\", oauth_nonce=\"04UhCDnEsCLaEU07LjJFpuPA8SlfFoyhRLodllg0Mg\", oauth_signature=\"KFo52K5U%2FBt4B04rABLTiQT1WfI%3D\", oauth_signature_method=\"HMAC-SHA1\", oauth_timestamp=\"1432235787\", oauth_version=\"1.0\"", "accept"=>"application/json", "content_type"=>"application/json", "pulp-user"=>"admin-2201e0e4" | \n# => 404 NotFound | application/json 714 bytes | 2015-05-21 15:16:27 [I] Failed to find profile for 39ebef93-b66f-452e-994d-c8d09834043a: 404 Resource Not Found: {"http_request_method": "GET", "exception": null, "error_message": "Missing resource(s): profile_id={'content_type': u'rpm', 'consumer_id': u'39ebef93-b66f-452e-994d-c8d09834043a'}", "_href": "/pulp/api/v2/consumers/39ebef93-b66f-452e-994d-c8d09834043a/profiles/rpm/", "http_status": 404, "error": {"code": "PLP0009", "data": {"resources": {"profile_id": {"content_type": "rpm", "consumer_id": "39ebef93-b66f-452e-994d-c8d09834043a"}}}, "description": "Missing resource(s): profile_id={'content_type': u'rpm', 'consumer_id': u'39ebef93-b66f-452e-994d-c8d09834043a'}", "sub_errors": []}, "traceback": null, "resources": {"profile_id": {"content_type": "rpm", "consumer_id": "39ebef93-b66f-452e-994d-c8d09834043a"}}}} Foreman-debug attached. This fix will require runcible gem to be updated >= 1.3.5 https://github.com/Katello/runcible/pull/144 Delivered in Snap10 Verified in Sat 6.1 GA Snap 11. I dont see `RestClient.get` error anymore as mentioned in Comment 8. I verified both using subscription manager and the curl command as mentioned in Comment 8. See verification logs attached. Created attachment 1049569 [details]
production.log using subscription-manager
Created attachment 1049570 [details]
production.log using curl command
This bug was fixed in Satellite 6.1.1 which was delivered on 12 August, 2015. |