
Hi, I'm looking to use the SDK to detach a Non Master Storage Domain from a given Data Centre, without removing it from the system, ie it goes to Unattached mode. I have set the Domain to Maintenance, but can't see an obvious option for detaching it, except for removing it from the system entirely. Any advice is appreciated.

Hi, You could try `connection.system_service().data_centers_service().data_center_service(dc_id).storage_domains_service().storage_domain_service(sd_id).remove()` to detach a storage domain. By contrast, `connection.storage_domains_service().storage_domain_service(sd_id).remove()` would completely remove the storage domain from system. On Wed, Sep 4, 2019 at 6:25 PM <scott.fitzgerald@oracle.com> wrote:
Hi,
I'm looking to use the SDK to detach a Non Master Storage Domain from a given Data Centre, without removing it from the system, ie it goes to Unattached mode.
I have set the Domain to Maintenance, but can't see an obvious option for detaching it, except for removing it from the system entirely.
Any advice is appreciated. _______________________________________________ Devel mailing list -- devel@ovirt.org To unsubscribe send an email to devel-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/devel@ovirt.org/message/7IDHEY7BYBNJPO...
participants (2)
-
Joey Ma
-
scott.fitzgerald@oracle.com