Prevent a node in maintenance from being deployed

Prevent a node which is in maintenance mode from being deployed, other
operations like enabling/disabling the console and changing the power
state of the node should still be allowed.

Change-Id: I3b0139638816d1cbf909516b4e584f92bc89e88b
Merge "Prevent a node in maintenance from being deployed"