Bug #18973

Deleting a product results in "product not found" cp errors

Added by John Mitsch 5 months ago. Updated 4 months ago.

Status:Closed
Priority:Normal
Assigned To:John Mitsch
Category:Repositories
Target version:Team Brad - Iteration 13
Difficulty: Pull request:https://github.com/Katello/katello/pull/6753
Bugzilla link:
Story points-
Velocity based estimate-
ReleaseKatello 3.4.0Release relationshipAuto

Description

Product with ID '137654753594' could not be found.

to recreate: create a product, add a repo (not sure if this is necessary), delete the product

Actions::Candlepin::Product::ContentRemove
Input: {"owner"=>"TestOrg",
"product_id"=>"137654753594",
"content_id"=>"1490125253979",
"remote_user"=>"admin",
"remote_cp_user"=>"admin",
"locale"=>"en"}
Output: {}
Exception:
Katello::Errors::CandlepinError: Product with ID '137654753594' could not be found.
Backtrace:
/home/vagrant/katello/app/lib/actions/middleware/propagate_candlepin_errors.rb:21:in `rescue in propagate_candlepin_errors'
/home/vagrant/katello/app/lib/actions/middleware/propagate_candlepin_errors.rb:19:in `propagate_candlepin_errors'
/home/vagrant/katello/app/lib/actions/middleware/propagate_candlepin_errors.rb:9:in `run'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.22/lib/dynflow/middleware/stack.rb:22:in `call'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.22/lib/dynflow/middleware/stack.rb:26:in `pass'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.22/lib/dynflow/middleware.rb:17:in `pass'
/home/vagrant/katello/app/lib/actions/middleware/remote_action.rb:16:in `block in run'
/home/vagrant/katello/app/lib/actions/middleware/remote_action.rb:40:in `block in as_remote_user'
/home/vagrant/katello/app/models/katello/concerns/user_extensions.rb:21:in `cp_config'
/home/vagrant/katello/app/lib/actions/middleware/remote_action.rb:27:in `as_cp_user'
/home/vagrant/katello/app/lib/actions/middleware/remote_action.rb:39:in `as_remote_user'
/home/vagrant/katello/app/lib/actions/middleware/remote_action.rb:16:in `run'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.22/lib/dynflow/middleware/stack.rb:22:in `call'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.22/lib/dynflow/middleware/stack.rb:26:in `pass'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.22/lib/dynflow/middleware.rb:17:in `pass'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.22/lib/dynflow/action/progress.rb:30:in `with_progress_calculation'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.22/lib/dynflow/action/progress.rb:16:in `run'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.22/lib/dynflow/middleware/stack.rb:22:in `call'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.22/lib/dynflow/middleware/stack.rb:26:in `pass'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.22/lib/dynflow/middleware.rb:17:in `pass'
/home/vagrant/katello/app/lib/actions/middleware/keep_locale.rb:11:in `block in run'
/home/vagrant/katello/app/lib/actions/middleware/keep_locale.rb:22:in `with_locale'
/home/vagrant/katello/app/lib/actions/middleware/keep_locale.rb:11:in `run'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.22/lib/dynflow/middleware/stack.rb:22:in `call'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.22/lib/dynflow/middleware/stack.rb:26:in `pass'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.22/lib/dynflow/middleware.rb:17:in `pass'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.22/lib/dynflow/middleware.rb:30:in `run'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.22/lib/dynflow/middleware/stack.rb:22:in `call'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.22/lib/dynflow/middleware/world.rb:30:in `execute'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.22/lib/dynflow/action.rb:511:in `block (2 levels) in execute_run'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.22/lib/dynflow/action.rb:510:in `catch'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.22/lib/dynflow/action.rb:510:in `block in execute_run'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.22/lib/dynflow/action.rb:425:in `call'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.22/lib/dynflow/action.rb:425:in `block in with_error_handling'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.22/lib/dynflow/action.rb:425:in `catch'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.22/lib/dynflow/action.rb:425:in `with_error_handling'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.22/lib/dynflow/action.rb:505:in `execute_run'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.22/lib/dynflow/action.rb:266:in `execute'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.22/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:9:in `block (2 levels) in execute'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.22/lib/dynflow/execution_plan/steps/abstract.rb:155:in `call'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.22/lib/dynflow/execution_plan/steps/abstract.rb:155:in `with_meta_calculation'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.22/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:8:in `block in execute'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.22/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:22:in `open_action'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.22/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:7:in `execute'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.22/lib/dynflow/director.rb:42:in `execute'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.22/lib/dynflow/executors/parallel/worker.rb:11:in `on_message'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/concurrent-ruby-edge-0.2.3/lib/concurrent/actor/context.rb:46:in `on_envelope'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/concurrent-ruby-edge-0.2.3/lib/concurrent/actor/behaviour/executes_context.rb:7:in `on_envelope'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/concurrent-ruby-edge-0.2.3/lib/concurrent/actor/behaviour/abstract.rb:25:in `pass'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.22/lib/dynflow/actor.rb:26:in `on_envelope'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/concurrent-ruby-edge-0.2.3/lib/concurrent/actor/behaviour/abstract.rb:25:in `pass'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/concurrent-ruby-edge-0.2.3/lib/concurrent/actor/behaviour/awaits.rb:15:in `on_envelope'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/concurrent-ruby-edge-0.2.3/lib/concurrent/actor/behaviour/abstract.rb:25:in `pass'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/concurrent-ruby-edge-0.2.3/lib/concurrent/actor/behaviour/sets_results.rb:14:in `on_envelope'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/concurrent-ruby-edge-0.2.3/lib/concurrent/actor/behaviour/abstract.rb:25:in `pass'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/concurrent-ruby-edge-0.2.3/lib/concurrent/actor/behaviour/buffer.rb:38:in `process_envelope'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/concurrent-ruby-edge-0.2.3/lib/concurrent/actor/behaviour/buffer.rb:31:in `process_envelopes?'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/concurrent-ruby-edge-0.2.3/lib/concurrent/actor/behaviour/buffer.rb:20:in `on_envelope'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/concurrent-ruby-edge-0.2.3/lib/concurrent/actor/behaviour/abstract.rb:25:in `pass'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/concurrent-ruby-edge-0.2.3/lib/concurrent/actor/behaviour/termination.rb:55:in `on_envelope'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/concurrent-ruby-edge-0.2.3/lib/concurrent/actor/behaviour/abstract.rb:25:in `pass'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/concurrent-ruby-edge-0.2.3/lib/concurrent/actor/behaviour/removes_child.rb:10:in `on_envelope'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/concurrent-ruby-edge-0.2.3/lib/concurrent/actor/behaviour/abstract.rb:25:in `pass'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/concurrent-ruby-edge-0.2.3/lib/concurrent/actor/behaviour/sets_results.rb:14:in `on_envelope'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/concurrent-ruby-edge-0.2.3/lib/concurrent/actor/core.rb:161:in `process_envelope'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/concurrent-ruby-edge-0.2.3/lib/concurrent/actor/core.rb:95:in `block in on_envelope'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/concurrent-ruby-edge-0.2.3/lib/concurrent/actor/core.rb:118:in `block (2 levels) in schedule_execution'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/concurrent-ruby-1.0.3/lib/concurrent/synchronization/mri_lockable_object.rb:38:in `block in synchronize'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/concurrent-ruby-1.0.3/lib/concurrent/synchronization/mri_lockable_object.rb:38:in `synchronize'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/concurrent-ruby-1.0.3/lib/concurrent/synchronization/mri_lockable_object.rb:38:in `synchronize'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/concurrent-ruby-edge-0.2.3/lib/concurrent/actor/core.rb:115:in `block in schedule_execution'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/concurrent-ruby-1.0.3/lib/concurrent/executor/serialized_execution.rb:18:in `call'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/concurrent-ruby-1.0.3/lib/concurrent/executor/serialized_execution.rb:18:in `call'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/concurrent-ruby-1.0.3/lib/concurrent/executor/serialized_execution.rb:96:in `work'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/concurrent-ruby-1.0.3/lib/concurrent/executor/serialized_execution.rb:77:in `block in call_job'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/concurrent-ruby-1.0.3/lib/concurrent/executor/ruby_thread_pool_executor.rb:348:in `call'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/concurrent-ruby-1.0.3/lib/concurrent/executor/ruby_thread_pool_executor.rb:348:in `run_task'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/concurrent-ruby-1.0.3/lib/concurrent/executor/ruby_thread_pool_executor.rb:337:in `block (3 levels) in create_worker'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/concurrent-ruby-1.0.3/lib/concurrent/executor/ruby_thread_pool_executor.rb:320:in `loop'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/concurrent-ruby-1.0.3/lib/concurrent/executor/ruby_thread_pool_executor.rb:320:in `block (2 levels) in create_worker'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/concurrent-ruby-1.0.3/lib/concurrent/executor/ruby_thread_pool_executor.rb:319:in `catch'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/concurrent-ruby-1.0.3/lib/concurrent/executor/ruby_thread_pool_executor.rb:319:in `block in create_worker'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/logging-2.2.0/lib/logging/diagnostic_context.rb:474:in `call'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/logging-2.2.0/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context'

Associated revisions

Revision 821cdc0c
Added by John Mitsch 4 months ago

Fixes #18973 - Remove content only once on product del

History

#1 Updated by John Mitsch 5 months ago

found in latest dev env

#2 Updated by John Mitsch 4 months ago

  • Category set to Repositories
  • Assigned To set to John Mitsch
  • Release set to Katello Backlog

#3 Updated by John Mitsch 4 months ago

  • Target version set to Team Brad - Iteration 13

#4 Updated by The Foreman Bot 4 months ago

  • Status changed from New to Ready For Testing
  • Release deleted (Katello Backlog)
  • Pull request https://github.com/Katello/katello/pull/6753 added

#5 Updated by Justin Sherrill 4 months ago

  • Release set to Katello 3.4.0

#6 Updated by John Mitsch 4 months ago

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

Also available in: Atom PDF