Abstract node free disk space check
Abstract node free disk space check

Both create instance and grow disk check the free disk space on nodes
using the same, duplicate code. Since we'll need this in other places in
the future, we abstract the check into a new function.

The patch adjusts the error message to be more in-line with the one for
memory checking, and fixes the exception raised for RPC errors.

Signed-off-by: Iustin Pop <acf83a5274f31a43af6b914614365999469c1a31@google.com>
Reviewed-by: Michael Hanselmann <68b67885ff74281219b4a4be33cc20fd45078d7c@google.com>

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