Project

General

Custom queries

Profile

Actions

Bug #9577

closed

All Hosts - Bulk Action - Delete throws error Dependent Content Host

Added by Justin Sherrill about 10 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Normal
Category:
Hosts
Target version:
Difficulty:
easy
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1192730
Description of problem: When selecting a single or multiple hosts on the All Hosts page and selecting the Bulk Action/Select Action - Delete Hosts item, WebUI throws error "Cannot delete record because of dependent content_host"

Version-Release number of selected component (if applicable):
6.0.7

How reproducible:
Always

Steps to Reproduce:
1. Navigate to Hosts -> All Hosts
2. Select one or more hosts using the checkbox
3. Select Delete Hosts from the Select Action button pull-down
4. Confirm request in resulting dialog

Actual results:
Cannot delete record because of dependent content_host

Expected results:
Selected hosts should be deleted.

Additional info:
When selecting Delete from the "Table Button" marked Edit by default, delete works as expected.

Added by Justin Sherrill about 10 years ago

Revision 6040e333 (diff)

fixes #9577 - fixing host single and bulk delete

single host delete was broken due to content host AR destroy being
moved to finalize in dynflow
multi host delete was never actually implemented in dynflow

Added by Justin Sherrill about 10 years ago

Revision 1e07de2b

Merge pull request #5059 from jlsherrill/9577

fixes #9577 - fixing host single and bulk delete

Actions

Also available in: Atom PDF