os-brick/os_brick
Eric Harney f64ad529bf 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
(cherry picked from commit 360a20c7c7)
(cherry picked from commit 4c94477cb5)
(cherry picked from commit 30d7bc124e)
2019-03-26 10:17:08 -05:00
..
encryptors Make close on cryptsetup volumes idempotent 2017-12-12 18:27:50 +00:00
initiator Merge "'iscsiadm -m session' failure handling" into stable/pike 2019-03-21 22:17:59 +00:00
local_dev Revert "Don't use ignoreskipactivation for thin LVM" 2017-07-05 13:16:38 +00:00
privileged Refactor iSCSI connect 2017-06-16 16:09:35 +02:00
remotefs Fix NFS "already mounted" detection 2019-03-26 10:17:08 -05:00
tests Fix NFS "already mounted" detection 2019-03-26 10:17:08 -05:00
__init__.py Update os-brick requirements 2015-04-17 17:11:34 +00:00
exception.py Refactor iSCSI connect 2017-06-16 16:09:35 +02:00
executor.py iSCSI multipath: improve logging on connect 2017-06-26 20:31:59 +02:00
i18n.py Remove log translations 2017-03-22 09:19:01 +08:00
utils.py Mask passwords in utils.trace for func params 2016-11-08 12:55:46 -05:00
version.py Add reno for release notes management 2016-01-20 19:19:36 -06:00