[Katello 2.2.2] Runtime Error null at org.candlepin.model.AbstractHibernateCurator.delete:326

Attempting to remove a content view that is published to multiple stages
of a lifecycle environment gives the following error:

Started at: 2015-06-29 21:16:55 UTC

Ended at: 2015-06-29 21:16:57 UTC

Real time: 2.11s

Execution time (excluding suspended state): 2.11s

Input:

··· --- cp_environment_id: 4-5 content_ids: [] remote_user: admin-375a9869 remote_cp_user: admin locale: en

Output:


add_ids: []
delete_ids:- ‘1432940211935’- ‘1428681454377’

Error:

Katello::Errors::CandlepinError

Runtime Error null at
org.candlepin.model.AbstractHibernateCurator.delete:326

---- /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.2/app/lib/actions/middleware/propagate_candlepin_errors.rb:33:in
`rescue in propagate_candlepin_errors’

  • /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.2/app/lib/actions/middleware/propagate_candlepin_errors.rb:31:in
    `propagate_candlepin_errors’
  • /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.2/app/lib/actions/middleware/propagate_candlepin_errors.rb:21:in
    run'- /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/middleware/stack.rb:22:incall’
  • /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/middleware/stack.rb:26:in
    `pass’
  • /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/middleware.rb:16:in
    pass'- /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.2/app/lib/actions/middleware/remote_action.rb:28:inblock in run’
  • /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.2/app/lib/actions/middleware/remote_action.rb:58:in
    `block (2 levels) in as_remote_user’
  • /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.2/app/lib/katello/util/thread_session.rb:84:in
    pulp_config'- /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.2/app/lib/actions/middleware/remote_action.rb:44:inas_pulp_user’
  • /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.2/app/lib/actions/middleware/remote_action.rb:57:in
    `block in as_remote_user’
  • /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.2/app/lib/katello/util/thread_session.rb:91:in
    cp_config'- /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.2/app/lib/actions/middleware/remote_action.rb:39:inas_cp_user’
  • /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.2/app/lib/actions/middleware/remote_action.rb:56:in
    `as_remote_user’
  • /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.2/app/lib/actions/middleware/remote_action.rb:28:in
    run'- /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/middleware/stack.rb:22:incall’
  • /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/middleware/stack.rb:26:in
    `pass’
  • /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/middleware.rb:16:in
    pass'- /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/action/progress.rb:30:inwith_progress_calculation’
  • /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/action/progress.rb:16:in
    `run’
  • /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/middleware/stack.rb:22:in
    call'- /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/middleware/stack.rb:26:inpass’
  • /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/middleware.rb:16:in
    `pass’
  • /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.2/app/lib/actions/middleware/keep_locale.rb:23:in
    block in run'- /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.2/app/lib/actions/middleware/keep_locale.rb:34:inwith_locale’
  • /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.2/app/lib/actions/middleware/keep_locale.rb:23:in
    `run’
  • /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/middleware/stack.rb:22:in
    call'- /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/middleware/world.rb:30:inexecute’
  • /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/action.rb:480:in
    `block (2 levels) in execute_run’
  • /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/action.rb:479:in
    catch'- /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/action.rb:479:inblock in execute_run’
  • /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/action.rb:396:in
    `call’
  • /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/action.rb:396:in
    block in with_error_handling'- /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/action.rb:396:incatch’
  • /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/action.rb:396:in
    `with_error_handling’
  • /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/action.rb:474:in
    execute_run'- /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/action.rb:256:inexecute’
  • /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:9:in
    `block (2 levels) in execute’
  • /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/execution_plan/steps/abstract.rb:155:in
    call'- /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/execution_plan/steps/abstract.rb:155:inwith_meta_calculation’
  • /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:8:in
    `block in execute’
  • /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:22:in
    open_action'- /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:7:inexecute’
  • /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/executors/parallel/worker.rb:20:in
    `block in on_message’
  • /opt/rh/ruby193/root/usr/share/gems/gems/algebrick-0.4.0/lib/algebrick.rb:859:in
    block in assigns'- /opt/rh/ruby193/root/usr/share/gems/gems/algebrick-0.4.0/lib/algebrick.rb:858:intap’
  • /opt/rh/ruby193/root/usr/share/gems/gems/algebrick-0.4.0/lib/algebrick.rb:858:in
    `assigns’
  • /opt/rh/ruby193/root/usr/share/gems/gems/algebrick-0.4.0/lib/algebrick.rb:138:in
    match_value'- /opt/rh/ruby193/root/usr/share/gems/gems/algebrick-0.4.0/lib/algebrick.rb:116:inblock in match’
  • /opt/rh/ruby193/root/usr/share/gems/gems/algebrick-0.4.0/lib/algebrick.rb:115:in
    `each’
  • /opt/rh/ruby193/root/usr/share/gems/gems/algebrick-0.4.0/lib/algebrick.rb:115:in
    match'- /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/executors/parallel/worker.rb:17:inon_message’
  • /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/micro_actor.rb:82:in
    `on_envelope’
  • /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/micro_actor.rb:72:in
    receive'- /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/micro_actor.rb:99:inblock (2 levels) in run’
  • /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/micro_actor.rb:99:in
    `loop’
  • /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/micro_actor.rb:99:in
    block in run'- /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/micro_actor.rb:99:incatch’
  • /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/micro_actor.rb:99:in
    `run’
  • /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/micro_actor.rb:13:in
    block in initialize'- /opt/rh/ruby193/root/usr/share/gems/gems/logging-1.8.1/lib/logging/diagnostic_context.rb:323:incall’
  • /opt/rh/ruby193/root/usr/share/gems/gems/logging-1.8.1/lib/logging/diagnostic_context.rb:323:in
    `block in create_with_logging_context’
  • ! ‘caused by: (RestClient::InternalServerError) Katello::Resources::Candlepin::Environment:
    500 Internal Server Error {“displayMessage”:“Runtime Error null at org.candlepin.model.AbstractHibernateCurator.delete:326”,“requestUuid”:“3b2872c8-e351-451e-8f1d-d54550389963”}
    (DELETE /candlepin/environments/4-5/content?content=1432940211935&content=1428681454377)’
  • /opt/rh/ruby193/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/abstract_response.rb:48:in
    return!'- /opt/rh/ruby193/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:230:inprocess_result’
  • /opt/rh/ruby193/root/usr/share/gems/gems/rbovirt-0.0.35/lib/restclient_ext/request.rb:50:in
    `block in transmit’
  • /opt/rh/ruby193/root/usr/share/ruby/net/http.rb:746:in start'- /opt/rh/ruby193/root/usr/share/gems/gems/rbovirt-0.0.35/lib/restclient_ext/request.rb:44:intransmit’
  • /opt/rh/ruby193/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:64:in
    `execute’
  • /opt/rh/ruby193/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:33:in
    execute'- /opt/rh/ruby193/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/resource.rb:94:indelete’
  • /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.2/app/lib/katello/http_resource.rb:138:in
    `delete’
  • /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.2/app/lib/katello/resources/candlepin.rb:516:in
    delete_content'- /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.2/app/lib/actions/candlepin/environment/set_content.rb:52:inrun’
  • /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/action.rb:481:in
    `block (3 levels) in execute_run’
  • /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/middleware/stack.rb:26:in
    call'- /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/middleware/stack.rb:26:inpass’
  • /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/middleware.rb:16:in
    `pass’
  • /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.2/app/lib/actions/middleware/propagate_candlepin_errors.rb:21:in
    `block in run’- ! ’ … skipped 61 lines’