On Sat, 2018-10-06 at 09:11 +0200, Stefan Kooman wrote:
Quoting Stefan Kooman (stefan@bit.nl):
Quoting Jeff Layton (jlayton@redhat.com):
This is already implemented via a "namespace" parameter to RADOS_KV in nfs-ganesha 2.7. It's not implemented in RADOS_URLS yet, but it wouldn't be too hard to do.
It's nice to have your (cluster) config in a centralized location so you know for sure all daemons are using the same config. So yeah, would be nice to have this support for RADOS_URLS too.
If I understand you correctly, you have the possibility to use one namespace, which is then used for *both* librados as well as libcephfs, right?
Is it possible to use the "namespace" parameter in the ceph.conf for use with rados_ng? Would this work?
... RADOS_KV { # Path to a ceph.conf file for this cluster. # Ceph_Conf = /etc/ceph/ceph.conf;
# The recoverybackend has its own ceph client. The default is to # let libcephfs autogenerate the userid. Note that RADOS_KV block does # not have a setting for Secret_Access_Key. A cephx keyring file must # be used for authenticated access. # UserId = "ganesharecov";
# Pool ID of the ceph storage pool that contains the recovery objects. # The default is "nfs-ganesha". # pool = "nfs-ganesha";
# Set the RADOS namespace to use within the pool (default is NULL)
namespace = your-name-space-here
# Set the object id of the grace database RADOS object (default is "grace") oid = grace }
Thanks,
Stefan
P.s. It would be a waste if nobody is using these useful features because they don't know of their existence / know how to use it.
Yes, that should work. The code that handles establishing the session is common between all of the RADOS recovery backends, so if "namespace" works in one, then it will work in all of them. RADOS_URLS does its own thing there though, so we'll need a separate patch to plumb in support there. -- Jeff Layton <jlayton@redhat.com>