On Sat, 2018-10-06 at 23:54 +0200, Stefan Kooman wrote:
Quoting Jeff Layton (jlayton(a)redhat.com):
> >
> > 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.
> >
>
> Draft patch to add this to RADOS_URLS follows. We'll still need to
> update the docs but if you want to help test this, then that would be
> good:
The config parses correctly when adding the namespace parameter to the
RADOS_URLS block. However it's unclear to me where the "url" config
option has to enabled, and how it should look like.
If I put below config option ganesha complains about syntax errors
%url rados://nfs-ganesha-27-fcal-ceph/ganesha.conf;
The config also parses correctly when the namespace parameter is added
to the CEPH_KV block. And the objects are added in the right namespace if one
is specified.
However, when the namespace parameter is included in the "CEPH" BLOCK
a warning is issued: Unknown parameter (namespace). This is true for the
"FSAL" block as well.
So I guess there needs to be done some more work to get the CEPH FSAL
recognize the namespace.
Gr. Stefan
Yes, there's no namespace support in FSAL_CEPH config block as of yet,
as libcephfs doesn't have that yet either.
--
Jeff Layton <jlayton(a)redhat.com>