Check memory size before setting it
Check memory size before setting it

With this change when a user asks for a new memory size for an instance,
the number is checked instead of just applied. The operation fails only
if the instance would not be able to restart on its primary node, but
generates warnings should it be impossible to failover the instance or
should the computation be impossible due to nodes being unreachable.

This is a forward-port from branches/ganeti-1.2

Original-Reviewed-by: iustinp
Reviewed-by: iustinp



ganeti-github-testing/ganeti-test-1,ganeti-github-testing/ganeti-test-1,andir/ganeti,ganeti/ganeti,grnet/snf-ganeti,leshchevds/ganeti,leshchevds/ganeti,grnet/snf-ganeti,ganeti/ganeti,apyrgio/ganeti,dimara/ganeti,yiannist/ganeti,onponomarev/ganeti,andir/ganeti,apyrgio/snf-ganeti,ganeti/ganeti,yiannist/ganeti,apyrgio/ganeti,dimara/ganeti,yiannist/ganeti,bitemyapp/ganeti,mbakke/ganeti,mbakke/ganeti,mbakke/ganeti,bitemyapp/ganeti,leshchevds/ganeti,apyrgio/snf-ganeti,onponomarev/ganeti,andir/ganeti