listrunner: fix agent usage
authorIustin Pop <iustin@google.com>
Wed, 16 Feb 2011 12:32:29 +0000 (13:32 +0100)
committerIustin Pop <iustin@google.com>
Wed, 16 Feb 2011 16:35:28 +0000 (17:35 +0100)
commit99a11adc459e00eab1ce46e455c445f77c7ab80c
tree20872d93d3a50543b1e88a3540a2aea093b4c5e2
parent3d8f154f1863291dfd14793f45515e8996e25563
listrunner: fix agent usage

By delaying the agent key query until after the fork, we prevent the
problem of simultaneous access to the agent.

Tested that it works against 80 hosts in parallel without error; the
current version breaks already at 20 hosts.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
tools/ganeti-listrunner