Project

General

Profile

Bug #26350

production.log filled with too many no route errors for rhsm/consumer URLs for accessible_content calls

Added by Brad Buckingham over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
High
Category:
Subscriptions
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1595924

Description of problem:
production.log filled with too many no route errors for rhsm/consumer URLs for accessible_content calls

How reproducible:
Always

Steps to Reproduce:
Recently while analyzing a customer log, I saw a lot of Routing errors for the accessible_content api call similar to:

2018-06-20 03:37:05 81f8d85c [app] [I] Started GET "/rhsm/consumers/cfe19c3a-3250-4fec-98fe-785ed71eb6c5/accessible_content" for 169.36.64.55 at 2018-06-20 03:37:05 +0200
2018-06-20 03:37:05 81f8d85c [app] [F]
ActionController::RoutingError (No route matches [GET] "/rhsm/consumers/cfe19c3a-3250-4fec-98fe-785ed71eb6c5/accessible_content"):
lib/middleware/tagged_logging.rb:18:in `call'
  1. cat production.log | grep RoutingError | wc -l
    35954

Actual results:
Flooding of errors, about 36k in the production.log for one day.

Expected results:
No Route errors

Additional info:
When I randomly reviewed few content hosts, they were all rhel 7.1, 7.3 but note that I reviewed about 15 vs. 36k

Associated revisions

Revision 5be88e31 (diff)
Added by Brad Buckingham over 2 years ago

Fixes #26350 - proxy accessible_content to candlepin

Users are reporting the following in the logs during subscription-manager
refresh:

[I] Started GET "/rhsm/consumers/803c9cb8-60cc-416d-b05f-d1d034dff787/accessible_content" for 10.19.34.79 at 2019-03-13 16:17:41 -0400
[F]
ActionController::RoutingError (No route matches [GET] "/rhsm/consumers/803c9cb8-60cc-416d-b05f-d1d034dff787/accessible_content"):
lib/middleware/tagged_logging.rb:18:in `call'

This change will proxy the api call to candlepin resulting in:

[I] Started GET "/rhsm/consumers/803c9cb8-60cc-416d-b05f-d1d034dff787/accessible_content" for 10.19.34.79 at 2019-03-13 16:11:12 -0400
[I] Processing by Katello::Api::Rhsm::CandlepinProxiesController#get as JSON
[I] Parameters: {"id"=>"803c9cb8-60cc-416d-b05f-d1d034dff787"}
[I] Current user: 803c9cb8-60cc-416d-b05f-d1d034dff787 (regular user)
[I] Completed 200 OK in 67ms (Views: 0.2ms | ActiveRecord: 0.6ms)

History

#1 Updated by The Foreman Bot over 2 years ago

  • Assignee set to Brad Buckingham
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/8015 added

#2 Updated by Brad Buckingham over 2 years ago

  • Status changed from Ready For Testing to Closed

#3 Updated by Jonathon Turel over 2 years ago

  • Triaged changed from No to Yes
  • Target version set to Katello 3.12.0
  • Subject changed from production.log filled with too many no route errors for rhsm/consumer URLs for accessible_content calls to production.log filled with too many no route errors for rhsm/consumer URLs for accessible_content calls

Also available in: Atom PDF