Workaround fake failures in drbd+live migration
Workaround fake failures in drbd+live migration

This patch is an attempt to fix the ugly issue during migration:
  Cannot resync disks on node …: [True, 100]

If my understanding is correct, sometimes we poll the /proc/drbd file at
an inoportune moment, while it's being updated, or while the DRBD device
is changing state, and we see an unexpected state.

Based on the assumption that this is just a transient state, rather than
aborting directly, we change the backend.DrbdWaitSync() function to
retry a few times the operation, giving DRBD a chance to settle down at
the end of the resync.

Signed-off-by: Iustin Pop <acf83a5274f31a43af6b914614365999469c1a31@google.com>
Reviewed-by: Guido Trotter <f62ca4d5358bdaeef0e50e57f9f7e231de63727e@google.com>

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