Prevent silent failure in case of connection problems
authorMichele Tartara <mtartara@google.com>
Tue, 9 Jul 2013 13:06:36 +0000 (15:06 +0200)
committerMichele Tartara <mtartara@google.com>
Tue, 9 Jul 2013 14:22:56 +0000 (14:22 +0000)
commitb23226d556cb30444cc7d4fb7854f7c5286ee159
tree4766643082e557af845049c8f968fd09b7796958
parent2bc994ce5c28a42753618dd8b5537afa9fe5fb8a
Prevent silent failure in case of connection problems

While running "gnt-node list", if a query to ConfD fails (especially
because of permission problems) it used to just fail silently, with gnt-node
showing question marks instead of data.

With this patch, ConfD records the error in its log file, together with a
message giving an indication of the reason.

Fixes Issue 517.

Signed-off-by: Michele Tartara <mtartara@google.com>
Reviewed-by: Klaus Aehlig <aehlig@google.com>
src/Ganeti/Query/Node.hs