Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1494816

Summary: pulp_rest debugs dont contain all debugs to pulp REST API
Product: Red Hat Satellite Reporter: Pavel Moravec <pmoravec>
Component: LoggingAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED WONTFIX QA Contact: Katello QA List <katello-qa-list>
Severity: low Docs Contact:
Priority: medium    
Version: 6.2.11Keywords: Triaged
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-03 19:17:49 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:

Description Pavel Moravec 2017-09-23 11:00:18 UTC
Description of problem:
When enabling pulp_rest debug logs per:

https://access.redhat.com/solutions/3001661

various pulp API calls are not logged. As an example, have the debugs enabled when publishing a Content View with one RPM repo. That creates and manipulates with 2 pulp repos, but debugs contain e.g. just one repo created.


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


How reproducible:
100%


Steps to Reproduce:
1. Enable pulp_rest debugs per that KCS
2. Create TEST Content View, add there one repo (e.g. Sat6 tools) and publish it
3. Once publish finishes, compare:

grep pulp_rest /var/log/foreman/production.log | grep TEST

with dynflow steps from the publish task.


Actual results:
pulp_rest logs miss various API calls to pulp - e.g. repository create API calls are missing there


Expected results:
the grep finds all the calls triggered by dynflow steps


Additional info:
I *think* the difference/problem is just in skipping to print POST data, like:

2017-09-23 12:52:02  [katello/pulp_rest] [D] RestClient.post "https://pmoravec-sat62-rhel7.gsslab.brq2.redhat.com/pulp/api/v2/repositories/", 1536 byte(s) length, "Accept"=>"*/*; q=0.5, application/xml", "Accept-Encoding"=>"gzip, deflate", "Content-Length"=>"1536", "accept"=>"application/json", "content_type"=>"application/json"
 | \n# => 201 Created | application/json 599 bytes
 |

where the pulp repo name is hidden only in the POST data that are not printed here; shorter POST data like:

2017-09-23 12:52:02  [katello/pulp_rest] [D] RestClient.post "https://pmoravec-sat62-rhel7.gsslab.brq2.redhat.com/pulp/api/v2/repositories/Default_Organization-Library-DEBUGTEST-Red_Hat_Enterprise_Linux_Server-Red_Hat_Satellite_Tools_6_2_for_RHEL_7_Server_RPMs_x86_64/actions/associate/", "{\"source_repo_id\":\"Default_Organization-DEBUGTEST-1_0-Red_Hat_Enterprise_Linux_Server-Red_Hat_Satellite_Tools_6_2_for_RHEL_7_Server_RPMs_x86_64\",\"criteria\":{\"type_ids\":[\"rpm\"],\"filters\":{},\"fields\":{\"unit\":[\"name\",\"epoch\",\"version\",\"release\",\"arch\",\"checksumtype\",\"checksum\"]}}}", "Accept"=>"*/*; q=0.5, application/xml", "Accept-Encoding"=>"gzip, deflate", "Content-Length"=>"278", "accept"=>"application/json", "content_type"=>"application/json"
 | \n# => 202 Accepted | application/json 172 bytes
 |

are printed.

Comment 3 Bryan Kearney 2018-10-03 19:17:49 UTC
Thank you for your interest in Satellite 6. We have evaluated this request, and while we recognize that it is a valid request, we do not expect this to be implemented in the product in the foreseeable future. This is due to other priorities for the product, and not a reflection on the request itself. We are therefore closing this out as WONTFIX. If you have any concerns about this, please do not reopen. Instead, feel free to contact Rich Jerrido or Bryan Kearney. Thank you.