[Users] How do you move an host with local-storage into "regular" Data Center?

Hi all, I need your help to clean up my DataCenter. I'm new to this wonderful product so I'm exploring to understand what's offered. I'm talking about 3.4.0beta3 (Centos 6.5). In the beginning it was a "normal" system with two hosts, an iSCSI storage, and the engine installed as a "regular" KVM guest on another host (external to the oVirt setup). So far so good. Then I selected one of the two hosts, put it in maintenance mode, clicked on "Configure Local Storage", accepted the defaults for "Data Center", "Cluster" and "Storage", put in an appropriate path to local storage... Now I have another DC (hostname-Local), another Cluster (hostname-Local) and another SD (hostname-Local). This host has been migrated from the original Cluster and it is now in the "hostname-Local" Cluster. Nothing to regret, I was expecting something like that. Obviously I have now a single host in my "main" DC and so I'm unable to do migration of VMs and so on. After some tests I decide to go back to the original situation. I put again the host in maintenance mode, "Edit", select the correct DC and the host is now back in his place. Now I try to remove the spurious DC to clean-up the situation but the result is an error popup: "Error while executing action: Cannot remove Data Center. There is no active Host in the Data Center." OK, I move again the host in. But now when I select the DC the "Remove" button is obviously greyed out. Well, for the moment I'm happy to move again the host into the regular DC to gain full functionality of my cluster but I would like to clean my setup removing the other, useless, DC. Does anyone know how to get out from this? I'm probably missing something obvious but here I'm stuck. TIA, Giorgio.

you did not remove the storage before moving the host. If you select the force remove DC option it should clean all object under that DC (just make sure you are selecting the one you want to remove ;)) On 02/26/2014 04:31 PM, Giorgio Bersano wrote:
Hi all, I need your help to clean up my DataCenter.
I'm new to this wonderful product so I'm exploring to understand what's offered. I'm talking about 3.4.0beta3 (Centos 6.5).
In the beginning it was a "normal" system with two hosts, an iSCSI storage, and the engine installed as a "regular" KVM guest on another host (external to the oVirt setup). So far so good.
Then I selected one of the two hosts, put it in maintenance mode, clicked on "Configure Local Storage", accepted the defaults for "Data Center", "Cluster" and "Storage", put in an appropriate path to local storage... Now I have another DC (hostname-Local), another Cluster (hostname-Local) and another SD (hostname-Local). This host has been migrated from the original Cluster and it is now in the "hostname-Local" Cluster. Nothing to regret, I was expecting something like that.
Obviously I have now a single host in my "main" DC and so I'm unable to do migration of VMs and so on.
After some tests I decide to go back to the original situation. I put again the host in maintenance mode, "Edit", select the correct DC and the host is now back in his place.
Now I try to remove the spurious DC to clean-up the situation but the result is an error popup: "Error while executing action: Cannot remove Data Center. There is no active Host in the Data Center."
OK, I move again the host in. But now when I select the DC the "Remove" button is obviously greyed out.
Well, for the moment I'm happy to move again the host into the regular DC to gain full functionality of my cluster but I would like to clean my setup removing the other, useless, DC. Does anyone know how to get out from this? I'm probably missing something obvious but here I'm stuck.
TIA, Giorgio. _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
-- Dafna Ron

2014-02-26 17:35 GMT+01:00 Dafna Ron <dron@redhat.com>:
you did not remove the storage before moving the host.
Well, I tried but then there was always something impossible to do, i.e. the Local Storage Domain was the only SD so, beeng it the Master SD, it wasn't possible to remove it... something like "the chicken or the egg" dilemma.
If you select the force remove DC option it should clean all object under that DC (just make sure you are selecting the one you want to remove ;))
That worked. I was just trying to avoid that "forced" option, but you confirmed me it was the only one. Thank you, Giorgio.

Actually to remove the the last domain in a DC the following steps will do it in and clean up everything without resorting to manual steps: 1. Deactivate and then detach all domains in the DC except last one 2. Deactivate last domain 3. Remove the datacenter (this takes a while since actually the host has to contend for SPM again, like reactivating the domain, in order to remove the DC) 4. DC should be removed and domain should remain unattached -> now domain can be removed 5. Move host to maintenance and switch it's cluster to proper dc (should now be possible since it's DC has been removed and is now blank) or move the host directly to proper cluster One thing to note when using force remove for DC is that it does *not* clean up the actual storage - only references to it from the DB (and that is why it disappears from the UI). You have to manually go to the host and clean the storage itself to free up that space Gadi Ickowicz ----- Original Message ----- From: "Giorgio Bersano" <giorgio.bersano@gmail.com> To: dron@redhat.com Cc: "users@ovirt.org" <Users@ovirt.org> Sent: Thursday, February 27, 2014 3:04:25 PM Subject: Re: [Users] How do you move an host with local-storage into "regular" Data Center? 2014-02-26 17:35 GMT+01:00 Dafna Ron <dron@redhat.com>:
you did not remove the storage before moving the host.
Well, I tried but then there was always something impossible to do, i.e. the Local Storage Domain was the only SD so, beeng it the Master SD, it wasn't possible to remove it... something like "the chicken or the egg" dilemma.
If you select the force remove DC option it should clean all object under that DC (just make sure you are selecting the one you want to remove ;))
That worked. I was just trying to avoid that "forced" option, but you confirmed me it was the only one. Thank you, Giorgio. _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

2014-02-27 14:46 GMT+01:00 Gadi Ickowicz <gickowic@redhat.com>:
Actually to remove the the last domain in a DC the following steps will do it in and clean up everything without resorting to manual steps:
1. Deactivate and then detach all domains in the DC except last one 2. Deactivate last domain 3. Remove the datacenter (this takes a while since actually the host has to contend for SPM again, like reactivating the domain, in order to remove the DC) 4. DC should be removed and domain should remain unattached -> now domain can be removed 5. Move host to maintenance and switch it's cluster to proper dc (should now be possible since it's DC has been removed and is now blank) or move the host directly to proper cluster
One thing to note when using force remove for DC is that it does *not* clean up the actual storage - only references to it from the DB (and that is why it disappears from the UI). You have to manually go to the host and clean the storage itself to free up that space
Gadi Ickowicz
Thank you Gadi, I'll try this procedure as soon as I'll have time to experiment. Was it already documented somewhere? In that case please forgive my ignorance. Giorgio
participants (3)
-
Dafna Ron
-
Gadi Ickowicz
-
Giorgio Bersano