Bug #15567

Katello 3.0 - Failed to delete a content view

Added by george lim 12 months ago. Updated 22 days ago.

Status:Resolved
Priority:Normal
Assigned To:Justin Sherrill
Category:Content Views
Target version:Team Brad - Iteration 15
Difficulty:medium Pull request:
Bugzilla link:1373379
Story points-
Velocity based estimate-
ReleaseKatello BacklogRelease relationshipAuto

Description

I was trying to delete a content view that no longer needed so I can delete the yum repositories. It was able to remove versions and associations but failed at the final step to actually delete the content view.

==========
ERROR ==========

ActiveRecord::DeleteRestrictionError

Cannot delete record because of dependent content_facets

==============
Installed Packages ==============
Katello Packages:

katello-default-ca-1.0-1.noarch
foreman-installer-katello-3.0.2-1.el7.noarch
katello-certs-tools-2.4.0-1.el7.noarch
katello-selinux-3.0.1-1.el7.noarch
tfm-rubygem-hammer_cli_katello-0.0.25-1.el7.noarch
katello-installer-base-3.0.2-1.el7.noarch
katello-debug-3.0.0-9.el7.noarch
tfm-rubygem-katello-3.0.1-1.el7.noarch
katello-client-bootstrap-1.1.0-1.el7.noarch
pulp-katello-1.0-1.el7.noarch
katello-service-3.0.0-9.el7.noarch
katello-3.0.0-9.el7.noarch
katello-common-3.0.0-9.el7.noarch
katello-repos-3.0.0-3.el7.noarch
katello-server-ca-1.0-1.noarch

Foreman Packages:
foreman-selinux-1.11.3-1.el7.noarch
foreman-postgresql-1.11.3-1.el7.noarch
tfm-rubygem-foreman_remote_execution-0.3.2-1.fm1_11.el7.noarch
foreman-debug-1.11.3-1.el7.noarch
foreman-installer-katello-3.0.2-1.el7.noarch
tfm-rubygem-hammer_cli_foreman_docker-0.0.3-5.el7.noarch
foreman-proxy-1.11.3-1.el7.noarch
foreman-installer-1.11.3-1.el7.noarch
tfm-rubygem-hammer_cli_foreman_bootdisk-0.1.3-4.el7.noarch
foreman-compute-1.11.3-1.el7.noarch
foreman-1.11.3-1.el7.noarch
tfm-rubygem-hammer_cli_foreman-0.6.2-1.el7.noarch
tfm-rubygem-hammer_cli_foreman_tasks-0.0.10-1.fm1_11.el7.noarch
tfm-rubygem-foreman-tasks-0.7.18-1.fm1_11.el7.noarch
tfm-rubygem-foreman_docker-2.1.1-1.fm1_11.el7.noarch
foreman-release-scl-2-1.el7.x86_64
foreman-release-1.11.3-1.el7.noarch

======================
Track back ======================

--
- "/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/associations/has_many_association.rb:13:in
`handle_dependency'"
- "/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/associations/builder/association.rb:135:in
`block in add_before_destroy_callbacks'"
- "/opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/callbacks.rb:440:in
`instance_exec'"
- "/opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/callbacks.rb:440:in
`block in make_lambda'"
- "/opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/callbacks.rb:160:in
`call'"
- "/opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/callbacks.rb:160:in
`block in halting'"
- "/opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/callbacks.rb:166:in
`call'"
- "/opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/callbacks.rb:166:in
`block in halting'"
- "/opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/callbacks.rb:166:in
`call'"
- "/opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/callbacks.rb:166:in
`block in halting'"
- "/opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/callbacks.rb:166:in
`call'"
- "/opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/callbacks.rb:166:in
`block in halting'"
- "/opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/callbacks.rb:166:in
`call'"
- "/opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/callbacks.rb:166:in
`block in halting'"
- "/opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/callbacks.rb:166:in
`call'"
- "/opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/callbacks.rb:166:in
`block in halting'"
- "/opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/callbacks.rb:166:in
`call'"
- "/opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/callbacks.rb:166:in
`block in halting'"
- "/opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/callbacks.rb:166:in
`call'"
- "/opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/callbacks.rb:166:in
`block in halting'"
- "/opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/callbacks.rb:166:in
`call'"
- "/opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/callbacks.rb:166:in
`block in halting'"
- "/opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/callbacks.rb:86:in
`call'"
- "/opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/callbacks.rb:86:in
`run_callbacks'"
- "/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/callbacks.rb:292:in
`destroy'"
- "/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/transactions.rb:263:in
`block in destroy'"
- "/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/transactions.rb:329:in
`block in with_transaction_returning_status'"
- "/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:199:in
`transaction'"
- "/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/transactions.rb:208:in
`transaction'"
- "/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/transactions.rb:326:in
`with_transaction_returning_status'"
- "/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/transactions.rb:263:in
`destroy'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.1/app/models/katello/model.rb:7:in
`destroy!'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.1/app/lib/actions/katello/content_view/destroy.rb:27:in
`finalize'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/action.rb:528:in
`block (2 levels) in execute_finalize'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/middleware/stack.rb:26:in
`call'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/middleware/stack.rb:26:in
`pass'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/middleware.rb:17:in
`pass'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.1/app/lib/actions/middleware/remote_action.rb:20:in
`block in finalize'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.1/app/lib/actions/middleware/remote_action.rb:40:in
`block in as_remote_user'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.1/app/models/katello/concerns/user_extensions.rb:20:in
`cp_config'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.1/app/lib/actions/middleware/remote_action.rb:27:in
`as_cp_user'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.1/app/lib/actions/middleware/remote_action.rb:39:in
`as_remote_user'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.1/app/lib/actions/middleware/remote_action.rb:20:in
`finalize'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/middleware/stack.rb:22:in
`call'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/middleware/stack.rb:26:in
`pass'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/middleware.rb:17:in
`pass'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/action/progress.rb:30:in
`with_progress_calculation'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/action/progress.rb:22:in
`finalize'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/middleware/stack.rb:22:in
`call'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/middleware/stack.rb:26:in
`pass'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/middleware.rb:17:in
`pass'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.1/app/lib/actions/middleware/keep_locale.rb:15:in
`block in finalize'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.1/app/lib/actions/middleware/keep_locale.rb:22:in
`with_locale'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.1/app/lib/actions/middleware/keep_locale.rb:15:in
`finalize'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/middleware/stack.rb:22:in
`call'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/middleware/stack.rb:26:in
`pass'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/middleware.rb:17:in
`pass'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/middleware.rb:38:in
`finalize'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/middleware/stack.rb:22:in
`call'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/middleware/world.rb:30:in
`execute'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/action.rb:527:in
`block in execute_finalize'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/action.rb:419:in
`call'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/action.rb:419:in
`block in with_error_handling'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/action.rb:419:in
`catch'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/action.rb:419:in
`with_error_handling'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/action.rb:526:in
`execute_finalize'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/action.rb:260:in
`execute'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:9:in
`block (2 levels) in execute'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/execution_plan/steps/abstract.rb:155:in
`call'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/execution_plan/steps/abstract.rb:155:in
`with_meta_calculation'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:8:in
`block in execute'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:22:in
`open_action'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:7:in
`execute'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/executors/parallel/sequential_manager.rb:68:in
`run_step'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/executors/parallel/sequential_manager.rb:53:in
`dispatch'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/executors/parallel/sequential_manager.rb:60:in
`block in run_in_sequence'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/executors/parallel/sequential_manager.rb:60:in
`each'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/executors/parallel/sequential_manager.rb:60:in
`all?'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/executors/parallel/sequential_manager.rb:60:in
`run_in_sequence'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/executors/parallel/sequential_manager.rb:49:in
`dispatch'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/executors/parallel/sequential_manager.rb:27:in
`block in finalize'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/middleware/stack.rb:26:in
`call'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/middleware/stack.rb:26:in
`pass'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/middleware.rb:17:in
`pass'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/middleware.rb:46:in
`finalize_phase'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/middleware/stack.rb:22:in
`call'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/middleware/stack.rb:26:in
`pass'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/middleware.rb:17:in
`pass'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/middleware.rb:46:in
`finalize_phase'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/middleware/stack.rb:22:in
`call'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/middleware/stack.rb:26:in
`pass'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/middleware.rb:17:in
`pass'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/middleware.rb:46:in
`finalize_phase'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/middleware/stack.rb:22:in
`call'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/middleware/stack.rb:26:in
`pass'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/middleware.rb:17:in
`pass'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/middleware/common/transaction.rb:16:in
`block in rollback_on_error'"
- "/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in
`block in transaction'"
- "/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:209:in
`within_new_transaction'"
- "/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in
`transaction'"
- "/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/transactions.rb:208:in
`transaction'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/transaction_adapters/active_record.rb:5:in
`transaction'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/middleware/common/transaction.rb:15:in
`rollback_on_error'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/middleware/common/transaction.rb:9:in
`finalize_phase'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/middleware/stack.rb:22:in
`call'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/middleware/world.rb:30:in
`execute'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/executors/parallel/sequential_manager.rb:26:in
`finalize'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/executors/parallel/worker.rb:18:in
`block in on_message'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/algebrick-0.7.3/lib/algebrick/matchers/abstract.rb:74:in
`block in assigns'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/algebrick-0.7.3/lib/algebrick/matchers/abstract.rb:73:in
`tap'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/algebrick-0.7.3/lib/algebrick/matchers/abstract.rb:73:in
`assigns'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/algebrick-0.7.3/lib/algebrick/matching.rb:56:in
`match_value'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/algebrick-0.7.3/lib/algebrick/matching.rb:36:in
`block in match?'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/algebrick-0.7.3/lib/algebrick/matching.rb:35:in
`each'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/algebrick-0.7.3/lib/algebrick/matching.rb:35:in
`match?'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/algebrick-0.7.3/lib/algebrick/matching.rb:23:in
`match'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/executors/parallel/worker.rb:12:in
`on_message'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.0/lib/concurrent/actor/context.rb:46:in
`on_envelope'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.0/lib/concurrent/actor/behaviour/executes_context.rb:7:in
`on_envelope'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.0/lib/concurrent/actor/behaviour/abstract.rb:25:in
`pass'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/actor.rb:26:in
`on_envelope'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.0/lib/concurrent/actor/behaviour/abstract.rb:25:in
`pass'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.0/lib/concurrent/actor/behaviour/awaits.rb:15:in
`on_envelope'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.0/lib/concurrent/actor/behaviour/abstract.rb:25:in
`pass'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.0/lib/concurrent/actor/behaviour/sets_results.rb:14:in
`on_envelope'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.0/lib/concurrent/actor/behaviour/abstract.rb:25:in
`pass'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.0/lib/concurrent/actor/behaviour/buffer.rb:38:in
`process_envelope'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.0/lib/concurrent/actor/behaviour/buffer.rb:31:in
`process_envelopes?'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.0/lib/concurrent/actor/behaviour/buffer.rb:20:in
`on_envelope'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.0/lib/concurrent/actor/behaviour/abstract.rb:25:in
`pass'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.0/lib/concurrent/actor/behaviour/termination.rb:55:in
`on_envelope'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.0/lib/concurrent/actor/behaviour/abstract.rb:25:in
`pass'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.0/lib/concurrent/actor/behaviour/removes_child.rb:10:in
`on_envelope'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.0/lib/concurrent/actor/behaviour/abstract.rb:25:in
`pass'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.0/lib/concurrent/actor/behaviour/sets_results.rb:14:in
`on_envelope'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.0/lib/concurrent/actor/core.rb:161:in
`process_envelope'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.0/lib/concurrent/actor/core.rb:95:in
`block in on_envelope'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.0/lib/concurrent/actor/core.rb:118:in
`block (2 levels) in schedule_execution'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-1.0.0/lib/concurrent/synchronization/mri_lockable_object.rb:38:in
`block in synchronize'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-1.0.0/lib/concurrent/synchronization/mri_lockable_object.rb:38:in
`synchronize'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-1.0.0/lib/concurrent/synchronization/mri_lockable_object.rb:38:in
`synchronize'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.0/lib/concurrent/actor/core.rb:115:in
`block in schedule_execution'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-1.0.0/lib/concurrent/executor/serialized_execution.rb:18:in
`call'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-1.0.0/lib/concurrent/executor/serialized_execution.rb:18:in
`call'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-1.0.0/lib/concurrent/executor/serialized_execution.rb:96:in
`work'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-1.0.0/lib/concurrent/executor/serialized_execution.rb:77:in
`block in call_job'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-1.0.0/lib/concurrent/executor/ruby_thread_pool_executor.rb:333:in
`call'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-1.0.0/lib/concurrent/executor/ruby_thread_pool_executor.rb:333:in
`run_task'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-1.0.0/lib/concurrent/executor/ruby_thread_pool_executor.rb:322:in
`block (3 levels) in create_worker'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-1.0.0/lib/concurrent/executor/ruby_thread_pool_executor.rb:305:in
`loop'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-1.0.0/lib/concurrent/executor/ruby_thread_pool_executor.rb:305:in
`block (2 levels) in create_worker'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-1.0.0/lib/concurrent/executor/ruby_thread_pool_executor.rb:304:in
`catch'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-1.0.0/lib/concurrent/executor/ruby_thread_pool_executor.rb:304:in
`block in create_worker'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in
`call'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in
`block in create_with_logging_context'"

cannot-delete-record_new.jpg (58.1 KB) Preview Kavita Gaikwad, 08/16/2016 01:27 AM

remove-content-view-rhel7-with_elastic_new.jpg (64.2 KB) Preview Kavita Gaikwad, 08/16/2016 01:27 AM

Cannot-delete-record_new Remove-content-view-rhel7-with_elastic_new

Related issues

Related to Katello - Bug #15568: Katello 3.0 - Failed to delete a repo Rejected 07/03/2016
Duplicated by Katello - Bug #14700: Cannot delete record because of dependent content_facets Duplicate 04/19/2016
Duplicated by Katello - Bug #18703: Unable to delete the composite content view version after... Duplicate 02/27/2017
Duplicated by Katello - Bug #18924: Unable to destroy content view Duplicate 03/15/2017

History

#1 Updated by Dominic Cleal 12 months ago

  • Project changed from Foreman to Katello
  • Release deleted (1.13.0)

#2 Updated by Justin Sherrill 12 months ago

  • Related to Bug #15568: Katello 3.0 - Failed to delete a repo added

#3 Updated by Justin Sherrill 12 months ago

  • Category set to Content Views
  • Assigned To set to Andrew Kofink
  • Release set to Katello 3.0.3
  • Difficulty set to medium

#4 Updated by Justin Sherrill 12 months ago

  • Duplicated by Bug #14700: Cannot delete record because of dependent content_facets added

#5 Updated by Justin Sherrill 11 months ago

  • Release changed from Katello 3.0.3 to Katello 3.1.0

#6 Updated by Andrew Kofink 11 months ago

  • Status changed from New to Rejected
  • Release changed from Katello 3.1.0 to Katello Recycle Bin

This appears to be fixed. Please reopen if you can still reproduce.

#7 Updated by Kavita Gaikwad 11 months ago

Hi Justin,

I am using Katello 3.0 and facing the same issue. It would be great if you can share the pull request number for this issue.

Should I need to upgrade it to Katello 3.1 or I can use this patch in Katello 3.0?

Thanks,
Kavita

#8 Updated by Andrew Kofink 11 months ago

  • Status changed from Rejected to New
  • Release changed from Katello Recycle Bin to Katello 3.1.0

Reopening, as it has been reported not fixed.

#9 Updated by Andrew Kofink 11 months ago

#10 Updated by Andrew Kofink 11 months ago

Kavita Gaikwad wrote:

Hi Justin,

I am using Katello 3.0 and facing the same issue. It would be great if you can share the pull request number for this issue.

Should I need to upgrade it to Katello 3.1 or I can use this patch in Katello 3.0?

Thanks,
Kavita

Could you please provide the exact steps you followed to find this error? I'm having trouble reproducing it.

#11 Updated by Kavita Gaikwad 11 months ago

Andrew Kofink wrote:

Kavita Gaikwad wrote:

Hi Justin,

I am using Katello 3.0 and facing the same issue. It would be great if you can share the pull request number for this issue.

Should I need to upgrade it to Katello 3.1 or I can use this patch in Katello 3.0?

Thanks,
Kavita

Could you please provide the exact steps you followed to find this error? I'm having trouble reproducing it.

Hi Justin,

I am using Katello 3.0.0.
While deleting the content-view with multiple publish versions, I got similar error. I am not able to reproduce it.
For you reference, please check below screen-shots.

Thanks,
Kavita

#12 Updated by Brad Buckingham 10 months ago

  • Target version set to Team Brad - Iteration 2

#13 Updated by Brad Buckingham 10 months ago

#14 Updated by Justin Sherrill 10 months ago

  • Release changed from Katello 3.1.0 to Katello 3.1.1

#15 Updated by Brad Buckingham 10 months ago

  • Target version changed from Team Brad - Iteration 2 to Team Brad - Iteration 3

#16 Updated by Andrew Kofink 10 months ago

Here are the steps I'm using with tfm-rubygem-katello-3.0.2-1.el7.noarch:

  1. Create a content view
  2. Create yum product
  3. Create a yum repository (https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/)
  4. Sync packages on the repository
  5. Add the repository to the content view
  6. Publish a version of the content view
  7. Publish another version of the content view
  8. Associate a content host with the content view
  9. Remove the Environment and content host association from the latest content view version by removing the content view version (do not check "remove completely" box)
  10. Delete the content view

The content view is removed successfully.

Are there any steps I'm missing? Perhaps this issue has been fixed between versions 3.0.0 and 3.0.2?

#17 Updated by Brad Buckingham 9 months ago

  • Target version changed from Team Brad - Iteration 3 to Team Brad - Iteration 4

#18 Updated by Justin Sherrill 9 months ago

  • Release changed from Katello 3.1.1 to Katello 3.2.0

#19 Updated by Andrew Kofink 9 months ago

  • Status changed from New to Rejected
  • Release changed from Katello 3.2.0 to Katello Recycle Bin

I haven't heard back on this bug for about a month, and I'm unable to reproduce it on Katello 3.0.2. Please let me know if you're still hitting this problem, and please give more details as to how you are able to see this bug (see http://projects.theforeman.org/issues/15567#note-16). Until that time, I'm moving it to the recycling bin. Please reopen if you encounter the issue again.

#20 Updated by Oliver Weinmann 8 months ago

Hi,

just hitting the same bug. Running Katello 3.1 and latest Foreman 1.12.4-1. 4 Content views are affected by this problem.

#21 Updated by Oliver Weinmann 8 months ago

Trying to delete a content view via hammer cli gives different errors depending on usind id or name:

[root@katello ~]# hammer -u admin -p '!_F0reman' content-view delete --organization-id 3 --name "Comp SLES 11.1 x86_64"
[.................................................................................................................. ] [50%]
Cannot delete record because of dependent content_facets

[root@katello ~]# hammer -u admin -p '!_F0reman' content-view delete --organization-id 3 --id 24
Could not delete the content view:
Cannot delete 'Comp Linux SLES 11.1 x86_64' due to associated environments: Library.

#22 Updated by Oliver Weinmann 8 months ago

forget my last post. The error is the same i used the wrong id. The error is always :

Cannot delete record because of dependent content_facets

#23 Updated by Andrew Kofink 8 months ago

  • Target version changed from Team Brad - Iteration 4 to Team Brad - Iteration 5
  • Release deleted (Katello Recycle Bin)

Reopening to investigate

#24 Updated by Andrew Kofink 8 months ago

  • Status changed from Rejected to Assigned

#25 Updated by Brad Buckingham 8 months ago

  • Target version changed from Team Brad - Iteration 5 to Team Brad - Iteration 6

#26 Updated by Andrew Kofink 7 months ago

  • Target version changed from Team Brad - Iteration 6 to Team Brad - Iteration 7

#27 Updated by Eric Helms 7 months ago

  • Assigned To changed from Andrew Kofink to Justin Sherrill

#28 Updated by Brad Buckingham 6 months ago

  • Target version changed from Team Brad - Iteration 7 to Team Brad - Iteration 8

#29 Updated by Brad Buckingham 6 months ago

  • Target version changed from Team Brad - Iteration 8 to Team Brad - Iteration 9

#30 Updated by Justin Sherrill 6 months ago

  • Target version deleted (Team Brad - Iteration 9)

#31 Updated by Justin Sherrill 5 months ago

  • Priority changed from High to Normal

#32 Updated by Eric Helms 4 months ago

  • Release set to Katello 3.3.1

Can either or both users hitting the issue generate and upload a foreman-debug?

#33 Updated by Eric Helms 4 months ago

  • Release changed from Katello 3.3.1 to Katello Recycle Bin

#34 Updated by Brad Buckingham 4 months ago

  • Duplicated by Bug #18703: Unable to delete the composite content view version after upgrade added

#35 Updated by Brad Buckingham 4 months ago

  • Target version set to Team Brad - Iteration 11

#36 Updated by Brad Buckingham 4 months ago

  • Release changed from Katello Recycle Bin to Katello Backlog
  • Bugzilla link set to 1373379

#37 Updated by Brad Buckingham 4 months ago

  • Target version changed from Team Brad - Iteration 11 to Team Brad - Iteration 12

#38 Updated by John Mitsch 3 months ago

  • Duplicated by Bug #18924: Unable to destroy content view added

#39 Updated by John Mitsch 3 months ago

  • Assigned To changed from Justin Sherrill to John Mitsch

#40 Updated by Brad Buckingham 3 months ago

  • Target version changed from Team Brad - Iteration 12 to Team Brad - Iteration 13

#41 Updated by Brad Buckingham 2 months ago

  • Target version changed from Team Brad - Iteration 13 to Team Brad - Iteration 14

#42 Updated by Brad Buckingham about 1 month ago

  • Target version changed from Team Brad - Iteration 14 to Team Brad - Iteration 15

#43 Updated by John Mitsch about 1 month ago

  • Assigned To deleted (John Mitsch)

#44 Updated by John Mitsch about 1 month ago

  • Status changed from Assigned to New

#45 Updated by Justin Sherrill 22 days ago

  • Status changed from New to Resolved
  • Assigned To set to Justin Sherrill

I am very certain this was resolved with this change: https://github.com/Katello/katello/commit/440b51d54a020885d2680ce9edeef01b477a28b4

I am not able to recreate the issue any more.

Also available in: Atom PDF