I'm glad that i solved the problem but i would like to know why in the GUI:

1) The Force Remove Data Center didn't work ? I can understand the Remove Data Center is the standard way to do it and it checks all is working before doing it, but if it doesn't work the Force Remove would remove it without checks (Storage Domains in maintenance ? Host not configured ? SPM not working ?) maybe it can show a message that it is not recommended but then it would work always and remove always a Data Center

2) Is not there an option to Force Maintenance a Storage Domain without a SPM host active or no Host configured ? Again an option that alert the administrator about the possibile issues

Or

3) Is not there an option under Administration Panel that would permit to Force the Maintenace of a Storage Domain (it is just a simple change of a value of a field of a table in a Database).

Repeat i know how it would work, but then having a way to fix it if someone has not followed the standard way to do it, would be easy (it is just a value in a database that blocks removing the Data Center).

Just my opinions

Claudio

On 24/09/19 17:23, Claudio Soprano wrote:

Thanks, i solved putting all the Storage domains in maintenance manually changing the status to the value of 6 in the postgres database like you suggested.

After that i could remove the data center from the ovirt management interface.

Thanks again for your help

Claudio

Il 24/09/19 13:50, Benny Zlotnik ha scritto:
ah yes, it's generally a good idea to move them to maintenance in the case you describe

you can brobably change the status manually in the database, the table is storage_pool_iso_map, and the status code for maintenance is 6

On Tuesday, September 24, 2019, Claudio Soprano <Claudio.Soprano@lnf.infn.it> wrote:
> Yes, i tried it and i got
>
> "Error while executing action: Cannot remove Data Center which contains Storage Domains that are not in Maintenance status.
> -Please deactivate all domains and wait for tasks to finish before removing the Data Center."
>
> But the domains are only attachable or activable, so i don't know what to do.
>
> Claudio
>
> Il 24/09/19 12:19, Benny Zlotnik ha scritto:
>>
>> Did you try to force remove the DC?
>> You have the option in the UI
>>
>> On Tue, Sep 24, 2019 at 1:07 PM Claudio Soprano
>> <Claudio.Soprano@lnf.infn.it> wrote:
>>>
>>> Hi to all,
>>>
>>> We are using ovirt to manage 6 Data Centers, 3 of them are old Data
>>> Centers with no hosts inside, but with domains, storage and VMs not running.
>>>
>>> We left them because we wanted to have some backups in case of failure
>>> of the new Data Centers created.
>>>
>>> Time pass and now we would like to remove these Data Centers, but we got
>>> no way for now to remove them.
>>>
>>> If we try to remove the Storage Domains (using remove o destroy) we get
>>>
>>> "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."
>>>
>>> if we try to remove the Data Center directly we get
>>>
>>> "Error while executing action: Cannot remove Data Center. There is no
>>> active Host in the Data Center."
>>>
>>> How can we solve the problem ?
>>>
>>> It can be done via ovirt-shell or using some script or via ovirt
>>> management interface ?
>>>
>>> Thanks in advance
>>>
>>> Claudio
>>> _______________________________________________
>>> Users mailing list -- users@ovirt.org
>>> To unsubscribe send an email to users-leave@ovirt.org
>>> Privacy Statement: https://www.ovirt.org/site/privacy-policy/
>>> oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/
>>> List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/SADE4JVXJYKZZQ7M3EPB4FY7LWLJPKFK/
>

_______________________________________________
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-leave@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/
List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/PC2TNOIDTORQMLQWR4GHUXBWK7WVO6ED/
-- 

       /        |    /   _____/           /    |    /   _____/    |    /
      /       / |   /   /                /   / |   /   /        / |   /
     /       /  |  /   ___/   _____/    /   /  |  /   ___/     /  |  /
    /       /   | /   /                /   /   | /   /        /   | /
  ______/ _/   __/  _/               _/  _/   __/  _/       _/   __/

Claudio Soprano                phone:  (+39)-06-9403.2349/2355
Computing Service              fax:    (+39)-06-9403.2649
LNF-INFN                       e-mail: Claudio.Soprano@lnf.infn.it
Via Enrico Fermi, 40           www:    http://www.lnf.infn.it/
I-00044 Frascati, Italy