All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wido den Hollander <wido@widodh.nl>
To: Sage Weil <sage@inktank.com>
Cc: ceph-devel@vger.kernel.org
Subject: Re: enabling cephx by default
Date: Wed, 12 Sep 2012 16:55:06 +0200	[thread overview]
Message-ID: <5050A24A.7090608@widodh.nl> (raw)
In-Reply-To: <alpine.DEB.2.00.1209111722100.2433@cobra.newdream.net>

On 09/12/2012 02:25 AM, Sage Weil wrote:
> The next stable release will have cephx authentication enabled by default.
> We will probably do it in the next development release (v0.53) to work out
> any upgrade kinks well before that.  The process for setting up teh
> authentication keys on an existing cluster is at
>
> 	http://ceph.com/docs/master/cluster-ops/authentication/
>
> This needs a few eyeballs to make sure the upgrade process makes sense...
>

"Generate a secret key for every OSD, where {$id} is the OSD number:"

Where does {$id} come from? I know it's just a variable which the users 
needs to fill in, but it could be somewhat confusing.

You could do:

for id in {0..10}; do
ceph auth get-or-create osd.${id} mon 'allow rwx' osd 'allow *' -o 
/var/lib/ceph/osd/ceph-${id}/keyring;
done

I know this doesn't work for the mds which uses alpha-numeric names, but 
imho the {$id} variable seems to come from nowhere.

Maybe an example to make it more clear, because later in the page $id is 
used without the brackets ( { & } )


Later on, this command won't work:
$ sudo ceph auth get-or-create client.admin mds 'allow' osd 'allow *' 
mon 'allow *' > /etc/ceph/keyring

The "ceph" command gets executed as root, but the output won't, so 
writing to /etc/ceph/keyring will fail.

We could assume everybody executes these commands as root, but it might 
be somewhat confusing if one command has "sudo" prefixed and other 
don't. That might suggest it's somewhat special.

The same goes for a couple of commands after the one mentioned above.

I haven't tested the upgrade itself, but this is what I noticed while 
reading the docs.

Wido


> Thanks!
> sage
> --
> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>


  reply	other threads:[~2012-09-12 14:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-12  0:25 enabling cephx by default Sage Weil
2012-09-12 14:55 ` Wido den Hollander [this message]
2012-09-18 12:37 ` Guido Winkelmann
2012-09-18 13:34   ` Andrey Korolyov
2012-09-18 13:54     ` Andrey Korolyov
2012-09-18 15:12       ` Wido den Hollander

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=5050A24A.7090608@widodh.nl \
    --to=wido@widodh.nl \
    --cc=ceph-devel@vger.kernel.org \
    --cc=sage@inktank.com \
    /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.