Bug #26350
production.log filled with too many no route errors for rhsm/consumer URLs for accessible_content calls
Status:
Closed
Priority:
High
Assignee:
Category:
Subscriptions
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Pull request:
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] [F]
ActionController::RoutingError (No route matches [GET] "/rhsm/consumers/cfe19c3a-3250-4fec-98fe-785ed71eb6c5/accessible_content"): |
lib/middleware/tagged_logging.rb:18:in `call' |
- 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
History
#1
Updated by The Foreman Bot about 3 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 about 3 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset katello|5be88e31fa846d19b43f5ba0783737697fa73444.
#3
Updated by Jonathon Turel about 3 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
Fixes #26350 - proxy accessible_content to candlepin
Users are reporting the following in the logs during subscription-manager
[I] Started GET "/rhsm/consumers/803c9cb8-60cc-416d-b05f-d1d034dff787/accessible_content" for 10.19.34.79 at 2019-03-13 16:17:41 -0400refresh:
[F]
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)