[Users] How to force remove hosts, storage, datacenters

Hello, I have some inconsistencies so that I would like to reinitialize my datacenter. It is 3.2.1 on f18 engine and f18 host it consists of one host and one local_on_host storage domain I'm not able to delete the host. It results as unassigned and so I cannot delete it, but if I try to remove storage or datacenter I get: storage: destroy --> approve Error while executing action: Cannot destroy the master Storage Domain from the Data Center without another active Storage Domain to take its place. -Either activate another Storage Domain in the Data Center, or remove the Data Center. -If you have problems with the master Data Domain, consider following the recovery process described in the documentation, or contact your system administrator. datacenter: force remove --> approve Error: Cannot remove Repository while there are Hosts that are not in Maintenance mode. what can I do to force remove a host? The maintenance label is greyed out and it results as unassigned.... Thanks, Gianluca

Hello Gianluca, Recently I had a problem similar caused for an electrical power down unexpected. To remove VMs and storage domain I had to add first a new Master storage domain and after that I could delete it because they didn't exist fisically. I don't know If you have some element as VMs that are attached to this host or something like that. I hope that this cab be helpful. Juanjo. On Wed, Apr 10, 2013 at 11:27 PM, Gianluca Cecchi <gianluca.cecchi@gmail.com
wrote:
Hello, I have some inconsistencies so that I would like to reinitialize my datacenter. It is 3.2.1 on f18 engine and f18 host it consists of one host and one local_on_host storage domain I'm not able to delete the host. It results as unassigned and so I cannot delete it, but if I try to remove storage or datacenter I get:
storage: destroy --> approve Error while executing action: Cannot destroy the master Storage Domain from the Data Center without another active Storage Domain to take its place. -Either activate another Storage Domain in the Data Center, or remove the Data Center. -If you have problems with the master Data Domain, consider following the recovery process described in the documentation, or contact your system administrator.
datacenter: force remove --> approve Error: Cannot remove Repository while there are Hosts that are not in Maintenance mode.
what can I do to force remove a host? The maintenance label is greyed out and it results as unassigned....
Thanks, Gianluca _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

On Thu, Apr 11, 2013 at 1:04 PM, Juan Jose wrote:
Hello Gianluca,
Recently I had a problem similar caused for an electrical power down unexpected. To remove VMs and storage domain I had to add first a new Master storage domain and after that I could delete it because they didn't exist fisically.
I don't know If you have some element as VMs that are attached to this host or something like that. I hope that this cab be helpful.
It was just a newly created DC with one cluster and no VMs. Ok for your method that I already used in the past, but I would prefer a smarter way to disable / redefine a datacenter. Especially if it is empty. Gianluca

On 04/11/2013 03:22 PM, Gianluca Cecchi wrote:
On Thu, Apr 11, 2013 at 1:04 PM, Juan Jose wrote:
Hello Gianluca,
Recently I had a problem similar caused for an electrical power down unexpected. To remove VMs and storage domain I had to add first a new Master storage domain and after that I could delete it because they didn't exist fisically.
I don't know If you have some element as VMs that are attached to this host or something like that. I hope that this cab be helpful.
It was just a newly created DC with one cluster and no VMs. Ok for your method that I already used in the past, but I would prefer a smarter way to disable / redefine a datacenter. Especially if it is empty.
why couldn't you move the host to maint, then force remove the DC?

On Sat, Apr 20, 2013 at 9:54 PM, Itamar Heim wrote:
On 04/11/2013 03:22 PM, Gianluca Cecchi wrote:
On Thu, Apr 11, 2013 at 1:04 PM, Juan Jose wrote:
Hello Gianluca,
Recently I had a problem similar caused for an electrical power down unexpected. To remove VMs and storage domain I had to add first a new Master storage domain and after that I could delete it because they didn't exist fisically.
I don't know If you have some element as VMs that are attached to this host or something like that. I hope that this cab be helpful.
It was just a newly created DC with one cluster and no VMs. Ok for your method that I already used in the past, but I would prefer a smarter way to disable / redefine a datacenter. Especially if it is empty.
why couldn't you move the host to maint, then force remove the DC?
Yes my first error was to put SD into maintenance, that I don't know exactly what kind of effects is expected to produce... Next time I will have better doing what you say But it remains something strange (to me) this workflow: select storage then select a particular SD, then in the below pane select datacenter tab, select the DC of the SD and then maintenance... what is expected to do? Gianluca

On 04/20/2013 11:19 PM, Gianluca Cecchi wrote:
On Sat, Apr 20, 2013 at 9:54 PM, Itamar Heim wrote:
On 04/11/2013 03:22 PM, Gianluca Cecchi wrote:
On Thu, Apr 11, 2013 at 1:04 PM, Juan Jose wrote:
Hello Gianluca,
Recently I had a problem similar caused for an electrical power down unexpected. To remove VMs and storage domain I had to add first a new Master storage domain and after that I could delete it because they didn't exist fisically.
I don't know If you have some element as VMs that are attached to this host or something like that. I hope that this cab be helpful.
It was just a newly created DC with one cluster and no VMs. Ok for your method that I already used in the past, but I would prefer a smarter way to disable / redefine a datacenter. Especially if it is empty.
why couldn't you move the host to maint, then force remove the DC?
Yes my first error was to put SD into maintenance, that I don't know exactly what kind of effects is expected to produce... Next time I will have better doing what you say
But it remains something strange (to me) this workflow: select storage then select a particular SD, then in the below pane select datacenter tab, select the DC of the SD and then maintenance... what is expected to do?
Gianluca
detach the SD from that DC, as some types of SDs can be connected to multiple DCs. i agree for those that can't, you should open a BZ requesting to have a move to maint button on the main grid (but that could be confusing, since some SDs will have that in the main grid, and some will have it only in the subtab...)
participants (3)
-
Gianluca Cecchi
-
Itamar Heim
-
Juan Jose