Project

General

Custom queries

Profile

Actions

Bug #15340

closed

Org destroy not unassociating host groups

Added by Partha Aji almost 9 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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


Related issues 1 (0 open1 closed)

Has duplicate Katello - Bug #21140: If you are in org foo, you cannot delete org bar if bar has systems in it.DuplicatePartha Aji09/27/2017Actions
Actions #1

Updated by Partha Aji almost 9 years ago

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

Actions #15

Updated by Partha Aji about 8 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF