Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

This is the last several lines on my log in verbose mode. It seems it's hanging some iscsiadm command in volume.py

2012-06-05 15:49:00 DEBUG nova.virt.libvirt.connection [req-effecfa6-9862-4bf5-ab29-3e7b8f100be3 None None] Updating host stats from (pid=31923) update_status /usr/lib/python2.7/dist-packages/nova/virt/libvirt/connection.py:2467 2012-06-05 15:49:04 DEBUG nova.manager [req-effecfa6-9862-4bf5-ab29-3e7b8f100be3 None None] Running periodic task ComputeManager._poll_unconfirmed_resizes from (pid=31923) periodic_tasks /usr/lib/python2.7/dist-packages/nova/manager.py:152 2012-06-05 15:49:04 DEBUG nova.virt.libvirt.volume [req-81e9b836-48dd-4465-887d-455d521d5a5a 22783796c597492dbb05f149aff16238 f07ca073f69648708d0480da9d761a42] iscsiadm ('--login',): stdout=Logging in to [iface: default, target: iqn.2010-10.org.openstack:volume-00000002, portal: 172.29.200.121,3260] Login to [iface: default, target: iqn.2010-10.org.openstack:volume-00000002, portal: 172.29.200.121,3260]: successful stderr= from (pid=31923) _run_iscsiadm /usr/lib/python2.7/dist-packages/nova/virt/libvirt/volume.py:112 2012-06-05 15:49:04 DEBUG nova.utils [req-81e9b836-48dd-4465-887d-455d521d5a5a 22783796c597492dbb05f149aff16238 f07ca073f69648708d0480da9d761a42] Running cmd (subprocess): sudo nova-rootwrap iscsiadm -m node -T iqn.2010-10.org.openstack:volume-00000002 -p 172.29.200.121:3260 --op update -n node.startup -v automatic from (pid=31923) execute /usr/lib/python2.7/dist-packages/nova/utils.py:219 2012-06-05 15:49:04 DEBUG nova.virt.libvirt.volume [req-81e9b836-48dd-4465-887d-455d521d5a5a 22783796c597492dbb05f149aff16238 f07ca073f69648708d0480da9d761a42] iscsiadm ('--op', 'update', '-n', 'node.startup', '-v', 'automatic'): stdout= stderr= from (pid=31923) _run_iscsiadm /usr/lib/python2.7/dist-packages/nova/virt/libvirt/volume.py:112

So it seems the problem is related with iscsiadm command in the code... But I can't resolve it yet. Help!!!

class LibvirtISCSIVolumeDriver(LibvirtVolumeDriver): """Driver to attach Network volumes to libvirt."""

def _run_iscsiadm(self, iscsi_properties, iscsi_command, **kwargs):
    check_exit_code = kwargs.pop('check_exit_code', 0)
    (out, err) = utils.execute('iscsiadm', '-m', 'node', '-T',
                               iscsi_properties['target_iqn'],
                               '-p', iscsi_properties['target_portal'],
                               *iscsi_command, run_as_root=True,
                               check_exit_code=check_exit_code)
    LOG.debug("iscsiadm %s: stdout=%s stderr=%s" %
              (iscsi_command, out, err))
    return (out, err)