<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div apple-content-edited="true"><br></div><div><div>On May 24, 2012, at 3:06 PM, Lorin Hochstein wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi All:<div><br></div><div>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:</div><div><br></div><div>virt_dom.attachDevice(xml)</div><div><br></div><div><br></div><div>The iscsi stuff seems to be working, I can manually attach the device to a running instance by doing something like this:</div><div><br></div><div>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</div><div><br></div><div><br></div><div>Anybody run into this?</div><div><br></div><div><br></div><div><div apple-content-edited="true">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "></div></div></div></div></div></blockquote><div><br></div><div>To respond to my own question, other people seem to have encountered this issue, see this libvirt bug report: <a href="https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/996840">https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/996840</a><div><br></div><div>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 <a href="https://github.com/nimbis/nova/commit/9311f21e2e17">https://github.com/nimbis/nova/commit/9311f21e2e17</a></div><div><br></div><div>Not pretty, but it works.</div><div><br><div apple-content-edited="true"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Take care,</div><div><br></div><div>Lorin</div><div>--</div><div>Lorin Hochstein</div><div>Lead Architect - Cloud Services</div><div>Nimbis Services, Inc.</div><div><a href="https://www.nimbisservices.com/">www.nimbisservices.com</a></div><div><br></div></div></span></div></div></div></div></div><br></div></body></html>