Whamcloud - gitweb
LU-10098 scripts: Fix mounted check in Lustre RA 52/29352/5
authorNathaniel Clark <nathaniel.l.clark@intel.com>
Fri, 6 Oct 2017 16:49:23 +0000 (12:49 -0400)
committerJohn L. Hammond <john.hammond@intel.com>
Tue, 19 Dec 2017 17:29:10 +0000 (17:29 +0000)
commit8a886b997c253da0472c3ab115b159f7878c1dde
tree57d0a08a60d8c5c1c19507e9d753c1540934afc9
parentf3f2a2f9b3ebb0f66213184dd8a1f8c654a0d792
LU-10098 scripts: Fix mounted check in Lustre RA

The "Lustre" resource agent for pacemaker can mis-identify a resource
as being mounted if it's mountpoint is a substring match for anything
else in /proc/mounts.  Change the lustre_is_mounted() function to
check to make sure it's a lustre fs mounted at mountpoint and the
"source" (i.e. device) is the target we expect.

Lustre-change: https://review.whamcloud.com/29351
Lustre-commit: df96fab178534adb34067b20490a2d0629aabe2f

Signed-off-by: Nathaniel Clark <nathaniel.l.clark@intel.com>
Change-Id: Ib877b0dc3d3ce0d93fd4663aa2418ac21d670428
Reviewed-by: Malcolm Cowe <malcolm.j.cowe@intel.com>
Reviewed-by: Olaf Faaland-LLNL <faaland1@llnl.gov>
Signed-off-by: Minh Diep <minh.diep@intel.com>
Reviewed-on: https://review.whamcloud.com/29352
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
contrib/scripts/pacemaker/Lustre