Make htools tolerate missing "dtotal" and "dfree" on luxi
authorKlaus Aehlig <aehlig@google.com>
Tue, 16 Jun 2015 09:15:48 +0000 (11:15 +0200)
committerKlaus Aehlig <aehlig@google.com>
Thu, 22 Oct 2015 14:21:26 +0000 (16:21 +0200)
commitb9c2b59acb5575eab44ac969e38bec2610a44499
treeec861ffea0d508ef92c00810ff24a2cbee910744
parentd2585aa5d38dd8adad98c9787bf1e4f2d3d03691
Make htools tolerate missing "dtotal" and "dfree" on luxi

If a cluster allows sharedfile as only disk template, the amount of
total and free disk space might not be available. This is perfectly
normal, hence make the luxi backend handle it gracefully and just report
0 available disk on 0 total disk.

Signed-off-by: Klaus Aehlig <aehlig@google.com>
Reviewed-by: Petr Pudlak <pudlak@google.com>

Cherry-picked-from: 49644203
Signed-off-by: Klaus Aehlig <aehlig@google.com>
Reviewed-by: Hrvoje Ribicic <riba@google.com>
src/Ganeti/HTools/Backend/Luxi.hs