Bug 977883

Summary: removing default datacenter doesn't remove default cluster
Product: Red Hat Enterprise Virtualization Manager Reporter: Ohad Basan <obasan>
Component: ovirt-engineAssignee: Mooli Tayer <mtayer>
Status: CLOSED WORKSFORME QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.2.0CC: acathrow, amureini, bazulay, eedri, iheim, jkt, lpeer, obasan, ofrenkel, yeylon
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-10 13:55:18 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ohad Basan 2013-06-25 14:15:38 UTC
Description of problem:

When removing the default datacenter the default cluster doesn't get removed.
That could cause a host to get "stuck" on the default cluster without the ability to move it to another cluster.
on the UI it shows default cluster but when clicking edit it shows another active cluster.

Comment 2 Itamar Heim 2013-06-26 11:16:30 UTC
omer - didn't we use to block removing default DC due to blank template?

Comment 3 Omer Frenkel 2013-06-30 13:55:33 UTC
(In reply to Itamar Heim from comment #2)
> omer - didn't we use to block removing default DC due to blank template?

no, only remove of default cluster is blocked.
it is valid to have no dc in the system, because creating vms depends on that.
default cluster is needed because cluster is mandatory field of template.

there should not be a problem changing the cluster for such host (that is in a cluster with no dc), the reported problem here sounds like a UI problem.

Ohad, can you try to change the cluster using rest api?

Comment 4 Mooli Tayer 2013-07-10 13:55:18 UTC
to sum up the above:
1. Removing the default cluster should not be possible.
2. Moving a host from the default cluster to a different cluster should be possible.

Tried to do 2 and It worked. also contacted Ohad and he said that it did not reproduce for him too. Closing...