Red Hat Satellite engineering is moving the tracking of its product development work on Satellite 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 "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. 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 "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-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 799356 - systems that have been deleted that are still calling back to server generate stack trace
Summary: systems that have been deleted that are still calling back to server generate...
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Infrastructure
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: Unspecified
Assignee: Petr Chalupa
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-03-02 15:05 UTC by Tom McKay
Modified: 2019-09-26 13:31 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-09-19 18:13:45 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Tom McKay 2012-03-02 15:05:19 UTC
There are cases when a client system has been deleted in katello, but that client still exists and is "phoning home" via rhsmcertd still. In this case, the following call will be made:


% curl -k -u admin:admin https://KATELLOSERVER/katello/api/consumers/8f9ca2f2-1ef9-496e-be5a-835996326b3c/certificates/serials
-> {"displayMessage":"Consumer 8f9ca2f2-1ef9-496e-be5a-835996326b3c has been deleted","deletedId":"8f9ca2f2-1ef9-496e-be5a-835996326b3c"}

This query and its response are correct and valid. However, in production.log there is a stack trace like below. It would be better to rescue the error and print the response to the log.

#[DEBUG: 2012-03-02 08:41:22 #21095] Setting locale: en
#[DEBUG: 2012-03-02 08:41:22 #21095] User 8f9ca2f2-1ef9-496e-be5a-835996326b3c authenticated: certificate
#[DEBUG: 2012-03-02 08:41:22 #21095] Setting current user thread-local variable to 8f9ca2f2-1ef9-496e-be5a-835996326b3c
#[DEBUG: 2012-03-02 08:41:22 #21095] Sending GET request to Candlepin: /consumers/8f9ca2f2-1ef9-496e-be5a-835996326b3c/certificates/serials
#[DEBUG: 2012-03-02 08:41:22 #21095] Setting current user thread-local variable to nil
#[ERROR: 2012-03-02 08:41:22 #21095] RestClient::Gone: 410 Gone
#/usr/lib/ruby/gems/1.8/gems/rest-client-1.6.1/lib/restclient/abstract_response.rb:48:in `return!'
#/usr/lib/ruby/gems/1.8/gems/rest-client-1.6.1/lib/restclient/request.rb:220:in `process_result'
#/usr/lib/ruby/gems/1.8/gems/rest-client-1.6.1/lib/restclient/request.rb:169:in `transmit'
#/usr/lib/ruby/1.8/net/http.rb:543:in `start'
#/usr/lib/ruby/gems/1.8/gems/rest-client-1.6.1/lib/restclient/request.rb:166:in `transmit'
#/usr/lib/ruby/gems/1.8/gems/rest-client-1.6.1/lib/restclient/request.rb:60:in `execute'
#/usr/lib/ruby/gems/1.8/gems/rest-client-1.6.1/lib/restclient/request.rb:31:in `execute'
#/usr/lib/ruby/gems/1.8/gems/rest-client-1.6.1/lib/restclient/resource.rb:54:in `get'
#/usr/share/katello/lib/resources/candlepin.rb:36:in `get'
#/usr/share/katello/app/controllers/api/candlepin_proxies_controller.rb:20:in `get'

Comment 3 Petr Chalupa 2013-01-02 11:46:20 UTC
fixed in 41ad256a5246e0d6e5797188e7ba92e38fb83621

Comment 4 Mike McCune 2013-09-19 18:13:45 UTC
These bugs have been resolved in upstream projects for a period of months so I'm mass-closing them as CLOSED:UPSTREAM.  If this is a mistake feel free to re-open.


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