From f5aa0d87b72661dd4f2d325366185494f44767ee Mon Sep 17 00:00:00 2001 From: Walter Huf Date: Thu, 23 Oct 2014 10:14:18 -0500 Subject: [PATCH] Fixes cephfs with fuse on successive runs The fstab and stuff need the weird option string as the 'device' But the mount command shows 'ceph-fuse' as the device Chef sees that they are different and tries to mount again This adds a workaround to detect that it's already mounted --- providers/cephfs.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/providers/cephfs.rb b/providers/cephfs.rb index a781f5b..2da476f 100644 --- a/providers/cephfs.rb +++ b/providers/cephfs.rb @@ -29,6 +29,7 @@ def manage_mount(directory, subdir, use_fuse, action) dump 0 pass 0 action action + not_if "mount | grep \"^ceph-fuse on #{Regexp.escape(directory)}\"" if action == :mount end else mons = mon_addresses.join(',') + ':' + subdir