[Openstack-operators] attach_volume hangs on virt_dom.attachDevice(xml)

Lorin Hochstein lorin at nimbisservices.com
Fri May 25 01:53:58 UTC 2012


On May 24, 2012, at 3:06 PM, Lorin Hochstein wrote:

> Hi All:
> 
> I'm running Essex on Ubuntu 12.04, and I'm having trouble getting nova-volumes working. When I try to attach a volume, the compute service seems to hang on this libvirt-related call in nova/libvirt/connection.py: LibvirtConnection.attach_volume:
> 
> virt_dom.attachDevice(xml)
> 
> 
> The iscsi stuff seems to be working, I can manually attach the device to a running instance by doing something like this:
> 
> sudo virsh attach-disk instance-00000030 /dev/disk/by-path/ip-192.168.168.11:3260-iscsi-iqn.2010-10.org.openstack:volume-00000008-lun-0 vdc
> 
> 
> Anybody run into this?
> 
> 

To respond to my own question, other people seem to have encountered this issue, see this libvirt bug report: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/996840

There's a workaround proposed by Hendrik Volkmer in the comments of the report, I've tried it out and it works. For the code change, see https://github.com/nimbis/nova/commit/9311f21e2e17

Not pretty, but it works.

Take care,

Lorin
--
Lorin Hochstein
Lead Architect - Cloud Services
Nimbis Services, Inc.
www.nimbisservices.com


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20120524/c1304d64/attachment-0002.html>


More information about the Openstack-operators mailing list