Re: ceph's UID/GID 65045 in conflict with user's UID/GID in a ldap

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello John,

> Hello Yoann. I am working with similar issues at the moment in a biotech company in Denmark.
> 
> First of all what authentication setup are you using?

ldap with sssd

> If you are using sssd there is a very simple and useful utility called sss_override
> You can óverride' the uid which you get from LDAP with the genuine one.

That's one of the option, I'm just asking if there are others or simpler solution.

> Oops. On reading your email more closely.
> Why not just add ceph to your /etc/group  file?

I tried but there is some side effect.

I gave a look to the postinst script in ceph-common and I may find a way to fix this issue :

> # Let the admin override these distro-specified defaults.  This is NOT
> # recommended!
> [ -f "/etc/default/ceph" ] && . /etc/default/ceph
> 
> [ -z "$SERVER_HOME" ] && SERVER_HOME=/var/lib/ceph
> [ -z "$SERVER_USER" ] && SERVER_USER=ceph
> [ -z "$SERVER_NAME" ] && SERVER_NAME="Ceph storage service"
> [ -z "$SERVER_GROUP" ] && SERVER_GROUP=ceph
> [ -z "$SERVER_UID" ] && SERVER_UID=64045  # alloc by Debian base-passwd maintainer
> [ -z "$SERVER_GID" ] && SERVER_GID=$SERVER_UID

I can change the SERVER_UID / SERVER_GID and or SERVER_USER

I'm gonna try to create a specific ceph user in the ldap and use it for ceph install.

Yoann


> On 15 May 2018 at 08:58, Yoann Moulin <yoann.moulin@xxxxxxx <mailto:yoann.moulin@xxxxxxx>> wrote:
> 
>     Hello,
> 
>     I'm facing an issue with ceph's UID/GID 65045 on an LDAPized server, I have to install ceph-common to mount a cephfs filesystem but ceph-common
>     fails because a user with uid 65045 already exist with a group also set at 65045.
> 
>     Server under Ubuntu 16.04.4 LTS
> 
>     > Setting up ceph-common (12.2.5-1xenial) ...
>     > Adding system user ceph....done
>     > Setting system user ceph properties..usermod: group 'ceph' does not exist
>     > dpkg: error processing package ceph-common (--configure):
>     >  subprocess installed post-installation script returned error exit status 6
> 
>     The user is correctly created but the group not.
> 
>     > # grep ceph /etc/passwd           
>     > ceph:x:64045:64045::/home/ceph:/bin/false
>     > # grep ceph /etc/group
>     > #
>     Is there a workaround for that?
> 
>     -- 
>     Yoann Moulin
>     EPFL IC-IT
>     _______________________________________________
>     ceph-users mailing list
>     ceph-users@xxxxxxxxxxxxxx <mailto:ceph-users@xxxxxxxxxxxxxx>
>     http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com <http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com>
> 
> 


-- 
Yoann Moulin
EPFL IC-IT
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com




[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux