[ovirt-users] Using ceph volumes with ovirt

Nir Soffer nsoffer at redhat.com
Mon May 30 11:59:34 EDT 2016


On Mon, May 30, 2016 at 1:44 PM, Alessandro De Salvo
<Alessandro.DeSalvo at roma1.infn.it> wrote:
> Hi,
> just to answer myself, I found these instructions that solved my problem:
>
> http://7xqb88.com1.z0.glb.clouddn.com/Features_Cinder%20Integration.pdf
>
> Basically, I was missing the step to add the ceph key to the Authentication
> Keys tab of the cinder External Provider.
> It's all working now.

Cool.

You can also look in the wiki:
http://www.ovirt.org/develop/release-management/features/storage/cinder-integration/
(Looks dead now, but usually it is up).

Please share your experience with this feature, we live to get feedback.

Cheers,
Nir

> Cheers,
>
>     Alessandro
>
> Il 30/05/16 10:55, Alessandro De Salvo ha scritto:
>
> Hi,
> I'm happily using our research cluster in Italy via gluster, and now I'm
> trying to hotplug a ceph disk on a VM of my cluster, without success.
> The ceph cluster is managed via openstack cinder and I can create correctly
> the disk via ovirt (3.6.6.2-1 on CentOS 7.2).
> The problem comes when trying to hotplug, or start a machine with the given
> disk attached.
> In the vdsm log of the host where the VM is running or starting I see the
> following error:
>
>
> jsonrpc.Executor/5::INFO::2016-05-30
> 10:35:29,197::vm::2729::virt.vm::(hotplugDisk)
> vmId=`c189472e-25d2-4df1-b089-590009856dd3`::Hotplug disk xml: <disk
> address="" device="disk" snapshot="no" type="network">
>         <source name="images/volume-9134b639-c23c-4ff1-91ca-0462c80026d2"
> protocol="rbd">
>                 <host name="141.108.X.Y1" port="6789" transport="tcp"/>
>                 <host name="141.108.X.Y2" port="6789" transport="tcp"/>
>         </source>
>         <auth username="cinder">
>                 <secret type="ceph" uuid="<base 64 ceph secret>"/>
>         </auth>
>         <target bus="virtio" dev="vdb"/>
>         <driver cache="none" error_policy="stop" io="threads" name="qemu"
> type="raw"/>
> </disk>
>
> jsonrpc.Executor/5::ERROR::2016-05-30
> 10:35:29,198::vm::2737::virt.vm::(hotplugDisk)
> vmId=`c189472e-25d2-4df1-b089-590009856dd3`::Hotplug failed
> Traceback (most recent call last):
>   File "/usr/share/vdsm/virt/vm.py", line 2735, in hotplugDisk
>     self._dom.attachDevice(driveXml)
>   File "/usr/share/vdsm/virt/virdomain.py", line 68, in f
>     ret = attr(*args, **kwargs)
>   File "/usr/lib/python2.7/site-packages/vdsm/libvirtconnection.py", line
> 124, in wrapper
>     ret = f(*args, **kwargs)
>   File "/usr/lib/python2.7/site-packages/vdsm/utils.py", line 1313, in
> wrapper
>     return func(inst, *args, **kwargs)
>   File "/usr/lib64/python2.7/site-packages/libvirt.py", line 530, in
> attachDevice
>     if ret == -1: raise libvirtError ('virDomainAttachDevice() failed',
> dom=self)
> libvirtError: XML error: invalid auth secret uuid
>
>
>
> In fact the uuid of the secret used by ovirt to hotplug seems to be the ceph
> secret (masked here as <base 64 ceph secret>), while libvirt expects the
> uuid of the libvirt secret, by looking at the instructions
> http://docs.ceph.com/docs/jewel/rbd/libvirt/.
> Anyone got it working?
> Thanks,
>
>     Alessandro
>
>
> _______________________________________________
> Users mailing list
> Users at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>
>
> _______________________________________________
> Users mailing list
> Users at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>


More information about the Users mailing list