I put an host in maintenance with 'update reason' : <status> <state>maintenance</state> <detail>update</detail> </status> Then click "Upgrade in the GUI, the maintenance reason is gone : <status> <state>maintenance</state> </status> Using the API gave the same result.
If you reinstall the host and disable "Activate after install" option, then host changes status to Installing and after that back to Maintenance, but in this case Maintenance reason is lost
We didn't get to this bug for more than 2 years, and it's not being considered for the upcoming 4.4. It's unlikely that it will ever be addressed so I'm suggesting to close it. If you feel this needs to be addressed and want to work on it please remove cond nack and target accordingly.
ok, closing. Please reopen if still relevant/you want to work on it.