Add a delay in master failover
Add a delay in master failover

I have seen some very seldom errors where (it seems) the address is
still live for a short while after removing it from the old master, thus
the new master will fail in startup/adding its own IP address.

To prevent against this, we add a delay/retry before we proceed, if the
IP is still reachable.

Signed-off-by: Iustin Pop <acf83a5274f31a43af6b914614365999469c1a31@google.com>
Reviewed-by: René Nussbaumer <rn@google.com>
(cherry picked from commit 425f0f5470c912ff4a615d14c8b924116abe5c92)

Signed-off-by: Iustin Pop <acf83a5274f31a43af6b914614365999469c1a31@google.com>
Reviewed-by: Balazs Lecz <024c580adbe3324c61e798a30c60cf94ec02e89f@google.com>

dimara/ganeti,grnet/snf-ganeti,ganeti/ganeti,mbakke/ganeti,leshchevds/ganeti,onponomarev/ganeti,apyrgio/ganeti,leshchevds/ganeti,andir/ganeti,ganeti-github-testing/ganeti-test-1,apyrgio/snf-ganeti,yiannist/ganeti,apyrgio/ganeti,ganeti/ganeti,andir/ganeti,mbakke/ganeti,andir/ganeti,leshchevds/ganeti,grnet/snf-ganeti,ganeti/ganeti,ganeti-github-testing/ganeti-test-1,yiannist/ganeti,bitemyapp/ganeti,mbakke/ganeti,apyrgio/snf-ganeti,yiannist/ganeti,dimara/ganeti,onponomarev/ganeti,bitemyapp/ganeti