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 1232013 - Bulk action delete hosts failed: ActiveRecord::DeleteRestrictionError: Cannot delete record because of dependent content_host
Summary: Bulk action delete hosts failed: ActiveRecord::DeleteRestrictionError: Canno...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: WebUI
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: Chris Peters
QA Contact: Sachin Ghai
URL:
Whiteboard:
: 1241923 (view as bug list)
Depends On:
Blocks: rhci-common-installer
TreeView+ depends on / blocked
 
Reported: 2015-06-15 20:26 UTC by John Matthews
Modified: 2019-08-15 04:42 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-09-15 07:22:06 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
deleted two hosts via bulk action (44.98 KB, image/png)
2015-09-01 10:19 UTC, Sachin Ghai
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:1786 0 normal SHIPPED_LIVE Satellite 6.1.2 bug fix update 2015-09-15 11:20:04 UTC

Description John Matthews 2015-06-15 20:26:28 UTC
Description of problem:

I attempted to delete 3 managed hosts and received the below error.

My workflow was:
1) Provision 3 discovered hosts through RHCI
2) Delete the 3 VMs
3) Attempt to delete the 3 Host entries from Satellite




Action:

Actions::Katello::System::HostDestroy

Input:

{"managed"=>{"id"=>4, "name"=>"hypervisor4.example.com"},
 "host_id"=>4,
 "locale"=>"en"}

Output:

{}

Exception:

ActiveRecord::DeleteRestrictionError: Cannot delete record because of dependent content_host

Backtrace:

/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/associations/builder/has_one.rb:58:in `block in define_restrict_dependency_method'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:649:in `_run__1937261285174114874__destroy__2696001207723278878__callbacks'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:405:in `__run_callback'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:385:in `_run_destroy_callbacks'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:81:in `run_callbacks'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/callbacks.rb:254:in `destroy'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:236:in `block in destroy'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:295:in `block in with_transaction_returning_status'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:208:in `transaction'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:293:in `with_transaction_returning_status'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:236:in `destroy'
/opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.49/app/lib/actions/katello/system/host_destroy.rb:33:in `finalize'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.7.7/lib/dynflow/action.rb:503:in `block (2 levels) in execute_finalize'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.7.7/lib/dynflow/middleware/stack.rb:26:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.7.7/lib/dynflow/middleware/stack.rb:26:in `pass'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.7.7/lib/dynflow/middleware.rb:16:in `pass'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.7.7/lib/dynflow/action/progress.rb:30:in `with_progress_calculation'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.7.7/lib/dynflow/action/progress.rb:22:in `finalize'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.7.7/lib/dynflow/middleware/stack.rb:22:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.7.7/lib/dynflow/middleware/stack.rb:26:in `pass'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.7.7/lib/dynflow/middleware.rb:16:in `pass'
/opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.49/app/lib/actions/middleware/keep_locale.rb:27:in `block in finalize'
/opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.49/app/lib/actions/middleware/keep_locale.rb:34:in `with_locale'
/opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.49/app/lib/actions/middleware/keep_locale.rb:27:in `finalize'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.7.7/lib/dynflow/middleware/stack.rb:22:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.7.7/lib/dynflow/middleware/world.rb:30:in `execute'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.7.7/lib/dynflow/action.rb:502:in `block in execute_finalize'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.7.7/lib/dynflow/action.rb:396:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.7.7/lib/dynflow/action.rb:396:in `block in with_error_handling'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.7.7/lib/dynflow/action.rb:396:in `catch'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.7.7/lib/dynflow/action.rb:396:in `with_error_handling'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.7.7/lib/dynflow/action.rb:501:in `execute_finalize'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.7.7/lib/dynflow/action.rb:256:in `execute'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.7.7/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.7.7/lib/dynflow/execution_plan/steps/abstract.rb:155:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.7.7/lib/dynflow/execution_plan/steps/abstract.rb:155:in `with_meta_calculation'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.7.7/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.7.7/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:22:in `open_action'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.7.7/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:7:in `execute'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.7.7/lib/dynflow/executors/parallel/sequential_manager.rb:72:in `run_step'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.7.7/lib/dynflow/executors/parallel/sequential_manager.rb:57:in `dispatch'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.7.7/lib/dynflow/executors/parallel/sequential_manager.rb:64:in `block in run_in_sequence'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.7.7/lib/dynflow/executors/parallel/sequential_manager.rb:64:in `each'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.7.7/lib/dynflow/executors/parallel/sequential_manager.rb:64:in `all?'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.7.7/lib/dynflow/executors/parallel/sequential_manager.rb:64:in `run_in_sequence'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.7.7/lib/dynflow/executors/parallel/sequential_manager.rb:53:in `dispatch'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.7.7/lib/dynflow/executors/parallel/sequential_manager.rb:28:in `block (2 levels) in finalize'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.7.7/lib/dynflow/middleware/stack.rb:26:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.7.7/lib/dynflow/middleware/stack.rb:26:in `pass'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.7.7/lib/dynflow/middleware.rb:16:in `pass'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.7.7/lib/dynflow/middleware.rb:41:in `finalize_phase'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.7.7/lib/dynflow/middleware/stack.rb:22:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.7.7/lib/dynflow/middleware/stack.rb:26:in `pass'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.7.7/lib/dynflow/middleware.rb:16:in `pass'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.7.7/lib/dynflow/middleware.rb:41:in `finalize_phase'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.7.7/lib/dynflow/middleware/stack.rb:22:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.7.7/lib/dynflow/middleware/stack.rb:26:in `pass'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.7.7/lib/dynflow/middleware.rb:16:in `pass'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.7.7/lib/dynflow/middleware.rb:41:in `finalize_phase'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.7.7/lib/dynflow/middleware/stack.rb:22:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.7.7/lib/dynflow/middleware/world.rb:30:in `execute'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.7.7/lib/dynflow/executors/parallel/sequential_manager.rb:27:in `block in finalize'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:208:in `transaction'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.7.7/lib/dynflow/transaction_adapters/active_record.rb:5:in `transaction'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.7.7/lib/dynflow/executors/parallel/sequential_manager.rb:24:in `finalize'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.7.7/lib/dynflow/executors/parallel/worker.rb:23: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:in `tap'
/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:in `block 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.7.7/lib/dynflow/executors/parallel/worker.rb:17:in `on_message'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.7.7/lib/dynflow/micro_actor.rb:82:in `on_envelope'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.7.7/lib/dynflow/micro_actor.rb:72:in `receive'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.7.7/lib/dynflow/micro_actor.rb:99:in `block (2 levels) in run'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.7.7/lib/dynflow/micro_actor.rb:99:in `loop'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.7.7/lib/dynflow/micro_actor.rb:99:in `block in run'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.7.7/lib/dynflow/micro_actor.rb:99:in `catch'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.7.7/lib/dynflow/micro_actor.rb:99:in `run'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.7.7/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:in `call'
/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'

Comment 1 RHEL Program Management 2015-06-15 20:32:25 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 3 Chris Peters 2015-07-20 16:11:30 UTC
Unable to reproduce.

This bug appears to have been fixed upstream via the following:

https://github.com/Katello/katello/commit/6040e3337ea4d47109ad2b10c3d4cf537bcd0519

This code has already been merged into the downstream repo as well.

-Chris

Comment 5 John Matthews 2015-07-20 18:12:19 UTC
Hi Chris, 

This is the version of katello we are running RHCI:
  katello-2.2.0.11-1.el7sat.noarch

I believe it contains the patches you reference.

This issue is not reproduceable every time, past few runs I've had I could not reproduce this.

Comment 6 Chris Peters 2015-07-20 19:02:52 UTC
The latest version of satellite-6.1.0-rhel-7-candidate contains version ruby193-rubygem-katello-2.2.0.58-1.el7sat. This tag has the code fix to enable multiple host deletion.

Comment 7 Chris Peters 2015-07-20 20:22:53 UTC
This functionality is available in the latest build and ready for QE verification.

Comment 8 Bryan Kearney 2015-07-21 14:46:28 UTC
*** Bug 1241923 has been marked as a duplicate of this bug. ***

Comment 9 John Matthews 2015-07-30 17:09:10 UTC
FYI, running snap14 I saw a problem that might be related.

I attempted to provision a discovered host, the host failed to provision due to a missing PXELinux template.  The host is now in a state where I can not delete it.

2015-07-30 13:06:11 [I] Completed 200 OK in 97ms (Views: 74.8ms | ActiveRecord: 13.6ms)
2015-07-30 13:06:13 [E] PGError: ERROR:  update or delete on table "hosts" violates foreign key constraint "discovery_attribute_sets_host_id_fk" on table "discovery_attribute_sets"
DETAIL:  Key (id)=(3) is still referenced from table "discovery_attribute_sets".
: DELETE FROM "hosts" WHERE "hosts"."type" IN ('Host::Managed') AND "hosts"."id" = $1 (ActiveRecord::InvalidForeignKey)

Comment 10 Sachin Ghai 2015-09-01 10:18:10 UTC
Verified with sat6.1.2 SNAP1

I was able to bulk delete host without any issue:

Steps taken:

- Discovered 2 hosts
- provision them using rhel71
- delete the vm's
- Go to webUI --> Hosts --> All hosts
- select two provisioned hosts --> select All menu -> Delete hosts


 2015-09-01 06:13:13 [I] Processing by HostsController#multiple_destroy as HTML
2015-09-01 06:13:13 [I]   Parameters: {"host_ids"=>["3", "4"]}
2015-09-01 06:13:13 [I]   Rendered hosts/_selected_hosts.html.erb (6.5ms)
2015-09-01 06:13:13 [I]   Rendered hosts/multiple_destroy.html.erb within layouts/application (9.2ms)
2015-09-01 06:13:13 [I]   Rendered home/_submenu.html.erb (1.5ms)
2015-09-01 06:13:13 [I]   Rendered home/_user_dropdown.html.erb (1.0ms)
2015-09-01 06:13:13 [I] Read fragment views/tabs_and_title_records-3 (0.1ms)
2015-09-01 06:13:13 [I]   Rendered home/_topbar.html.erb (3.6ms)
2015-09-01 06:13:13 [I]   Rendered layouts/base.html.erb (4.6ms)
2015-09-01 06:13:13 [I] Completed 200 OK in 47ms (Views: 35.3ms | ActiveRecord: 3.0ms)



2015-09-01 06:14:10 [I] Processing by HostsController#submit_multiple_destroy as HTML
2015-09-01 06:14:10 [I]   Parameters: {"utf8"=>"✓", "authenticity_token"=>"0BJRyYtfT4npiTtB7SS0O++As35t3a1PnoixKmFquQQ=", "host_ids"=>["3", "4"]}
2015-09-01 06:14:11 [I] Redirected to https://cloud-qe-22.idmqe.lab.eng.bos.redhat.com/foreman_tasks/tasks/076b3975-6973-4b67-912e-078c9f5a2fdf
2015-09-01 06:14:11 [I] Completed 302 Found in 1138ms (ActiveRecord: 24.7ms)
2015-09-01 06:14:12 [I] Processing by ForemanTasks::TasksController#show as HTML
2015-09-01 06:14:12 [I]   Parameters: {"id"=>"076b3975-6973-4b67-912e-078c9f5a2fdf"}
2015-09-01 06:14:12 [I]   Rendered /opt/rh/ruby193/root/usr/share/gems/gems/foreman-tasks-0.6.15.5/app/views/foreman_tasks/tasks/_details.html.erb (67.3ms)
2015-09-01 06:14:12 [I]   Rendered /opt/rh/ruby193/root/usr/share/gems/gems/foreman-tasks-0.6.15.5/app/views/foreman_tasks/tasks/_running_steps.html.erb (2.4ms)
2015-09-01 06:14:12 [I]   Rendered /opt/rh/ruby193/root/usr/share/gems/gems/foreman-tasks-0.6.15.5/app/views/foreman_tasks/tasks/_errors.html.erb (0.8ms)
2015-09-01 06:14:12 [I]   Rendered /opt/rh/ruby193/root/usr/share/gems/gems/foreman-tasks-0.6.15.5/app/views/foreman_tasks/tasks/_raw.html.erb (3.4ms)
2015-09-01 06:14:12 [I]   Rendered /opt/rh/ruby193/root/usr/share/gems/gems/foreman-tasks-0.6.15.5/app/views/foreman_tasks/tasks/_locks.html.erb (1.5ms)
2015-09-01 06:14:12 [I]   Rendered /opt/rh/ruby193/root/usr/share/gems/gems/foreman-tasks-0.6.15.5/app/views/foreman_tasks/tasks/show.html.erb within layouts/application (103.0ms)
2015-09-01 06:14:12 [I]   Rendered home/_submenu.html.erb (1.5ms)
2015-09-01 06:14:12 [I]   Rendered home/_user_dropdown.html.erb (1.0ms)
2015-09-01 06:14:12 [I] Read fragment views/tabs_and_title_records-3 (0.1ms)
2015-09-01 06:14:12 [I]   Rendered home/_topbar.html.erb (3.6ms)
2015-09-01 06:14:12 [I]   Rendered layouts/base.html.erb (4.6ms)
2015-09-01 06:14:12 [I] Completed 200 OK in 143ms (Views: 131.7ms | ActiveRecord: 3.5ms)
2015-09-01 06:14:12 [I] re-indexing pool 8a90e00e4f73a6d9014f86cfa89c0017.
2015-09-01 06:14:13 [I] Delete the DNS PTR record for 192.168.100.11/mac52540003a592.idmqe.lab.eng.bos.redhat.com
2015-09-01 06:14:13 [I] re-indexing pool 8a90e00e4f73a6d9014f87d817570030.
2015-09-01 06:14:13 [I] Delete the DNS A record for mac52540003a592.idmqe.lab.eng.bos.redhat.com/192.168.100.11
2015-09-01 06:14:14 [I] Delete DHCP reservation for mac52540003a592.idmqe.lab.eng.bos.redhat.com-52:54:00:03:a5:92/192.168.100.11
2015-09-01 06:14:14 [I] Delete the TFTP configuration for mac52540003a592.idmqe.lab.eng.bos.redhat.com
2015-09-01 06:14:14 [I] Remove puppet certificate for mac52540003a592.idmqe.lab.eng.bos.redhat.com
2015-09-01 06:14:14 [I] re-indexing pool 8a90e00e4f73a6d9014f87d84c790036.
2015-09-01 06:14:15 [I] Delete the autosign entry for mac52540003a592.idmqe.lab.eng.bos.redhat.com
2015-09-01 06:14:15 [I] Delete the DNS PTR record for 192.168.100.13/mac5254000b70c6.idmqe.lab.eng.bos.redhat.com
2015-09-01 06:14:15 [I] Delete the DNS A record for mac5254000b70c6.idmqe.lab.eng.bos.redhat.com/192.168.100.13
2015-09-01 06:14:15 [I] Delete DHCP reservation for mac5254000b70c6.idmqe.lab.eng.bos.redhat.com-52:54:00:0b:70:c6/192.168.100.13
2015-09-01 06:14:15 [I] Delete the TFTP configuration for mac5254000b70c6.idmqe.lab.eng.bos.redhat.com
2015-09-01 06:14:16 [I] Remove puppet certificate for mac5254000b70c6.idmqe.lab.eng.bos.redhat.com
2015-09-01 06:14:17 [I] Delete the autosign entry for mac5254000b70c6.idmqe.lab.eng.bos.redhat.com
2015-09-01 06:14:17 [I] Processing by ForemanTasks::TasksController#show as */*
2015-09-01 06:14:17 [I]   Parameters: {"id"=>"076b3975-6973-4b67-912e-078c9f5a2fdf"}
2015-09-01 06:14:17 [I] re-indexing pool 8a90e00e4f73a6d9014f86cfa89c0017.
2015-09-01 06:14:17 [I]   Rendered /opt/rh/ruby193/root/usr/share/gems/gems/foreman-tasks-0.6.15.5/app/views/foreman_tasks/tasks/_details.html.erb (228.2ms)
2015-09-01 06:14:17 [I]   Rendered /opt/rh/ruby193/root/usr/share/gems/gems/foreman-tasks-0.6.15.5/app/views/foreman_tasks/tasks/_running_steps.html.erb (1.3ms)
2015-09-01 06:14:17 [I]   Rendered /opt/rh/ruby193/root/usr/share/gems/gems/foreman-tasks-0.6.15.5/app/views/foreman_tasks/tasks/_errors.html.erb (0.1ms)
2015-09-01 06:14:17 [I]   Rendered /opt/rh/ruby193/root/usr/share/gems/gems/foreman-tasks-0.6.15.5/app/views/foreman_tasks/tasks/_raw.html.erb (2.6ms)
2015-09-01 06:14:17 [I]   Rendered /opt/rh/ruby193/root/usr/share/gems/gems/foreman-tasks-0.6.15.5/app/views/foreman_tasks/tasks/_locks.html.erb (0.9ms)
2015-09-01 06:14:17 [I]   Rendered /opt/rh/ruby193/root/usr/share/gems/gems/foreman-tasks-0.6.15.5/app/views/foreman_tasks/tasks/show.html.erb within layouts/application (235.7ms)
2015-09-01 06:14:17 [I]   Rendered home/_submenu.html.erb (1.5ms)
2015-09-01 06:14:17 [I]   Rendered home/_user_dropdown.html.erb (1.0ms)
2015-09-01 06:14:17 [I] Read fragment views/tabs_and_title_records-3 (0.1ms)
2015-09-01 06:14:17 [I]   Rendered home/_topbar.html.erb (3.5ms)
2015-09-01 06:14:17 [I]   Rendered layouts/base.html.erb (4.5ms)
2015-09-01 06:14:17 [I] Completed 200 OK in 259ms (Views: 248.7ms | ActiveRecord: 3.1ms)
2015-09-01 06:14:18 [I] re-indexing pool 8a90e00e4f73a6d9014f87d817570030.
2015-09-01 06:14:19 [I] re-indexing pool 8a90e00e4f73a6d9014f87d84c790036.
2015-09-01 06:14:25 [I] Processing by ForemanTasks::TasksController#show as */*
2015-09-01 06:14:25 [I]   Parameters: {"id"=>"076b3975-6973-4b67-912e-078c9f5a2fdf"}
2015-09-01 06:14:25 [I]   Rendered /opt/rh/ruby193/root/usr/share/gems/gems/foreman-tasks-0.6.15.5/app/views/foreman_tasks/tasks/_details.html.erb (81.0ms)
2015-09-01 06:14:25 [I]   Rendered /opt/rh/ruby193/root/usr/share/gems/gems/foreman-tasks-0.6.15.5/app/views/foreman_tasks/tasks/_running_steps.html.erb (0.3ms)
2015-09-01 06:14:25 [I]   Rendered /opt/rh/ruby193/root/usr/share/gems/gems/foreman-tasks-0.6.15.5/app/views/foreman_tasks/tasks/_errors.html.erb (0.1ms)
2015-09-01 06:14:25 [I]   Rendered /opt/rh/ruby193/root/usr/share/gems/gems/foreman-tasks-0.6.15.5/app/views/foreman_tasks/tasks/_raw.html.erb (2.2ms)
2015-09-01 06:14:25 [I]   Rendered /opt/rh/ruby193/root/usr/share/gems/gems/foreman-tasks-0.6.15.5/app/views/foreman_tasks/tasks/_locks.html.erb (0.7ms)
2015-09-01 06:14:25 [I]   Rendered /opt/rh/ruby193/root/usr/share/gems/gems/foreman-tasks-0.6.15.5/app/views/foreman_tasks/tasks/show.html.erb within layouts/application (86.2ms)
2015-09-01 06:14:25 [I]   Rendered home/_submenu.html.erb (1.5ms)
2015-09-01 06:14:25 [I]   Rendered home/_user_dropdown.html.erb (0.9ms)
2015-09-01 06:14:25 [I] Read fragment views/tabs_and_title_records-3 (0.1ms)
2015-09-01 06:14:25 [I]   Rendered home/_topbar.html.erb (3.4ms)
2015-09-01 06:14:25 [I]   Rendered layouts/base.html.erb (4.4ms)
2015-09-01 06:14:25 [I] Completed 200 OK in 100ms (Views: 90.3ms | ActiveRecord: 2.6ms)

Comment 11 Sachin Ghai 2015-09-01 10:19:22 UTC
Created attachment 1068932 [details]
deleted two hosts via bulk action

Comment 12 Sachin Ghai 2015-09-01 10:33:45 UTC
I tried host deletion with and without org association. However couldn't reproduce the reported issue. So moving to verified.

build used:

foreman-discovery-image-2.1.0-36.el7sat.noarch
ruby193-rubygem-foreman_discovery-2.0.0.19-1.el7sat.noarch
rubygem-hammer_cli_foreman_docker-0.0.3.9-1.el7sat.noarch
ruby193-rubygem-foreman_docker-1.2.0.20-1.el7sat.noarch
rubygem-hammer_cli_foreman_discovery-0.0.1.10-1.el7sat.noarch
foreman-proxy-1.7.2.5-1.el7sat.noarch
foreman-libvirt-1.7.2.35-1.el7sat.noarch
katello-certs-tools-2.2.1-1.el7sat.noarch
katello-service-2.2.0.15-1.el7sat.noarch
katello-debug-2.2.0.15-1.el7sat.noarch
foreman-compute-1.7.2.35-1.el7sat.noarch
foreman-gce-1.7.2.35-1.el7sat.noarch
ruby193-rubygem-foreman-redhat_access-0.2.3-1.el7sat.noarch
rubygem-hammer_cli_foreman_tasks-0.0.3.5-1.el7sat.noarch
katello-common-2.2.0.15-1.el7sat.noarch
cloud-qe-22.idmqe.lab.eng.bos.redhat.com-foreman-client-1.0-1.noarch
cloud-qe-22.idmqe.lab.eng.bos.redhat.com-foreman-proxy-client-1.0-1.noarch
foreman-debug-1.7.2.35-1.el7sat.noarch
foreman-ovirt-1.7.2.35-1.el7sat.noarch
ruby193-rubygem-foreman_hooks-0.3.7-2.el7sat.noarch
rubygem-hammer_cli_foreman-0.1.4.14-1.el7sat.noarch
ruby193-rubygem-foreman_gutterball-0.0.1.9-1.el7sat.noarch
katello-server-ca-1.0-1.noarch
foreman-postgresql-1.7.2.35-1.el7sat.noarch
katello-installer-base-2.3.18-1.el7sat.noarch
pulp-katello-0.5-1.el7sat.noarch
foreman-vmware-1.7.2.35-1.el7sat.noarch
rubygem-hammer_cli_foreman_bootdisk-0.1.2.7-1.el7sat.noarch
ruby193-rubygem-katello-2.2.0.67-1.el7sat.noarch
katello-installer-2.3.18-1.el7sat.noarch
foreman-1.7.2.35-1.el7sat.noarch
ruby193-rubygem-foreman-tasks-0.6.15.5-1.el7sat.noarch
rubygem-hammer_cli_katello-0.0.7.17-1.el7sat.noarch
katello-2.2.0.15-1.el7sat.noarch
foreman-selinux-1.7.2.13-1.el7sat.noarch
katello-default-ca-1.0-1.noarch
ruby193-rubygem-foreman_bootdisk-4.0.2.13-1.el7sat.noarch
cloud-qe-22.idmqe.lab.eng.bos.redhat.com-foreman-proxy-1.0-2.noarch

Comment 14 errata-xmlrpc 2015-09-15 07:22:06 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/RHBA-2015:1786


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