]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fixes intermittent NFS driver mount failure
authorTom Barron <tpb@dyncloud.net>
Wed, 26 Nov 2014 21:01:14 +0000 (16:01 -0500)
committerTom Barron <tpb@dyncloud.net>
Mon, 8 Dec 2014 17:16:29 +0000 (17:16 +0000)
commitbc3241cf7f06871f8c15d04b77871185625165e2
tree75fc599d8a1cd3e8482f28c3b8ecf444c10ba2e7
parent83bc931790d895c4c1617931a69ac5b8294db642
Fixes intermittent NFS driver mount failure

During cinder volume driver initialization, NFS drivers often
fail to mount the NFS share backing their volumes, complaining
that the share in question is 'busy or already mounted'.

This commit introduces a retry loop around the ensure_mounted()
call inside set_nas_security_options() so that if there is contention
between volume process and backup process mounting the same share
the driver will not be stopped from loading.

Change-Id: I672433c1c31f420e5dcdbe565db3bb29af3abe7b
Closes-bug: 1395823
cinder/tests/test_nfs.py
cinder/volume/drivers/nfs.py