Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1056232

Summary: Deleting a Data Center with Clusters on it
Product: [Retired] oVirt Reporter: Vitor de Lima <vitor.lima>
Component: ovirt-engine-coreAssignee: Eli Mesika <emesika>
Status: CLOSED NOTABUG QA Contact: bugs <bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.4CC: acathrow, emesika, gklein, gustavo.pedrosa, iheim, leonardo.bianconi, ofrenkel, vitor.lima, yeylon
Target Milestone: ---   
Target Release: 3.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-02-18 11:18:19 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Vitor de Lima 2014-01-21 18:11:47 UTC
Description of problem:
It is possible to remove a Data Center that still has Clusters on it.

Version-Release number of selected component (if applicable):
3.4 master branch (SHA-1 7fd49a34007892c44ba4ba18519a3fd9be60f16d)

How reproducible:
Always

Steps to Reproduce:
1. Remove a Data Center with Clusters on it
2.
3.

Actual results:
The engine should prevent this from happening.

Expected results:
The Data centers is removed and its clusters become orphaned.

Additional info:

Comment 1 Itamar Heim 2014-01-26 08:11:17 UTC
Setting target release to current version for consideration and review. please
do not push non-RFE bugs to an undefined target release to make sure bugs are
reviewed for relevancy, fix, closure, etc.

Comment 2 Omer Frenkel 2014-02-06 08:02:39 UTC
why this is a bug? where this behavior cause aby issue?
when you remove the DC, clusters has no DC, and user can re-assign them to a new DC.
please note that you cannot remove DC with vms/templates so there should not be any issue.

Comment 3 Vitor de Lima 2014-02-06 15:33:22 UTC
Sorry, I thought the missing data center in these orphaned clusters could cause issues later on, but if it isn't the case, no problem. Do you think preventing this kind of removal is a good idea?

Comment 4 Omer Frenkel 2014-02-06 15:43:28 UTC
i dont see a reason to prevent deleting such DC, unless we find this makes an issue. afaik, its not an issue, and i prefer not to block user from doing actions without a good reason for that.

Comment 5 Eli Mesika 2014-02-06 15:46:20 UTC
(In reply to Vitor de Lima from comment #3)
> Sorry, I thought the missing data center in these orphaned clusters could
> cause issues later on, but if it isn't the case, no problem. Do you think
> preventing this kind of removal is a good idea?

Vitor , did you use just remove or "force remove" to achieve that ???

IIRC this is not enable unless you check the force option 
If you did that using the force option then it is functions as designed , if not and still you had removed the DC its a bug and it should be resolved

Comment 6 Vitor de Lima 2014-02-10 12:31:08 UTC
I just used the "normal" remove.

Comment 7 Eli Mesika 2014-02-10 13:47:43 UTC
If the clusters have no Hosts/VMs this is OK and should closed as NOTABUG as Omer noted in comment 2

Any objection ?

Comment 8 Vitor de Lima 2014-02-18 11:09:14 UTC
No problem, I will just abandon the change that modifies this behavior.