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 2173159 - Error logged in production.log while viewing the job invocation
Summary: Error logged in production.log while viewing the job invocation
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Remote Execution
Version: 6.13.0
Hardware: All
OS: All
unspecified
low
Target Milestone: 6.14.0
Assignee: Evgeni Golov
QA Contact: Peter Ondrejka
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-02-24 10:56 UTC by Nagoor Shaik
Modified: 2023-11-08 14:18 UTC (History)
4 users (show)

Fixed In Version: foreman_remote_execution-9.1.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-11-08 14:18:33 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 36108 0 Normal Closed No route matches [GET] "/javascripts/charts.js" when loading a job invocation page 2023-02-24 12:57:04 UTC
Red Hat Issue Tracker SAT-16417 0 None None None 2023-03-10 12:46:10 UTC
Red Hat Product Errata RHSA-2023:6818 0 None None None 2023-11-08 14:18:48 UTC

Description Nagoor Shaik 2023-02-24 10:56:24 UTC
Description of problem:
Following error is logged while viewing the job invocations page

~~~
==> /var/log/foreman/production.log <==
2023-02-24T16:17:37 [I|app|f320b6f8] Started GET "/job_invocations/1" for 192.168.100.105 at 2023-02-24 16:17:37 +0530
2023-02-24T16:17:37 [I|app|f320b6f8] Processing by JobInvocationsController#show as HTML
2023-02-24T16:17:37 [I|app|f320b6f8]   Parameters: {"id"=>"1"}
2023-02-24T16:17:37 [I|app|a3b8e17e] Started GET "/notification_recipients" for 10.74.16.105 at 2023-02-24 16:17:37 +0530
2023-02-24T16:17:37 [I|app|a3b8e17e] Processing by NotificationRecipientsController#index as JSON
2023-02-24T16:17:37 [I|app|f320b6f8]   Rendered /usr/share/gems/gems/foreman_remote_execution-8.2.0/app/views/job_invocations/show.html.erb within layouts/application (Duration: 97.2ms | Allocations: 110076)
2023-02-24T16:17:37 [I|app|a3b8e17e] Completed 200 OK in 42ms (Views: 0.1ms | ActiveRecord: 15.2ms | Allocations: 16277)
2023-02-24T16:17:37 [I|app|f320b6f8]   Rendered layouts/base.html.erb (Duration: 32.9ms | Allocations: 38552)
2023-02-24T16:17:37 [I|app|f320b6f8]   Rendered layout layouts/application.html.erb (Duration: 135.7ms | Allocations: 161181)
2023-02-24T16:17:37 [I|app|f320b6f8] Completed 200 OK in 159ms (Views: 124.8ms | ActiveRecord: 16.7ms | Allocations: 169620)
2023-02-24T16:17:37 [I|app|55203bc0] Started GET "/javascripts/charts.js" for 10.74.16.105 at 2023-02-24 16:17:37 +0530
2023-02-24T16:17:37 [F|app|55203bc0]   
 55203bc0 | ActionController::RoutingError (No route matches [GET] "/javascripts/charts.js"):
 55203bc0 |   
 55203bc0 | lib/foreman/middleware/logging_context_request.rb:11:in `call'
 55203bc0 | katello (4.7.0.9) lib/katello/prevent_json_parsing.rb:12:in `call'
2023-02-24T16:17:37 [I|app|cf392ff4] Started GET "/notification_recipients" for 10.74.16.105 at 2023-02-24 16:17:37 +0530
2023-02-24T16:17:37 [I|app|cf392ff4] Processing by NotificationRecipientsController#index as JSON
~~~

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

How reproducible:
100%

Steps to Reproduce:
1. Trigger a Job through Satellite 
2. Navigate to Monitor > Jobs > click on the Job
3. Monitor /var/log/foreman/production.log while clicking on the job

Following errors are observed
~~~
2023-02-24T16:17:37 [I|app|55203bc0] Started GET "/javascripts/charts.js" for 10.74.16.105 at 2023-02-24 16:17:37 +0530
2023-02-24T16:17:37 [F|app|55203bc0]   
 55203bc0 | ActionController::RoutingError (No route matches [GET] "/javascripts/charts.js"):
 55203bc0 |   
 55203bc0 | lib/foreman/middleware/logging_context_request.rb:11:in `call'
 55203bc0 | katello (4.7.0.9) lib/katello/prevent_json_parsing.rb:12:in `call'
~~~

Actual results:
ActionController::RoutingError is seen in the logs

Expected results:
No errors should be observed

Additional info:

Comment 1 Bryan Kearney 2023-02-24 16:03:42 UTC
Upstream bug assigned to egolov

Comment 2 Bryan Kearney 2023-02-24 16:03:43 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/36108 has been resolved.

Comment 3 Bryan Kearney 2023-02-24 16:03:57 UTC
Upstream bug assigned to egolov

Comment 4 Bryan Kearney 2023-02-24 16:03:59 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/36108 has been resolved.

Comment 5 Peter Ondrejka 2023-06-14 13:45:19 UTC
Verified on Sat 6.14 sn 1, the routing error no longer occurrs

Comment 8 errata-xmlrpc 2023-11-08 14:18:33 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 (Important: Satellite 6.14 security and bug fix update), 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-2023:6818


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