Commit b1633ed9 authored by Michele Tartara's avatar Michele Tartara
Browse files

Make the DRBD collector more failure-resilient

If information about instances is not available, just log the error and
continue without it.
Signed-off-by: default avatarMichele Tartara <>
Reviewed-by: default avatarKlaus Aehlig <>
parent 838393d1
......@@ -195,7 +195,7 @@ buildJsonReport statusFile pairingFile = do
((E.try $ readFile statusFile) :: IO (Either IOError String)) >>=
exitIfBad "reading from file" . either (BT.Bad . show) BT.Ok
pairingResult <- getPairingInfo pairingFile
pairing <- exitIfBad "Can't get pairing info" pairingResult
pairing <- logWarningIfBad "Can't get pairing info" [] pairingResult
drbdData <-
case A.parse (drbdStatusParser pairing) $ pack contents of
A.Fail unparsedText contexts errorMessage -> exitErr $
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment