Iban Cabrillo
2016-Mar-02 13:38 UTC
[libvirt-users] ceph and libxl errors attaching device
Dear, I need to attach some ceph (0.94.6) block devices to our openstack (kilo) running instances (xen 4.4) . Nova is able to create volumes, attach a detach (alt least there are no errors) The hypervisor can see the blockdevice: # rbd -p volumes ls volume-xxxxxxxx-7342-434b-9xx1-d046bcxxxxfd And the instance xml seems to be ok: ................. <disk type='network' device='disk'> <driver name='qemu' type='raw' cache='none'/> <auth username='cinder'> <secret type='ceph' uuid='xxxxxxxx-e53a-4xx7-9bc9-9bcc41xxxxe4'/> </auth> <source protocol='rbd' name='volumes/volume-xxxxxxxx-7342-434b-9xx1-d046bcxxxxfd'> <host name='10.10.3.1' port='6789'/> <host name='10.10.3.2' port='6789'/> <host name='10.10.3.3' port='6789'/> </source> <target dev='xvdd' bus='xen'/> <serial>xxxxxxxx-7342-434b-9xx1-d046bcxxxxfd</serial> </disk> But there is no way to attach the device to running machine, I only see this error on libxl : libxl: debug: libxl.c:3538:libxl_device_disk_add: ao 0x7fe248006080: create: how=(nil) callback=(nil) poller=0x7fe24000ce20 libxl: debug: libxl_device.c:251:libxl__device_disk_set_backend: Disk vdev=xvdd spec.backend=qdisk libxl: debug: libxl_event.c:618:libxl__ev_xswatch_deregister: watch w=0x7fe248001780: deregister unregistered libxl: debug: libxl_event.c:1591:libxl__ao_complete: ao 0x7fe248006080: complete, rc=0 libxl: debug: libxl.c:3538:libxl_device_disk_add: ao 0x7fe248006080: inprogress: poller=0x7fe24000ce20, flags=ic libxl: debug: libxl_event.c:1563:libxl__ao__destroy: ao 0x7fe248006080: destroy Seems like qdisk backend is not able to manage the volume Any idea? -- ############################################################################ Iban Cabrillo Bartolome Instituto de Fisica de Cantabria (IFCA) Santander, Spain Tel: +34942200969 PGP PUBLIC KEY: http://pgp.mit.edu/pks/lookup?op=get&search=0xD9DF0B3D6C8C08AC ############################################################################ Bertrand Russell: *"El problema con el mundo es que los estúpidos están seguros de todo y los inteligentes están llenos de dudas*"
Jim Fehlig
2016-Mar-02 23:46 UTC
Re: [libvirt-users] ceph and libxl errors attaching device
On 03/02/2016 06:38 AM, Iban Cabrillo wrote:> Dear, > I need to attach some ceph (0.94.6) block devices to our openstack (kilo) > running instances (xen 4.4) .At minimum, you'll need the recently released libvirt 1.3.2, which contains my recent commit http://libvirt.org/git/?p=libvirt.git;a=commit;h=fb2bd208e52bda2d329b95d9545baa8bf04558af Note that I've only tested it with xen 4.6 and xen.git. Regards, Jim
Iban Cabrillo
2016-Mar-03 09:20 UTC
Re: [libvirt-users] ceph and libxl errors attaching device
Dear Jim, Thanks a lot! I was going crazy with this issue, having a look at your commit I see this was not implemented yet At this moment the installed version of libvirt are: ii libvirt-bin 1.2.12-0ubuntu14.2~cloud0 amd64 programs for the libvirt library ii libvirt0 1.2.12-0ubuntu14.2~cloud0 amd64 library for interfacing with differen I will pass your info to sysadmins to upgrade the machine. Regards, I 2016-03-03 0:46 GMT+01:00 Jim Fehlig <jfehlig@suse.com>:> On 03/02/2016 06:38 AM, Iban Cabrillo wrote: > > Dear, > > I need to attach some ceph (0.94.6) block devices to our openstack > (kilo) > > running instances (xen 4.4) . > > At minimum, you'll need the recently released libvirt 1.3.2, which > contains my > recent commit > > > http://libvirt.org/git/?p=libvirt.git;a=commit;h=fb2bd208e52bda2d329b95d9545baa8bf04558af > > Note that I've only tested it with xen 4.6 and xen.git. > > Regards, > Jim > >-- ############################################################################ Iban Cabrillo Bartolome Instituto de Fisica de Cantabria (IFCA) Santander, Spain Tel: +34942200969 PGP PUBLIC KEY: http://pgp.mit.edu/pks/lookup?op=get&search=0xD9DF0B3D6C8C08AC ############################################################################ Bertrand Russell: *"El problema con el mundo es que los estúpidos están seguros de todo y los inteligentes están llenos de dudas*"