Project

General

Profile

Bug #15567

Katello 3.0 - Failed to delete a content view

Added by george lim almost 6 years ago. Updated almost 4 years ago.

Status:
Resolved
Priority:
Normal
Category:
Content Views
Target version:
Difficulty:
medium
Triaged:
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

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'"


Related issues

Related to Katello - Bug #15568: Katello 3.0 - Failed to delete a repoRejected2016-07-03
Has duplicate Katello - Bug #14700: Cannot delete record because of dependent content_facetsDuplicate2016-04-19
Has duplicate Katello - Bug #18703: Unable to delete the composite content view version after upgrade Duplicate2017-02-27
Has duplicate Katello - Bug #18924: Unable to destroy content viewDuplicate2017-03-15

History

#1 Updated by Dominic Cleal almost 6 years ago

  • Project changed from Foreman to Katello
  • Legacy Backlogs Release (now unused) deleted (160)

#2 Updated by Justin Sherrill almost 6 years ago

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

#3 Updated by Justin Sherrill almost 6 years ago

  • Category set to Content Views
  • Assignee set to Andrew Kofink
  • Legacy Backlogs Release (now unused) set to 171
  • Difficulty set to medium

#4 Updated by Justin Sherrill almost 6 years ago

  • Has duplicate Bug #14700: Cannot delete record because of dependent content_facets added

#5 Updated by Justin Sherrill almost 6 years ago

  • Legacy Backlogs Release (now unused) changed from 171 to 143

#6 Updated by Andrew Kofink almost 6 years ago

  • Status changed from New to Rejected
  • Legacy Backlogs Release (now unused) changed from 143 to 166

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

#7 Updated by Kavita Gaikwad almost 6 years 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 almost 6 years ago

  • Status changed from Rejected to New
  • Legacy Backlogs Release (now unused) changed from 166 to 143

Reopening, as it has been reported not fixed.

#9 Updated by Andrew Kofink almost 6 years ago

#10 Updated by Andrew Kofink almost 6 years 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 almost 6 years 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 almost 6 years ago

  • Target version set to 123

#13 Updated by Brad Buckingham almost 6 years ago

#14 Updated by Justin Sherrill over 5 years ago

  • Legacy Backlogs Release (now unused) changed from 143 to 184

#15 Updated by Brad Buckingham over 5 years ago

  • Target version changed from 123 to 126

#16 Updated by Andrew Kofink over 5 years 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 over 5 years ago

  • Target version changed from 126 to 129

#18 Updated by Justin Sherrill over 5 years ago

  • Legacy Backlogs Release (now unused) changed from 184 to 162

#19 Updated by Andrew Kofink over 5 years ago

  • Status changed from New to Rejected
  • Legacy Backlogs Release (now unused) changed from 162 to 166

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 over 5 years 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 over 5 years 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 over 5 years 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 over 5 years ago

  • Target version changed from 129 to 133
  • Legacy Backlogs Release (now unused) deleted (166)

Reopening to investigate

#24 Updated by Andrew Kofink over 5 years ago

  • Status changed from Rejected to Assigned

#25 Updated by Brad Buckingham over 5 years ago

  • Target version changed from 133 to 140

#26 Updated by Andrew Kofink over 5 years ago

  • Target version changed from 140 to 147

#27 Updated by Eric Helms over 5 years ago

  • Assignee changed from Andrew Kofink to Justin Sherrill

#28 Updated by Brad Buckingham over 5 years ago

  • Target version changed from 147 to 151

#29 Updated by Brad Buckingham over 5 years ago

  • Target version changed from 151 to 157

#30 Updated by Justin Sherrill over 5 years ago

  • Target version deleted (157)

#31 Updated by Justin Sherrill over 5 years ago

  • Priority changed from High to Normal

#32 Updated by Eric Helms over 5 years ago

  • Legacy Backlogs Release (now unused) set to 219

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

#33 Updated by Eric Helms about 5 years ago

  • Legacy Backlogs Release (now unused) changed from 219 to 166

#34 Updated by Brad Buckingham about 5 years ago

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

#35 Updated by Brad Buckingham about 5 years ago

  • Target version set to 169

#36 Updated by Brad Buckingham about 5 years ago

  • Legacy Backlogs Release (now unused) changed from 166 to 114
  • Bugzilla link set to 1373379

#37 Updated by Brad Buckingham about 5 years ago

  • Target version changed from 169 to 178

#38 Updated by John Mitsch about 5 years ago

  • Has duplicate Bug #18924: Unable to destroy content view added

#39 Updated by John Mitsch about 5 years ago

  • Assignee changed from Justin Sherrill to John Mitsch

#40 Updated by Brad Buckingham about 5 years ago

  • Target version changed from 178 to 181

#41 Updated by Brad Buckingham about 5 years ago

  • Target version changed from 181 to 187

#42 Updated by Brad Buckingham about 5 years ago

  • Target version changed from 187 to 193

#43 Updated by John Mitsch about 5 years ago

  • Assignee deleted (John Mitsch)

#44 Updated by John Mitsch about 5 years ago

  • Status changed from Assigned to New

#45 Updated by Justin Sherrill almost 5 years ago

  • Status changed from New to Resolved
  • Assignee 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.

#46 Updated by Eric Helms almost 5 years ago

  • Legacy Backlogs Release (now unused) deleted (114)

#47 Updated by Justin Sherrill almost 5 years ago

  • Legacy Backlogs Release (now unused) set to 166

Also available in: Atom PDF