All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mark Nelson <mark.nelson@inktank.com>
To: Mike Dawson <mike.dawson@cloudapt.com>
Cc: "ceph-devel@vger.kernel.org" <ceph-devel@vger.kernel.org>
Subject: Re: Add Metavariable $imagename
Date: Wed, 04 Sep 2013 10:07:13 -0500	[thread overview]
Message-ID: <52274CA1.2040801@inktank.com> (raw)
In-Reply-To: <522747D0.6050906@cloudapt.com>

On 09/04/2013 09:46 AM, Mike Dawson wrote:
> There are currently a few metavariables available for use in ceph.conf:
> http://ceph.com/docs/master/rados/configuration/ceph-conf/#metavariables
>
> In addition to those listed in that document, $pid was added in Bobtail.
> That allows me to get RBD admin sockets for libvirt/qemu guests by
> specifying
>
> [client]
>      admin socket = /var/run/ceph/rbd-$pid.asok
>
> in /etc/ceph/ceph.conf. That works well for VMs with a single volume,
> but it does not work for VMs with multiple volumes. With multiple
> volumes, the admin only lists data on the last volume specified, leaving
> me unable to monitor stats on any volumes other than the last.
>
> I imagine you could specify a unique admin socket for each volume on the
> command-line that libvirt uses to spawn qemu, but that seems like a pain.
>
> Is it possible instead to add a metavariable that would expand to the
> image name? This way, my ceph.conf would look like
>
>
> [client]
>      admin socket = /var/run/ceph/$imagename.asok
>
> and I would end up with admin sockets like:
>
> /var/run/ceph/rbd-volume-0025b693-6230-443e-ad6a-3aa43efdd648.asok
> /var/run/ceph/rbd-volume-009228f3-b8d7-4f3c-8458-0cdbd4809dc6.asok
>
> # rbd -p volumes ls
> volume-0025b693-6230-443e-ad6a-3aa43efdd648
> volume-009228f3-b8d7-4f3c-8458-0cdbd4809dc6
>
> I'd be happy to provide a patch if someone could give me sufficient
> guidance on how/where to add this functionality.
>

Created a feature request in the tracker for this:

http://tracker.ceph.com/issues/6228

Mark

  reply	other threads:[~2013-09-04 15:07 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-04 14:46 Add Metavariable $imagename Mike Dawson
2013-09-04 15:07 ` Mark Nelson [this message]
2013-09-04 15:46   ` Mike Dawson
2013-09-04 16:22     ` Sage Weil
2013-09-05  6:48       ` Josh Durgin
2013-09-05 14:59         ` Sage Weil
2013-09-05 18:32           ` 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=52274CA1.2040801@inktank.com \
    --to=mark.nelson@inktank.com \
    --cc=ceph-devel@vger.kernel.org \
    --cc=mike.dawson@cloudapt.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.