Retry thrice if a qa times out

Since the qa can take a lot of connection, it might happen that one of
them times out for reasons unrelated to ganeti. This patch allows the qa
to retry the command in that case.

Signed-off-by: Aaron Karper <akarper@google.com>
Reviewed-by: Klaus Aehlig <aehlig@google.com>