All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wido den Hollander <wido@widodh.nl>
To: "ceph-devel@vger.kernel.org" <ceph-devel@vger.kernel.org>
Subject: cephx execute permissions for RBD operations
Date: Wed, 30 Jan 2013 17:21:01 +0100	[thread overview]
Message-ID: <5109486D.7040505@widodh.nl> (raw)

Hi,

Yesterday I ran into a weird situation where my libvirt RBD pool
just wouldn't work.

Turned out the credentials I was using only had rw permissions for OSDs 
instead of rwx or *.

This caused rbd_open to fail, looking at librbd itself I understand why 
execute permissions are required to do so (locks, watches).

What is however the best way to detect if you don't have the required 
permissions?

This piece of code: 
http://libvirt.org/git/?p=libvirt.git;a=blob;f=src/storage/storage_backend_rbd.c;h=8a0e517502c482f23f01bc63e95f1dc210d711cd;hb=master#l215

I simply check if the open fails, but just "failed to open the RBD 
image" wasn't really that clear.

I'd like to give a more useful error instead of that, but what error 
codes can I expect?

Wido


             reply	other threads:[~2013-01-30 16:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-30 16:21 Wido den Hollander [this message]
2013-01-30 21:20 ` cephx execute permissions for RBD operations Josh Durgin

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=5109486D.7040505@widodh.nl \
    --to=wido@widodh.nl \
    --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.