Bug #15340
closed
Org destroy not unassociating host groups
Added by Partha Aji over 8 years ago.
Updated over 6 years ago.
Description
Create the following
1) New Org
2) Lifecycle Environment in the new org
3) CV promoted to that environment
4) Hostgroup with that environment and content view
5) Destroy the org
Error -
[foreman-tasks/action] [E] Cannot delete record because of dependent hostgroups (ActiveRecord::DeleteRestrictionError)
Expected
Clean deletion
Handy hammer script
suffix=$RANDOM
echo "$suffix"
hammer organization create --name=$suffix
hammer lifecycle-environment create --name=dev --prior=Library --organization=$suffix
hammer hostgroup create --name=$suffix --lifecycle-environment=dev --organizations=$suffix
hammer organization delete --name=$suffix
- Status changed from New to Ready For Testing
- Pull request https://github.com/Katello/katello/pull/6108 added
- Translation missing: en.field_release changed from 86 to 144
- Bugzilla link set to 1343795
- Translation missing: en.field_release changed from 144 to 168
- Translation missing: en.field_release changed from 168 to 171
- Translation missing: en.field_release deleted (
171)
- Translation missing: en.field_release set to 114
- Translation missing: en.field_release deleted (
114)
- Translation missing: en.field_release set to 188
- Target version set to 154
- Translation missing: en.field_release changed from 188 to 219
- Target version changed from 154 to 163
- Target version changed from 163 to 161
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
- Has duplicate Bug #21140: If you are in org foo, you cannot delete org bar if bar has systems in it. added
Also available in: Atom
PDF