All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Székelyi Szabolcs" <szekelyi@niif.hu>
To: ceph-devel@vger.kernel.org
Subject: Re: Keys & caps
Date: Wed, 11 Jul 2012 01:57:31 +0200	[thread overview]
Message-ID: <2271403.zD842C8ZM7@mranderson> (raw)
In-Reply-To: <alpine.DEB.2.00.1207101619230.693@cobra.newdream.net>

On 2012. July 10. 16:25:47 Sage Weil wrote:
> On Wed, 11 Jul 2012, Sz?kelyi Szabolcs wrote:
> > > >> The problem is that the mount.ceph command doesn't understand
> > > >> keyrings;
> > > >> it
> > > >> only understands secret= and secretfile=.  There is a longstanding
> > > >> feature
> > > >> bug open for this
> > > >> 
> > > >>       http://tracker.newdream.net/issues/266
> > > >> 
> > > >> but it hasn't been prioritized.  Sorry for the confusion!  It will
> > > >> happen
> > > >> soon.
> > > >> 
> > > >> In the meantime, you need
> > > >> 
> > > >>        -o secretfile=/path/to/secretfile,name=access_fs
> > > > 
> > > > Is this also true for the FUSE client? I have obscure memories about
> > > > big
> > > > differences between the kernel and the FUSE client, for example the
> > > > latter
> > > > being able to read ceph.conf, and get the necessary info, including
> > > > the
> > > > keyring file, from there. Maybe I didn't emphasize it, but that's what
> > > > I'm
> > > > using.
> > > 
> > > When using ceph-fuse, you want to specify the name with
> > > --name=access_fs ? no -o required.
> > 
> > Okay, so I don't need the "client." prefix for the key name, but how can I
> > specify the --name= option in fstab? Or is it possible to specify it in
> > ceph.conf, so it can be read by ceph-fuse when called by mount?
> 
> Er sorry, you actually want either --id foo or --name client.foo (they are
> equivalent) when dealing with ceph-fuse (or other userland daemons/tools).
> 
> I'm not sure what the best way of putting fuse-based file systems in fstab
> is, though.  One way or another, though, ceph-fuse needs to be told on the
> command line who to authenticate as (and which sections of ceph.conf to
> pay attention to).

This seems to be possible to pass a single argument to the userspace mount 
program with the following syntax in fstab:

ceph-fuse#--name=client.access_fs	/mnt/ceph	fuse	defaults	0 0

-- 
cc



      parent reply	other threads:[~2012-07-10 23:57 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-09 16:07 Keys & caps Székelyi Szabolcs
2012-07-09 16:33 ` Sage Weil
2012-07-09 17:27   ` Székelyi Szabolcs
2012-07-10 20:09     ` Gregory Farnum
2012-07-10 23:11       ` Székelyi Szabolcs
2012-07-10 23:25         ` Sage Weil
2012-07-10 23:30           ` Gregory Farnum
2012-07-10 23:36             ` Sage Weil
2012-07-10 23:57           ` Székelyi Szabolcs [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2271403.zD842C8ZM7@mranderson \
    --to=szekelyi@niif.hu \
    --cc=ceph-devel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.