Howto add another client user id to a cluster

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

 



Anyone,

We’ve ceph clients that we want to let mount two cephfs from each their own ceph clusters.

Both cluster are standard created w/ceph-deploy and possible only has knowledge of each their client.admin.

How could we allow a new client id to access the 2. cluster eg. as admin2?

On ceph client nodes we have this:

## used for cluster 1

# ceph-authtool -l /etc/ceph/ceph.client.admin.keyring 
[client.admin]
        key = AQCv5...==
        caps mds = "allow *"
        caps mgr = "allow *"
        caps mon = "allow *"
        caps osd = "allow *"

## this entry in /etc/fstab allows us to mount from cluster 1:
none    /var/lib/ceph/backup  fuse.ceph ceph.id=admin,_netdev,defaults,noatime  0 0


## used for cluster 2 we’ve added a new client.admin2 on the clients’ keyring only though

# ceph-authtool -l /etc/ceph/ceph.client.admin2.keyring 
[client.admin]
        key = AQCao...==
        caps mds = "allow *"
        caps mgr = "allow *"
        caps mon = "allow *"
        caps osd = "allow *"
[client.admin2]
        key = AQDfv...==
        caps mds = "allow"
        caps mon = "allow r"
        caps osd = "allow rw pool data"

## this entry of /etc/fstab should point to another monitor and use admin2 fo rid so not to clash on socket file of cluster 1
node1.ceph    /var/lib/ceph/backup2  fuse.ceph ceph.id=admin2,_netdev,defaults,noatime  0 0


## Only it fails to mount from cluster 2 w/Operation not supported, assume it’s because cluster 2 doesn’t know the id ‘admin2’

# mount -t ceph node1.ceph:6789:/ /var/lib/ceph/backup2 -o name=client.admin,secret=“AQCao...=="
mount error 1 = Operation not permitted

# mount -t ceph node1.ceph:6789:/ /var/lib/ceph/backup2 -o name=client.admin2,secret=“AQDfv...=="
mount error 1 = Operation not permitted
 

How to debug/remediate/solve this?

TIA

/Steffen
_______________________________________________
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]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux