I used strace and got entries like this:

Jul 06 11:07:29 et32.et.eng.bos.redhat.com strace[19754]:
open("/var/lib/ceph/osd/ceph-1/type", O_RDONLY) = -1 EACCES (Permission
denied)

I can't recreate the permission issues when running as the ceph user: I
changed the ceph user's shell to /bin/bash, did a su ceph, and navigated to
the directory and catted the files.  I had no issues.

I think it has something to do with systemd -- does systemd enforce any
limitations beyond setting the user and group to ceph?


On Wed, Jul 6, 2016 at 10:08 AM, Samuel Just <sj...@redhat.com> wrote:

> Try strace.
> -Sam
>
> On Wed, Jul 6, 2016 at 7:53 AM, RJ Nowling <rnowl...@redhat.com> wrote:
> > Hi all,
> >
> > I'm trying to use the ceph-ansible playbooks to deploy onto baremetal.
> I'm
> > currently testing with the approach that uses an existing filesystem
> rather
> > than giving raw access to the disks.
> >
> > The OSDs are failing to start:
> >
> > 2016-07-06 10:48:50.249976 7fa410aef800  0 set uid:gid to 167:167
> > (ceph:ceph)
> > 2016-07-06 10:48:50.250021 7fa410aef800  0 ceph version 10.2.2
> > (45107e21c568dd033c2f0a3107dec8f0b0e58374), process ceph-osd, pid 19104
> > 2016-07-06 10:48:50.250221 7fa410aef800 -1  ** ERROR: unable to open OSD
> > superblock on /var/lib/ceph/osd/ceph-1: (13) Permission denied
> >
> > The directories seem to be owned by the ceph user and group.  That said,
> I'm
> > putting my data under /home/ceph-data (owned by ceph:ceph) which is on a
> > different filesystem with /var/lib/ceph/osd/ceph-1 being a symlink
> (owned by
> > ceph:ceph) .
> >
> > Any suggestions as to where the permission denied might be coming from?
> >
> > Thanks!
> > RJ
> >
> > _______________________________________________
> > 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

Reply via email to