os-brick/os_brick/tests/remotefs
Eric Harney 360a20c7c7 Fix NFS "already mounted" detection
Previous fix

2f32c98a RemoteFS: don't fail in do_mount if already mounted

was made with the assumption that "already mounted" appearing
in stderr from an NFS mount means that the NFS share was already
mounted.

However, the NFS client can fail with "busy or already mounted"
in cases where it fails to mount the share as well.

This results in the Cinder NFS backup driver believing that the
NFS mount has succeeded when it didn't, and as a result, data
can be written to the local disk instead of the NFS target.

Fail if the share isn't actually mounted rather than succeeding.

Related-Bug: #1780813
Closes-Bug: #1797233
Change-Id: Iebd1afb3340fcaeb1969784966c4f9be35a28417
2018-12-04 13:38:15 +00:00
..
__init__.py Actually run the RemoteFSClient unit tests 2016-02-26 15:02:23 +01:00
test_remotefs.py Fix NFS "already mounted" detection 2018-12-04 13:38:15 +00:00
test_windows_remotefs.py Windows remotefs: create mountpoints at the expected location 2016-10-19 19:32:03 +03:00