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 1480760 - [RFE] Specify "X-Correlation-ID" header for log correlation when making REST calls to Candlepin
Summary: [RFE] Specify "X-Correlation-ID" header for log correlation when making REST ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Subscription Management
Version: 6.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: Justin Sherrill
QA Contact: Sanket Jagtap
URL:
Whiteboard:
: 1431777 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-08-11 20:05 UTC by Craig Donnelly
Modified: 2020-10-21 14:44 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-02-21 16:54:37 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 20488 0 Normal Closed Specify "X-Correlation-ID" header for log correlation when making REST calls to Candlepin 2020-10-21 14:43:53 UTC

Description Craig Donnelly 2017-08-11 20:05:38 UTC
Description of problem:

When making REST calls to Candlepin the "X-Correlation-ID" request header should be set. This header can be used to specify a correlation id that will be printed out with every log message in Candlepin. This will make it easy to correlate requests from the Foreman logs with the Candlepin logs. Support for this header was added in Candlepin 2.0.

Version-Release number of selected component (if applicable):
6.3.0


Additional info:
This should be included for assistance in troubleshooting cross-component issues, so that we can track a single request or action across all components.

Comment 3 Satellite Program 2017-09-20 04:14:53 UTC
Upstream bug assigned to jsherril

Comment 4 Satellite Program 2017-09-26 18:16:56 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/20488 has been resolved.

Comment 5 Sanket Jagtap 2017-12-12 09:20:40 UTC
Build: Satellite 6.3.0 snap28


The request send to satellite is reflected in the candlepin log in csid field
which would be helpful while dealing with cross component issues

production.log
2017-12-12 04:16:32 431a45c1 [app] [I] Started GET "/katello/api/v2/products/45" for 10.65.223.181 at 2017-12-12 04:16:32 -0500
2017-12-12 04:16:32 431a45c1 [app] [I] Processing by Katello::Api::V2::ProductsController#show as JSON
2017-12-12 04:16:32 431a45c1 [app] [I]   Parameters: {"api_version"=>"v2", "id"=>"45"}
2017-12-12 04:16:32 431a45c1 [app] [I] Current user: admin (administrator)


==> /var/log/candlepin/candlepin.log <==
2017-12-12 04:16:32,336 [thread=http-bio-8443-exec-8] [req=8ba82326-e597-4964-8171-092d1aa633f3, org=, csid=431a45c1] INFO  org.candlepin.common.filter.LoggingFilter - Request: verb=GET, uri=/candlepin/owners/Default_Organization/products/215223095592/?include=name&include=attributes.name&include=attributes.value&include=productContent.content.contentUrl&include=productContent.content.label&include=productContent.content.modifiedProductIds&include=productContent.content.type&include=productContent.content.id&include=productContent.content.name
2017-12-12 04:16:32,352 [thread=http-bio-8443-exec-8] [req=8ba82326-e597-4964-8171-092d1aa633f3, org=, csid=431a45c1] INFO  org.candlepin.common.filter.LoggingFilter - Response: status=200, content-type="application/json", time=16

Comment 6 Satellite Program 2018-02-21 16:54:37 UTC
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA.
> > 
> > For information on the advisory, and where to find the updated files, follow the link below.
> > 
> > If the solution does not work for you, open a new bug report.
> > 
> > https://access.redhat.com/errata/RHSA-2018:0336

Comment 7 Justin Sherrill 2020-10-21 14:44:27 UTC
*** Bug 1431777 has been marked as a duplicate of this bug. ***


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