All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mykola Golub <mgolub@mirantis.com>
To: "Deneau, Tom" <tom.deneau@amd.com>
Cc: Jason Dillaman <jdillama@redhat.com>,
	"ceph-devel@vger.kernel.org" <ceph-devel@vger.kernel.org>
Subject: Re: debugging librbd to a VM
Date: Tue, 30 Aug 2016 07:54:10 +0300	[thread overview]
Message-ID: <20160830045408.GA22787@gmail.com> (raw)
In-Reply-To: <MWHPR12MB19344F276252365A9F02AFBC9BE10@MWHPR12MB1934.namprd12.prod.outlook.com>

On Mon, Aug 29, 2016 at 06:33:28PM +0000, Deneau, Tom wrote:
 
> I notice on both clusters the qemu process running is
> /usr/libexec/qemu-kvm (this is RHEL 7.2) and the
> euser,fgroup,ruser,uname printed by ps are all user qemu.

> (note: I am initiating the VM thru virsh define xyz.xml followed by
> virsh start, and the user initiating both those virsh commands is
> root).

So I advise to look at ps output for exact qemu command line and
compare this with the working environments. If they are the same, try
to run this manually from command line (instead of virsh) to see if
there is useful output (under qemu user and root). If you don't see
the qemu process on the non-working environment (because it terminated
with failure), try to run here the command from the working env.

> On both clusters /etc/ceph/ceph.conf is 644 access.
> 
> On both clusters, I get
> ldd /usr/libexec/qemu-kvm | grep rbd
>     librbd.so.1 => /lib64/librbd.so.1 (0x00007fbdf1071000)
> 
> 
> When I try 
>     rbd --id admin export <image-spec> - | md5sum
> I get the same md5sum values on both clusters.
> 
> If I use --id qemu instead, I get 
>     rbd: couldn't connect to the cluster
> on both clusters.

Why did you try 'qemu' id? I doubt qemu sets it this way.

> 
> If I leave off the --id option entirely, it works on both clusters and I get the same md5sum.
> 
> Have not tried setting debug options on the working cluster, will
> try that.

So it does not look like rbd issue. I don't think 'debug rbd' is
useful here. You could try increasing 'debug ms' (ceph messages)
though.

-- 
Mykola Golub

  reply	other threads:[~2016-08-30  4:54 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-26 21:08 debugging librbd to a VM Deneau, Tom
2016-08-29  8:03 ` Mykola Golub
2016-08-29 18:33   ` Deneau, Tom
2016-08-30  4:54     ` Mykola Golub [this message]
2016-08-29 22:29   ` Brad Hubbard
2016-08-29 22:53     ` Deneau, Tom
2016-08-29 23:12       ` Brad Hubbard

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=20160830045408.GA22787@gmail.com \
    --to=mgolub@mirantis.com \
    --cc=ceph-devel@vger.kernel.org \
    --cc=jdillama@redhat.com \
    --cc=tom.deneau@amd.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.