Project

General

Profile

Bug #25840

Telemetry for LDAP does not work

Added by Marek Hulán 8 months ago. Updated 8 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Performance
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

Getting following in the log with ldap logger and debug log level

Could not log "group_list.ldap_fluff" event. LocalJumpError: no block given (yield)

/home/ares/Projekty/Zdrojaky/foreman/app/services/foreman/telemetry_helper.rb:27:in `telemetry_duration_histogram'
/home/ares/Projekty/Zdrojaky/foreman/config/initializers/ldap_instrumentation.rb:12:in `block in define_log'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.2.1/lib/active_support/subscriber.rb:101:in `finish'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.2.1/lib/active_support/log_subscriber.rb:84:in `finish'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.2.1/lib/active_support/notifications/fanout.rb:104:in `finish'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.2.1/lib/active_support/notifications/fanout.rb:48:in `block in finish'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.2.1/lib/active_support/notifications/fanout.rb:48:in `each'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.2.1/lib/active_support/notifications/fanout.rb:48:in `finish'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.2.1/lib/active_support/notifications/instrumenter.rb:44:in `finish_with_state'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.2.1/lib/active_support/notifications/instrumenter.rb:29:in `instrument'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.2.1/lib/active_support/notifications.rb:168:in `instrument'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/ldap_fluff-0.4.7/lib/ldap_fluff/ldap_fluff.rb:93:in `instrument'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/ldap_fluff-0.4.7/lib/ldap_fluff/ldap_fluff.rb:47:in `group_list'
/home/ares/Projekty/Zdrojaky/foreman/app/models/auth_sources/auth_source_ldap.rb:128:in `update_usergroups'
/home/ares/Projekty/Zdrojaky/foreman/app/models/user.rb:245:in `block in try_to_login'
/home/ares/Projekty/Zdrojaky/foreman/app/models/concerns/foreman/thread_session.rb:100:in `as'
/home/ares/Projekty/Zdrojaky/foreman/app/models/concerns/foreman/thread_session.rb:106:in `as_anonymous_admin'
/home/ares/Projekty/Zdrojaky/foreman/app/models/user.rb:237:in `try_to_login'
/home/ares/Projekty/Zdrojaky/foreman/app/controllers/users_controller.rb:85:in `login'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.2.1/lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.2.1/lib/abstract_controller/base.rb:194:in `process_action'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.2.1/lib/action_controller/metal/rendering.rb:30:in `process_action'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.2.1/lib/abstract_controller/callbacks.rb:42:in `block in process_action'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:109:in `block in run_callbacks'
/home/ares/Projekty/Zdrojaky/foreman/app/controllers/concerns/application_shared.rb:15:in `set_timezone'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks'
/home/ares/Projekty/Zdrojaky/foreman/app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks'
/home/ares/Projekty/Zdrojaky/foreman/app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/audited-4.8.0/lib/audited/sweeper.rb:14:in `around'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/audited-4.8.0/lib/audited/sweeper.rb:14:in `around'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:136:in `run_callbacks'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.2.1/lib/abstract_controller/callbacks.rb:41:in `process_action'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.2.1/lib/action_controller/metal/rescue.rb:22:in `process_action'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.2.1/lib/action_controller/metal/instrumentation.rb:34:in `block in process_action'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.2.1/lib/active_support/notifications.rb:168:in `block in instrument'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.2.1/lib/active_support/notifications/instrumenter.rb:23:in `instrument'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.2.1/lib/active_support/notifications.rb:168:in `instrument'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.2.1/lib/action_controller/metal/instrumentation.rb:32:in `process_action'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.2.1/lib/action_controller/metal/params_wrapper.rb:256:in `process_action'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activerecord-5.2.1/lib/active_record/railties/controller_runtime.rb:24:in `process_action'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.2.1/lib/abstract_controller/base.rb:134:in `process'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionview-5.2.1/lib/action_view/rendering.rb:32:in `process'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.2.1/lib/action_controller/metal.rb:191:in `dispatch'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.2.1/lib/action_controller/metal.rb:252:in `dispatch'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.2.1/lib/action_dispatch/routing/route_set.rb:52:in `dispatch'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.2.1/lib/action_dispatch/routing/route_set.rb:34:in `serve'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.2.1/lib/action_dispatch/journey/router.rb:52:in `block in serve'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.2.1/lib/action_dispatch/journey/router.rb:35:in `each'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.2.1/lib/action_dispatch/journey/router.rb:35:in `serve'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.2.1/lib/action_dispatch/routing/route_set.rb:840:in `call'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.2.1/lib/action_dispatch/middleware/static.rb:127:in `call'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.2.1/lib/action_dispatch/middleware/static.rb:127:in `call'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/apipie-rails-0.5.14/lib/apipie/static_dispatcher.rb:65:in `call'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/bullet-5.9.0/lib/bullet/rack.rb:15:in `call'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/apipie-rails-0.5.14/lib/apipie/extractor/recorder.rb:137:in `call'
/home/ares/Projekty/Zdrojaky/foreman/lib/foreman/middleware/telemetry.rb:10:in `call'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/apipie-rails-0.5.14/lib/apipie/middleware/checksum_in_headers.rb:27:in `call'
/home/ares/Projekty/Zdrojaky/foreman/lib/foreman/middleware/catch_json_parse_errors.rb:9:in `call'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rack-openid-1.4.2/lib/rack/openid.rb:98:in `call'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rack-2.0.6/lib/rack/tempfile_reaper.rb:15:in `call'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rack-2.0.6/lib/rack/etag.rb:25:in `call'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rack-2.0.6/lib/rack/conditional_get.rb:38:in `call'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rack-2.0.6/lib/rack/head.rb:12:in `call'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.2.1/lib/action_dispatch/http/content_security_policy.rb:18:in `call'
/home/ares/Projekty/Zdrojaky/foreman/lib/foreman/middleware/logging_context_session.rb:22:in `call'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rack-2.0.6/lib/rack/session/abstract/id.rb:232:in `context'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rack-2.0.6/lib/rack/session/abstract/id.rb:226:in `call'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.2.1/lib/action_dispatch/middleware/cookies.rb:670:in `call'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activerecord-5.2.1/lib/active_record/migration.rb:559:in `call'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.2.1/lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:98:in `run_callbacks'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.2.1/lib/action_dispatch/middleware/callbacks.rb:26:in `call'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.2.1/lib/action_dispatch/middleware/executor.rb:14:in `call'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.2.1/lib/action_dispatch/middleware/debug_exceptions.rb:61:in `call'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.2.1/lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.2.1/lib/rails/rack/logger.rb:38:in `call_app'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.2.1/lib/rails/rack/logger.rb:28:in `call'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/quiet_assets.rb:13:in `call'
/home/ares/Projekty/Zdrojaky/foreman/lib/foreman/middleware/logging_context_request.rb:11:in `call'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.2.1/lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.2.1/lib/action_dispatch/middleware/request_id.rb:27:in `call'
/home/ares/Projekty/Zdrojaky/katello/lib/katello/prevent_json_parsing.rb:12:in `call'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rack-2.0.6/lib/rack/method_override.rb:22:in `call'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rack-2.0.6/lib/rack/runtime.rb:22:in `call'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.2.1/lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.2.1/lib/action_dispatch/middleware/executor.rb:14:in `call'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.2.1/lib/action_dispatch/middleware/static.rb:127:in `call'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rack-2.0.6/lib/rack/sendfile.rb:111:in `call'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/secure_headers-6.0.0/lib/secure_headers/middleware.rb:13:in `call'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.2.1/lib/rails/engine.rb:524:in `call'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.2.1/lib/rails/railtie.rb:190:in `public_send'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.2.1/lib/rails/railtie.rb:190:in `method_missing'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rack-2.0.6/lib/rack/urlmap.rb:68:in `block in call'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rack-2.0.6/lib/rack/urlmap.rb:53:in `each'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rack-2.0.6/lib/rack/urlmap.rb:53:in `call'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/puma-3.12.0/lib/puma/configuration.rb:225:in `call'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/puma-3.12.0/lib/puma/server.rb:658:in `handle_request'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/puma-3.12.0/lib/puma/server.rb:472:in `process_client'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/puma-3.12.0/lib/puma/server.rb:332:in `block in run'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/puma-3.12.0/lib/puma/thread_pool.rb:133:in `block in spawn_thread'
/home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/logging-2.2.2/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context'

Related issues

Related to Foreman - Bug #23503: Error parsing telemetry settingClosed2018-05-04

Associated revisions

Revision 2509afcd (diff)
Added by Marek Hulán 8 months ago

Fixes #25840 - fix ldap logging

History

#1 Updated by The Foreman Bot 8 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/6406 added

#2 Updated by Tomer Brisker 8 months ago

  • Fixed in Releases 1.21.0 added

#3 Updated by Tomer Brisker 8 months ago

  • Related to Bug #23503: Error parsing telemetry setting added

#4 Updated by Tomer Brisker 8 months ago

  • Found in Releases 1.18.0 added
  • Fixed in Releases 1.20.2 added

#5 Updated by Marek Hulán 8 months ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF