Description of problem:
It is not possible to flip a host to the maintenance mode in case it is connecting or activating. It is understood that some status simply cannot be interrupted a host cannot be flipped to the maintenance mode immediately, but it should be possible to flip the host to the maintenance in the nearest possible state.
It is problematic to flip the host to the maintenance state if it is flipping between connecting and activating state. It may get to the non-operation state for short period of time, but one has to monitor the host and click the button as soon as itis in the non-operational state otherwise the host can flip to connecting again.
I think the safest method to achieve this is to add option to switch to Maintenance mode when admin execute power management restart on a host. This way we can be sure, that host resources were cleared (we can't be sure about it for SSH restart).
*** Bug 1670329 has been marked as a duplicate of this bug. ***
The host can't be switched to Maintenance from Unassigned state, either change the summary or create a fix so it is really all situations.
Tested on ovirt-engine-4.4.0-0.14.master.el7.noarch
Unassigned status is hidden status and it should always be a temporary short term status. This means that engine itself should move a host from Unassgined status to some other valid status automatically. If the host stays in Unassigned status for longer time (let's say a minute or more), then please file a bug, because there is no way how administrators could handle host in Unassigned status.
Verified on ovirt-engine-4.4.0-0.19.master.el7.noarch
This bugzilla is included in oVirt 4.4.0 release, published on May 20th 2020.
Since the problem described in this bug report should be
resolved in oVirt 4.4.0 release, it has been closed with a resolution of CURRENT RELEASE.
If the solution does not work for you, please open a new bug report.