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: VERIFIED
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-08-03 17:35 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:
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

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


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