Your error looks to be the mountpoint or the option in your ansible playbook...
Are you sure its running in order? Can you mount a different directory using the commands? On Mar 17, 2015 6:24 PM, "Florent B" <flor...@coppint.com> wrote: > Hi everyone, > > My problem is about ceph-fuse & Ansible, I first post here to see if > someone have an idea of what happens. > > I configure a mount point like this: > > mount: name=/mnt/cephfs src='daemonize,id={{ cephfs_username > }},mon_host={{ cephfs_mon > }},keyring=/etc/ceph-keyring.conf,client_mountpoint={{ cephfs_dir }}' > fstype='fuse.ceph' opts='noatime,_netdev' state=present > > It writes it in /etc/fstab as expected. > > And I mount it with : > > shell: mountpoint /mnt/cephfs || mount /mnt/cephfs > > (after creating /mnt/cephfs of course) > > If I debug the mount step, all seems fine : > > "cephfs_mount": { > "changed": true, > "cmd": "mountpoint /mnt/cephfs || mount /mnt/cephfs", > "delta": "0:00:00.056867", > "end": "2015-03-17 22:47:22.104885", > "invocation": { > "module_args": "mountpoint /mnt/cephfs || mount /mnt/cephfs", > "module_name": "shell" > }, > "rc": 0, > "start": "2015-03-17 22:47:22.048018", > "stderr": "", > "stdout": "/mnt/cephfs is not a mountpoint\n2015-03-17 > 22:47:22.060852 7f4e31cd9760 -1 did not load config file, using default > settings.\n2015-03-17 22:47:22.064641 7f4e31cd9760 -1 init, newargv = > 0x7f4e2801f860 newargc=13\nceph-fuse[28745]: starting ceph > client\nceph-fuse[28745]: starting fuse", > "stdout_lines": [ > "/mnt/cephfs is not a mountpoint", > "2015-03-17 22:47:22.060852 7f4e31cd9760 -1 did not load > config file, using default settings.", > "2015-03-17 22:47:22.064641 7f4e31cd9760 -1 init, newargv = > 0x7f4e2801f860 newargc=13", > "ceph-fuse[28745]: starting ceph client", > "ceph-fuse[28745]: starting fuse" > ], > "warnings": [] > } > > > But directory is not mounted !! and no trace of anything in logs... > > Even if I use state=mounted in the mount module, same thing, all seems > fine but directory is not mounted. > > Of course if I run the command by hand via SSH, it works well... it only > fails when running though Ansible :( > > Has anyone an idea of what could cause this ? > > Thank you. > > _______________________________________________ > ceph-users mailing list > ceph-users@lists.ceph.com > http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com >
_______________________________________________ ceph-users mailing list ceph-users@lists.ceph.com http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com