Bug #15340

Org destroy not unassociating host groups

Added by Partha Aji about 1 year ago. Updated 4 months ago.

Status:Closed
Priority:Normal
Assigned To:Partha Aji
Category:-
Target version:Team Tom - iteration 10
Difficulty: Pull request:https://github.com/Katello/katello/pull/6108
Bugzilla link:1343795
Story points-
Velocity based estimate-
ReleaseKatello 3.3.1Release relationshipAuto

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

Associated revisions

Revision c6a4c5bf
Added by Partha Aji 4 months ago

Fixes #15340 - Org destroy unassociates hostgroups

Org destroy was not properly unassociating environments and content
views from hosts + hostgroups.

Updated the plan to handle that

History

#1 Updated by Partha Aji about 1 year 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

#2 Updated by The Foreman Bot about 1 year ago

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

#3 Updated by Eric Helms about 1 year ago

  • Release changed from Katello 3.0.0 to Katello 3.0.1

#4 Updated by Justin Sherrill about 1 year ago

  • Bugzilla link set to 1343795

#5 Updated by Eric Helms about 1 year ago

  • Release changed from Katello 3.0.1 to Katello 3.0.2

#6 Updated by Eric Helms 12 months ago

  • Release changed from Katello 3.0.2 to Katello 3.0.3

#7 Updated by Eric Helms 12 months ago

  • Release deleted (Katello 3.0.3)

#8 Updated by Justin Sherrill 11 months ago

  • Release set to Katello Backlog

#9 Updated by The Foreman Bot 10 months ago

  • Release deleted (Katello Backlog)

#10 Updated by Eric Helms 9 months ago

  • Release set to Katello 3.3.0

#11 Updated by Thomas McKay 6 months ago

  • Target version set to Team Tom - iteration 9

#12 Updated by Justin Sherrill 5 months ago

  • Release changed from Katello 3.3.0 to Katello 3.3.1

#13 Updated by Thomas McKay 5 months ago

  • Target version changed from Team Tom - iteration 9 to Team Brad - Iteration 10

#14 Updated by Thomas McKay 5 months ago

  • Target version changed from Team Brad - Iteration 10 to Team Tom - iteration 10

#15 Updated by Partha Aji 4 months ago

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

Also available in: Atom PDF