Fix computation of disk sizes in _ComputeDiskSize
Fix computation of disk sizes in _ComputeDiskSize

Currently, hail fails with FailDisk when trying to add an instance
of type: 'file', 'sharedfile' and 'rbd'.

This is due to a "0" or None value in the corresponding dict inside
_ComputeDiskSize, which results in a "O" or non Int value of the
exported 'disk_space_total' parameter. This in turn makes hail fail,
when trying to process the value:

 - with "Unable to read Int" if value is None (file)
 - with FailDisk if value is 0 (sharedfile, rbd)

The latter happens because the 0 value doesn't match the instance's
IPolicy, since it is lower than the minimum disk size.

The second problem still exists when using adoption with 'plain'
and 'blockdev' template and will be addressed in another commit.

Signed-off-by: Constantinos Venetsanopoulos <5aa4b75752c9a2933cd7300cda758def9255d1ca@grnet.gr>
Signed-off-by: Iustin Pop <acf83a5274f31a43af6b914614365999469c1a31@google.com>
Reviewed-by: Iustin Pop <acf83a5274f31a43af6b914614365999469c1a31@google.com>

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