Hi Dave, Thank you so much for getting back to me.
the command returns the same errors:[root@xen02 ~]# virsh pool-create ceph.xml
error: Failed to create pool from ceph.xml
error: Invalid secret: virSecretFree
[root@xen02 ~]#
virsh secret-set-value $(cat uuid) --base64 $(cat client.admin.key)
ceph auth list
virsh secret-define --file secret.xml
# cat secret.xml
<secret ephemeral='no' private='no'>
<usage type='ceph'>
<name>client.admin $(cat client.admin.key)</name>
</usage>
</secret>
On Thu, Jul 11, 2013 at 7:22 AM, Dave Scott <Dave.Scott@xxxxxxxxxxxxx> wrote:
[sorry I didn't manage to reply to the original message; I only just joined this list.
Sorry if this breaks your threading!]
I must confess that I've disabled auth in my test environment. Clearly I should
On 10 Jul 2013 at 16:01 John Shen wrote:
> I was following the tech preview of libvirt/ceph integration in xenserver, but ran
> into an issue with ceph auth in setting up the SR. any help would be greatly
> appreciated.
go back and enable it again :-)
> [root <at> xen01 ~]# xe sr-create type=libvirt name-label=ceph device-config:xml-filename=ceph.xml
> uuid was generated per: http://eu.ceph.com/docs/wip-dump/rbd/libvirt/
>
> according to inktank, storage pool auth syntax differs slightly from block device
> attachment. I tried both format but got the same error.
>
> Ref:
>
> http://xenserver.org/blog/entry/tech-preview-of-xenserver-libvirt-ceph.html
>
> Error code: libvirtThe "xe sr-create" call is handled by "xapi" which calls "xapi-libvirt-storage" which
> Error parameters: libvirt: VIR_ERR_65: VIR_FROM_30: Invalid secret: virSecretFree
uses the libvirt API directly to create the pool. It _should_ do the same as running
virsh pool-create ceph.xml
Could you try the "virsh pool-create" and see if that works? If it does, then we need
to figure out what the "virsh" CLI is doing that my Pool.create function call isn't. If
it doesn't then there might be some other missing step. Did you have to pre-create
a secret (is that "virsh secret-create"?)
Cheers,
Dave Scott
--
--John Shen
_______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com