Description of problem:
Organization fails to be deleted when having associated hostgroup (if it has Life-cycle Environment specified)
Version-Release number of selected component (if applicable):
SAt 6.2 snap 14.1
Steps to Reproduce:
1. Create a new organization
2. Create a new LCE with that organization
3. Create a new hostgroup with that org and LCE
4. Delete the organization
Task fails with:
[foreman-tasks/action] [E] Cannot delete record because of dependent hostgroups (ActiveRecord::DeleteRestrictionError)
Org deletion unassociates hostgroups and lce's
PR oepned https://github.com/Katello/katello/pull/6108
Upstream bug assigned to email@example.com
Upstream bug component is Content Management
Do we need separate bugs for every scenario that leads to this bug?: https://bugzilla.redhat.com/show_bug.cgi?id=1343108
Connecting redmine issue http://projects.theforeman.org/issues/15340 from this bug
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/15340 has been resolved.
*** Bug 1424607 has been marked as a duplicate of this bug. ***
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.