Whamcloud - gitweb
LU-5420 mgc: MGC should retry for invalid import 58/11258/31
authorwang di <di.wang@intel.com>
Sun, 3 May 2015 12:11:22 +0000 (05:11 -0700)
committerAndreas Dilger <andreas.dilger@intel.com>
Wed, 6 May 2015 21:20:02 +0000 (21:20 +0000)
commit77d406a0699307e8e633ef41f8984f45c09db9b8
tree193aea44ca699dd4b95cec2a9bcdcd1745e59097
parente15535ff63bf90b93fa33393ed5d7f7f85813895
LU-5420 mgc: MGC should retry for invalid import

After http://review.whamcloud.com/#/c/9967/ is landed, mgc does
not wait the import connected(state = FULL), then enqueue and
retrieve config log, which will cause the mount process to fail,
especially if the mgc is shared by multiple targets.
So once mgc enqueue is failed, it will give another chance to
wait the import to recover, if the import comes back in time,
it will try to enqueue again. Otherwise it will use local config log.

Signed-off-by: Wang Di <di.wang@intel.com>
Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Change-Id: I8dbcafbda362ebbd3370e7527a3c14c594500c1e
Reviewed-on: http://review.whamcloud.com/11258
Tested-by: Jenkins
lustre/include/lustre_ha.h
lustre/mgc/mgc_request.c
lustre/obdclass/obd_mount_server.c
lustre/ptlrpc/import.c