Project

General

Profile

Actions

Bug #18621

closed

Undefined constant Katello::System

Added by Ondřej Pražák almost 8 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Hosts
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

There are permissions with :resource_type => 'Katello::System', they cause the following:

2017-02-22T08:26:06 b1a1bf6e [app] [W] unknown class Katello::System, ignoring
 | NameError: uninitialized constant Katello::System
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/activesupport-4.2.7.1/lib/active_support/inflector/methods.rb:263:in `const_get'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/activesupport-4.2.7.1/lib/active_support/inflector/methods.rb:263:in `block in constantize'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/activesupport-4.2.7.1/lib/active_support/inflector/methods.rb:259:in `each'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/activesupport-4.2.7.1/lib/active_support/inflector/methods.rb:259:in `inject'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/activesupport-4.2.7.1/lib/active_support/inflector/methods.rb:259:in `constantize'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/activesupport-4.2.7.1/lib/active_support/core_ext/string/inflections.rb:66:in `constantize'
 | /home/vagrant/projects/foreman/app/models/filter.rb:82:in `get_resource_class'
 | /home/vagrant/projects/foreman/app/models/permission.rb:20:in `block in with_translations'
 | /home/vagrant/projects/foreman/app/models/permission.rb:20:in `map'
 | /home/vagrant/projects/foreman/app/models/permission.rb:20:in `with_translations'
 | /home/vagrant/projects/foreman/app/models/permission.rb:16:in `resources_with_translations'
 | /home/vagrant/projects/foreman/app/views/filters/_form.html.erb:27:in `block in _316ecc4654720361dbb43f75dc552ea5'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/actionview-4.2.7.1/lib/action_view/helpers/capture_helper.rb:38:in `block in capture'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/actionview-4.2.7.1/lib/action_view/helpers/capture_helper.rb:202:in `with_output_buffer'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/actionview-4.2.7.1/lib/action_view/helpers/capture_helper.rb:38:in `capture'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/actionview-4.2.7.1/lib/action_view/helpers/form_helper.rb:444:in `form_for'
 | /home/vagrant/projects/foreman/app/helpers/form_helper.rb:281:in `form_for'
 | /home/vagrant/projects/foreman/app/views/filters/_form.html.erb:3:in `_316ecc4654720361dbb43f75dc552ea5'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/actionview-4.2.7.1/lib/action_view/template.rb:145:in `block in render'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:166:in `instrument'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/actionview-4.2.7.1/lib/action_view/template.rb:333:in `instrument'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/actionview-4.2.7.1/lib/action_view/template.rb:143:in `render'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/deface-1.1.0/lib/deface/action_view_extensions.rb:41:in `render'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/actionview-4.2.7.1/lib/action_view/renderer/partial_renderer.rb:339:in `render_partial'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/actionview-4.2.7.1/lib/action_view/renderer/partial_renderer.rb:310:in `block in render'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/actionview-4.2.7.1/lib/action_view/renderer/abstract_renderer.rb:39:in `block in instrument'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `block in instrument'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/activesupport-4.2.7.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `instrument'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/actionview-4.2.7.1/lib/action_view/renderer/abstract_renderer.rb:39:in `instrument'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/actionview-4.2.7.1/lib/action_view/renderer/partial_renderer.rb:309:in `render'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/actionview-4.2.7.1/lib/action_view/renderer/renderer.rb:51:in `render_partial'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/actionview-4.2.7.1/lib/action_view/helpers/rendering_helper.rb:35:in `render'
 | /home/vagrant/projects/foreman/app/views/filters/new.html.erb:3:in `_de1801266df80be3d7568cfcaffced4b'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/actionview-4.2.7.1/lib/action_view/template.rb:145:in `block in render'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:166:in `instrument'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/actionview-4.2.7.1/lib/action_view/template.rb:333:in `instrument'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/actionview-4.2.7.1/lib/action_view/template.rb:143:in `render'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/deface-1.1.0/lib/deface/action_view_extensions.rb:41:in `render'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/actionview-4.2.7.1/lib/action_view/renderer/template_renderer.rb:54:in `block (2 levels) in render_template'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/actionview-4.2.7.1/lib/action_view/renderer/abstract_renderer.rb:39:in `block in instrument'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `block in instrument'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/activesupport-4.2.7.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `instrument'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/actionview-4.2.7.1/lib/action_view/renderer/abstract_renderer.rb:39:in `instrument'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/actionview-4.2.7.1/lib/action_view/renderer/template_renderer.rb:53:in `block in render_template'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/actionview-4.2.7.1/lib/action_view/renderer/template_renderer.rb:61:in `render_with_layout'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/actionview-4.2.7.1/lib/action_view/renderer/template_renderer.rb:52:in `render_template'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/actionview-4.2.7.1/lib/action_view/renderer/template_renderer.rb:14:in `render'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/actionview-4.2.7.1/lib/action_view/renderer/renderer.rb:46:in `render_template'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/actionview-4.2.7.1/lib/action_view/renderer/renderer.rb:27:in `render'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/actionview-4.2.7.1/lib/action_view/rendering.rb:100:in `_render_template'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.7.1/lib/action_controller/metal/streaming.rb:217:in `_render_template'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/actionview-4.2.7.1/lib/action_view/rendering.rb:83:in `render_to_body'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.7.1/lib/action_controller/metal/rendering.rb:32:in `render_to_body'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.7.1/lib/action_controller/metal/renderers.rb:37:in `render_to_body'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.7.1/lib/abstract_controller/rendering.rb:25:in `render'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.7.1/lib/action_controller/metal/rendering.rb:16:in `render'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:44:in `block (2 levels) in render'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/activesupport-4.2.7.1/lib/active_support/core_ext/benchmark.rb:12:in `block in ms'
 | /home/vagrant/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/benchmark.rb:303:in `realtime'

Related issues 1 (0 open1 closed)

Related to Foreman - Bug #16204: NameError: uninitialized constant ExternalUsergroupsClosedOndřej Pražák08/19/2016Actions
Actions #1

Updated by Ondřej Pražák almost 8 years ago

  • Related to Bug #16204: NameError: uninitialized constant ExternalUsergroups added
Actions #2

Updated by The Foreman Bot almost 8 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/6620 added
Actions #3

Updated by Ondřej Pražák almost 8 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #4

Updated by Eric Helms over 7 years ago

  • Category set to Hosts
  • Translation missing: en.field_release set to 219
Actions

Also available in: Atom PDF