fstype 'fuse.ceph'
# needs two slashes to indicate a network mount to chef
device "conf=//etc/ceph/ceph.conf,id=#{client_name},keyfile=#{filename}"
- options 'defaults'
+ options 'defaults,_netdev'
dump 0
pass 0
action action
@test "/ceph.fuse is mounted" {
grep -q -E '^\S+\s+/ceph\.fuse\s+fuse' /proc/mounts
}
+@test "/ceph.fstab is mounted" {
+ grep -q -E '^\S+\s+/ceph\.fstab\s+fuse' /proc/mounts
+}
@test "/ceph is in fstab" {
- grep -q -E '^\S+\s+/ceph\s+' /etc/fstab
+ grep -q -E '^\S+\s+/ceph\s+\S+\s+\S*_netdev\S*\s' /etc/fstab
}
@test "/ceph.fuse is NOT in fstab" {
grep -v -q -E '^\S+\s+/ceph.fuse\s+' /etc/fstab
}
+@test "/ceph.fstab is in fstab" {
+ grep -q -E '^\S+\s+/ceph.fstab\s+\S+\s+\S*_netdev\S*\s' /etc/fstab
+}
@test "test file exists in /ceph" {
test -e /ceph/subdir/file