Description of problem: Failed to force delete data center (REST API V3) with error: <fault> <reason>Operation Failed</reason> <detail>[Cannot remove Data Center. There is no active Host in the Data Center.]</detail> </fault> Version-Release number of selected component (if applicable): rhevm-4.0.2.6-0.1.el7ev.noarch Steps to Reproduce: DELETE to /ovirt-engine/api/datacenters/<DC_ID> body: <action> <force>true</force> </action>
Meni, this looks like error message from engine (maybe the is in RemoveDC command) and not REST, could you please test that you are able to force remove the same DC in webadmin?
I can force remove from UI.
This is a bug in the V3 compatibility layer, we will fix it. Meanwhile if you need to force a remove a data center you should be able to do it using the "force" parameter: DELETE /ovirt-engine/api/datacenters/{datacenter:id}?force=true Version: 3 Note that this parameter was added in version 4 of the API, but as version 3 of the API delegates most work to version 4, you can use it with version 3 as well.
This bug report has Keywords: Regression or TestBlocker. Since no regressions or test blockers are allowed between releases, it is also being identified as a blocker for this release. Please resolve ASAP.
I think that even if this is a regression, it isn't a blocker, because there is a workaround.
forced to delete datacenter with error [Cannot remove Data Center. There is no active Host in the Data Center.] in version 3 verified in ovirt-engine-restapi-4.0.4-0.1.el7ev.noarch