Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1194343 - 500 when attempting to apply errata via content host bulk actions
Summary: 500 when attempting to apply errata via content host bulk actions
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Management
Version: Nightly
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: Justin Sherrill
QA Contact: sthirugn@redhat.com
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks: 1158893
TreeView+ depends on / blocked
 
Reported: 2015-02-19 15:38 UTC by Walden Raines
Modified: 2017-02-23 20:28 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-08-12 05:25:23 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 9467 0 None None None 2016-04-22 15:01:30 UTC
Red Hat Product Errata RHSA-2015:1592 0 normal SHIPPED_LIVE Important: Red Hat Satellite 6.1.1 on RHEL 6 2015-08-12 09:04:35 UTC

Description Walden Raines 2015-02-19 15:38:47 UTC
<pre>
NameError: uninitialized constant Katello::SystemsBulkAction
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/inflector/methods.rb:230:in `block in constantize'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/inflector/methods.rb:229:in `each'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/inflector/methods.rb:229:in `constantize'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/core_ext/string/inflections.rb:54:in `constantize'
/home/walden/code/katello/app/controllers/katello/api/v2/api_controller.rb:51:in `rescue in resource_class'
/home/walden/code/katello/app/controllers/katello/api/v2/api_controller.rb:49:in `resource_class'
/home/walden/code/katello/app/controllers/katello/api/v2/api_controller.rb:88:in `scoped_search'
/home/walden/code/katello/app/controllers/katello/api/v2/systems_bulk_actions_controller.rb:106:in `applicable_errata'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.21/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.21/lib/abstract_controller/base.rb:167:in `process_action'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.21/lib/action_controller/metal/rendering.rb:10:in `process_action'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.21/lib/abstract_controller/callbacks.rb:18:in `block in process_action'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:562:in `block (5 levels) in _run__3675889115595483987__process_action__1197849405571889073__callbacks'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:215:in `block in _conditional_callback_around_7211'
/home/walden/code/foreman/app/controllers/api/v2/base_controller.rb:151:in `disable_json_root'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:214:in `_conditional_callback_around_7211'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:517:in `block (4 levels) in _run__3675889115595483987__process_action__1197849405571889073__callbacks'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:215:in `block in _conditional_callback_around_7210'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:326:in `around'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:310:in `_callback_around_3840'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:214:in `_conditional_callback_around_7210'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:505:in `block (3 levels) in _run__3675889115595483987__process_action__1197849405571889073__callbacks'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:215:in `block in _conditional_callback_around_7209'
/home/walden/code/foreman/app/controllers/concerns/application_shared.rb:13:in `set_timezone'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:214:in `_conditional_callback_around_7209'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:504:in `block (2 levels) in _run__3675889115595483987__process_action__1197849405571889073__callbacks'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:215:in `block in _conditional_callback_around_7208'
/home/walden/code/foreman/app/models/concerns/foreman/thread_session.rb:33:in `clear_thread'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:214:in `_conditional_callback_around_7208'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:448:in `block in _run__3675889115595483987__process_action__1197849405571889073__callbacks'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:215:in `block in _conditional_callback_around_7207'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:326:in `around'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:310:in `_callback_around_13'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:214:in `_conditional_callback_around_7207'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:414:in `_run__3675889115595483987__process_action__1197849405571889073__callbacks'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:405:in `__run_callback'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:81:in `run_callbacks'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.21/lib/abstract_controller/callbacks.rb:17:in `process_action'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.21/lib/action_controller/metal/rescue.rb:29:in `process_action'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.21/lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/notifications.rb:123:in `instrument'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.21/lib/action_controller/metal/instrumentation.rb:29:in `process_action'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.21/lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activerecord-3.2.21/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
/home/walden/code/katello/app/controllers/katello/concerns/api/api_controller.rb:59:in `process_action'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.21/lib/abstract_controller/base.rb:121:in `process'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.21/lib/abstract_controller/rendering.rb:45:in `process'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.21/lib/action_controller/metal.rb:203:in `dispatch'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.21/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.21/lib/action_controller/metal.rb:246:in `block in action'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.21/lib/action_dispatch/routing/route_set.rb:73:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.21/lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.21/lib/action_dispatch/routing/route_set.rb:36:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.21/lib/action_dispatch/routing/mapper.rb:43:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/journey-1.0.4/lib/journey/router.rb:68:in `block in call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/journey-1.0.4/lib/journey/router.rb:56:in `each'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/journey-1.0.4/lib/journey/router.rb:56:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.21/lib/action_dispatch/routing/route_set.rb:608:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/railties-3.2.21/lib/rails/engine.rb:484:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/railties-3.2.21/lib/rails/railtie/configurable.rb:30:in `method_missing'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/journey-1.0.4/lib/journey/router.rb:68:in `block in call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/journey-1.0.4/lib/journey/router.rb:56:in `each'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/journey-1.0.4/lib/journey/router.rb:56:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.21/lib/action_dispatch/routing/route_set.rb:608:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.21/lib/action_dispatch/middleware/static.rb:83:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.21/lib/action_dispatch/middleware/static.rb:83:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/bullet-4.14.4/lib/bullet/rack.rb:12:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/apipie-rails-0.2.6/lib/apipie/extractor/recorder.rb:97:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/apipie-rails-0.2.6/lib/apipie/middleware/checksum_in_headers.rb:27:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.21/lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/rack-1.4.5/lib/rack/etag.rb:23:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/rack-1.4.5/lib/rack/conditionalget.rb:35:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.21/lib/action_dispatch/middleware/head.rb:14:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.21/lib/action_dispatch/middleware/params_parser.rb:21:in `call'
/home/walden/code/foreman/lib/middleware/catch_json_parse_errors.rb:9:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.21/lib/action_dispatch/middleware/flash.rb:242:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:210:in `context'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:205:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.21/lib/action_dispatch/middleware/cookies.rb:341:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activerecord-3.2.21/lib/active_record/query_cache.rb:64:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activerecord-3.2.21/lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.21/lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:405:in `_run__1357351658658142972__call__1657118514850179268__callbacks'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:405:in `__run_callback'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:81:in `run_callbacks'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.21/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.21/lib/action_dispatch/middleware/reloader.rb:65:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.21/lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.21/lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.21/lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
/home/walden/code/katello/lib/katello/middleware/silenced_logger.rb:29:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.21/lib/action_dispatch/middleware/request_id.rb:22:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/rack-1.4.5/lib/rack/methodoverride.rb:21:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/rack-1.4.5/lib/rack/runtime.rb:17:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/cache/strategy/local_cache.rb:72:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/rack-1.4.5/lib/rack/lock.rb:15:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/actionpack-3.2.21/lib/action_dispatch/middleware/static.rb:83:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/railties-3.2.21/lib/rails/engine.rb:484:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/railties-3.2.21/lib/rails/application.rb:231:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/railties-3.2.21/lib/rails/railtie/configurable.rb:30:in `method_missing'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/rack-1.4.5/lib/rack/builder.rb:134:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/rack-1.4.5/lib/rack/urlmap.rb:64:in `block in call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/rack-1.4.5/lib/rack/urlmap.rb:49:in `each'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/rack-1.4.5/lib/rack/urlmap.rb:49:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/rack-1.4.5/lib/rack/content_length.rb:14:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/railties-3.2.21/lib/rails/rack/log_tailer.rb:17:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/rack-1.4.5/lib/rack/handler/webrick.rb:59:in `service'
/home/walden/.rvm/rubies/ruby-1.9.3-p547/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
/home/walden/.rvm/rubies/ruby-1.9.3-p547/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
/home/walden/.rvm/rubies/ruby-1.9.3-p547/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `call'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `block in create_with_logging_context'
caused by: (NameError) uninitialized constant SystemsBulkAction
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/inflector/methods.rb:230:in `block in constantize'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/inflector/methods.rb:229:in `each'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/inflector/methods.rb:229:in `constantize'
/home/walden/.rvm/gems/ruby-1.9.3-p547/gems/activesupport-3.2.21/lib/active_support/core_ext/string/inflections.rb:54:in `constantize'
    ... skipped 111 lines
Completed 500 Internal Server Error in 19.4ms (Views: 0.2ms | ActiveRecord: 1.1ms)
With body: {"displayMessage":"uninitialized constant Katello::SystemsBulkAction","errors":["uninitialized constant Katello::SystemsBulkAction"]}
</pre>

h3. Steps to Reproduce

# Ensure you have at least one content host with errata
# Go to content hosts page
# Select it and go to bulk actions
# Click on errata tab
# Note 500

Comment 1 Walden Raines 2015-02-19 15:38:48 UTC
Created from redmine issue http://projects.theforeman.org/issues/9467

Comment 2 Walden Raines 2015-02-19 15:38:50 UTC
Upstream bug assigned to jsherril

Comment 4 Bryan Kearney 2015-02-24 21:05:29 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/9467 has been closed
-------------
Justin Sherrill
Applied in changeset commit:katello|265b2e90a762affb7eea134e343f49279311fa20.

Comment 7 sthirugn@redhat.com 2015-03-06 16:33:34 UTC
Verified.

Satellite-6.1.0-RHEL-6-20150303.0

Comment 8 Bryan Kearney 2015-08-11 13:20:38 UTC
This bug is slated to be released with Satellite 6.1.

Comment 9 errata-xmlrpc 2015-08-12 05:25:23 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2015:1592


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