Project

General

Profile

Actions

Bug #15340

closed

Org destroy not unassociating host groups

Added by Partha Aji over 8 years ago. Updated over 6 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 over 8 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 #2

Updated by The Foreman Bot over 8 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/6108 added
Actions #3

Updated by Eric Helms over 8 years ago

  • Translation missing: en.field_release changed from 86 to 144
Actions #4

Updated by Justin Sherrill over 8 years ago

  • Bugzilla link set to 1343795
Actions #5

Updated by Eric Helms over 8 years ago

  • Translation missing: en.field_release changed from 144 to 168
Actions #6

Updated by Eric Helms over 8 years ago

  • Translation missing: en.field_release changed from 168 to 171
Actions #7

Updated by Eric Helms over 8 years ago

  • Translation missing: en.field_release deleted (171)
Actions #8

Updated by Justin Sherrill over 8 years ago

  • Translation missing: en.field_release set to 114
Actions #9

Updated by The Foreman Bot about 8 years ago

  • Translation missing: en.field_release deleted (114)
Actions #10

Updated by Eric Helms about 8 years ago

  • Translation missing: en.field_release set to 188
Actions #11

Updated by Thomas McKay almost 8 years ago

  • Target version set to 154
Actions #12

Updated by Justin Sherrill almost 8 years ago

  • Translation missing: en.field_release changed from 188 to 219
Actions #13

Updated by Thomas McKay almost 8 years ago

  • Target version changed from 154 to 163
Actions #14

Updated by Thomas McKay almost 8 years ago

  • Target version changed from 163 to 161
Actions #15

Updated by Partha Aji over 7 years ago

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

Updated by Partha Aji about 7 years ago

  • Has duplicate Bug #21140: If you are in org foo, you cannot delete org bar if bar has systems in it. added
Actions

Also available in: Atom PDF