Description of problem: When trying to deactivate host which is already in maintenance mode using Python SDK you will get: ovirtsdk4.Error: HTTP response code is 409. Version-Release number of selected component (if applicable): How reproducible: 100% Steps to Reproduce: 1. Connect to engine using ovirtsdk4 2. Deactivate host 3. Deactivate it again Actual results: You've got info that there HTTP res 409, it's not so informative. Expected results: Something about actual problem such as "You can't deactivate host which is already in maintenance mode"
Now the error looks nice: ovirtsdk4.Error: Fault reason is "Operation Failed". Fault detail is "[Cannot switch Host to Maintenance mode. Host is already in Maintenance mode.]". HTTP response code is 409.