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>
Mon, 22 Jun 2015 16:29:49 +0000 (18:29 +0200)
commit29c613712fab5ab393a88023aa7e890ca5ddcfeb
treeb998f6aa0078d91e095ee49d090c325e1d31e205
parent4ff1deda1446c35008e2a46b891b9ee0e35fde7d
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: 49644203823562de0945de3feca5dfaa0cc2dc9c
Signed-off-by: Klaus Aehlig <aehlig@google.com>
Reviewed-by: Hrvoje Ribicic <riba@google.com>
src/Ganeti/HTools/Backend/Luxi.hs