Handle nodes without local storage
Handle nodes without local storage

Our current cluster model is based on per-node storage, and as such we
don't handle shared disk templates. Until we can improve the model,
let's handle nodes without local storage better: in order to still
compute a valid cluster score, we need to handle nodes with tDsk == 0.

For this, we abstract the in-line computation of pDsk (which is used
in the cluster score) to a separate function which, for tDsk == 0,
returns instead 1 (i.e. disk fully used).

Signed-off-by: Iustin Pop <acf83a5274f31a43af6b914614365999469c1a31@google.com>
Reviewed-by: Guido Trotter <f62ca4d5358bdaeef0e50e57f9f7e231de63727e@google.com>

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