Skip to content

Commit

Permalink
Fixes cephfs with fuse on successive runs
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Walter Huf authored and jperville committed Aug 14, 2015
1 parent eafe0f1 commit dbd82b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions providers/cephfs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.sort.join(',') + ':' + subdir
Expand Down

0 comments on commit dbd82b0

Please sign in to comment.