Re: Can you verify currently defined libvirt secret provides valid Cephx auth?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



libvirt itself doesn't connect to the cluster unless you're using a
libvirt storage pool, so I don't think there's a way to do this without
getting the secret from libvirt and running a ceph command line tool
with it, e.g. KEY=$(virsh secret-get-value ...) ceph health --key $KEY

Josh

On 02/11/2014 09:08 AM, Scott Sullivan wrote:
I know I would still have to provide the Mon addresses and Cephx user to
go with the secret UUID, that's fine. The primary goal is so I can just
see if I can open a RADOS connection to the cluster before I try a virsh
attach-device.


On Tue, Feb 11, 2014 at 9:37 AM, Scott Sullivan
<scottgregorysullivan@xxxxxxxxx <mailto:scottgregorysullivan@xxxxxxxxx>>
wrote:

    As the subject suggests, I am wondering if its possible to verify if
    the currently defined libvirt secret provides valid authentication
    via Cephx to a Ceph cluster?

    I ask because ideally I would like to verify that the given cephx
    credentials in my libvirt secret are valid before I even attempt the
    virsh attach-device on the domain.

    I tried searching for a solution to this, but I can't seem to find a
    way to _just_ check if the currently defined libvirt secret provides
    valid authentication to the Ceph cluster or not. Is this possible?

_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users




[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux