Hi all,

I use Pacemaker and the "Filesystem" Resource Agent to mount/unmount my
cephfs. Depending on timing, MDS may be reachable a few dozen seconds
after the mount command, but there is no report of the failure through
the exit code.

Examples using mount.fuse.ceph or ceph-fuse (no MDS running at that
time) :

root@helium:~# mount -t fuse.ceph -o 
ceph.id=srv_root,defaults,noatime,nosuid,nodev /dev/null /srv
ceph-fuse[1432664]: starting ceph client2018-04-11 16:40:21.234177 7f9e5b6750c0 
-1 init, newargv = 0x5627ab4bfd50 newargc=11

ceph-fuse[1432664]: probably no MDS server is up?
ceph-fuse[1432664]: ceph mount failed with (4) Interrupted system call
root@helium:~# echo $?
0

root@helium:~# ceph-fuse --id=srv_root /srv
2018-04-11 16:42:05.383406 7f558e0860c0 -1 init, newargv = 0x55d2aaad7f80 
newargc=9ceph-fuse[1433043
]: starting ceph client
ceph-fuse[1433043]: probably no MDS server is up?
ceph-fuse[1433043]: ceph mount failed with (4) Interrupted system call
root@helium:~# echo $?
0

The man page for mount ways that an exit code of 0 denotes success,
other codes denote various conditions. The Filesystem RA just reports a
generic OCF failure when exit code != 0.

Is there Pacemaker/OCF standard a way to report a proper exit code /
test for failure another way / anything else ?

TIA,

-- 
Nicolas Huillard
_______________________________________________
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to