<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#FFFFFF">
I have been able to connect to this iSCSI target before but now I'm
getting some weird errors, see attached vdsm.log but in short its
about the following:<br>
<br>
<small><tt>Thread-161303::DEBUG::2013-03-07
09:54:14,401::task::568::TaskManager.Task::(_updateState)
Task=`182a27fe-dfb0-4e68-965e-c77b61050da9`::moving from state
init -> state preparing</tt><tt><br>
</tt><tt>Thread-161303::INFO::2013-03-07
09:54:14,402::logUtils::41::dispatcher::(wrapper) Run and
protect: discoverSendTargets(con={'connection': '192.168.4.234',
'password': '******', 'port': '3260', 'user': ''}, options=None)</tt><tt><br>
</tt><tt>Thread-161303::DEBUG::2013-03-07
09:54:14,402::misc::84::Storage.Misc.excCmd::(<lambda>)
'/usr/bin/sudo -n /sbin/iscsiadm -m discoverydb -t sendtargets
-I default -p 192.168.4.234:3260 --op=new' (cwd None)</tt><tt><br>
</tt><tt>Thread-161303::DEBUG::2013-03-07
09:54:14,428::misc::84::Storage.Misc.excCmd::(<lambda>)
SUCCESS: <err> = ''; <rc> = 0</tt><tt><br>
</tt><tt>Thread-161303::DEBUG::2013-03-07
09:54:14,428::misc::84::Storage.Misc.excCmd::(<lambda>)
'/usr/bin/sudo -n /sbin/iscsiadm -m discoverydb -t sendtargets
-I default -p 192.168.4.234:3260 -n node.startup -v manual
--op=update' (cwd None)</tt><tt><br>
</tt><tt>Thread-161303::DEBUG::2013-03-07
09:54:14,452::misc::84::Storage.Misc.excCmd::(<lambda>)
FAILED: <err> = 'iscsiadm: Cannot modify node.startup.
Invalid param name.\n'; <rc> = 7</tt><tt><br>
</tt><tt>Thread-161303::DEBUG::2013-03-07
09:54:14,453::misc::84::Storage.Misc.excCmd::(<lambda>)
'/usr/bin/sudo -n /sbin/iscsiadm -m iface' (cwd None)</tt><tt><br>
</tt><tt>Thread-161303::DEBUG::2013-03-07
09:54:14,476::misc::84::Storage.Misc.excCmd::(<lambda>)
SUCCESS: <err> = ''; <rc> = 0</tt><tt><br>
</tt><tt>Thread-161303::DEBUG::2013-03-07
09:54:14,477::misc::84::Storage.Misc.excCmd::(<lambda>)
'/usr/bin/sudo -n /sbin/iscsiadm -m discoverydb -t sendtargets
-I default -p 192.168.4.234:3260 --discover' (cwd None)</tt><tt><br>
</tt><tt>Thread-161303::DEBUG::2013-03-07
09:54:14,512::misc::84::Storage.Misc.excCmd::(<lambda>)
FAILED: <err> = 'iscsiadm: No portals found\n'; <rc>
= 21</tt><tt><br>
</tt><tt>Thread-161303::DEBUG::2013-03-07
09:54:14,516::misc::84::Storage.Misc.excCmd::(<lambda>)
'/usr/bin/sudo -n /sbin/iscsiadm -m iface' (cwd None)</tt><tt><br>
</tt><tt>Thread-161303::DEBUG::2013-03-07
09:54:14,541::misc::84::Storage.Misc.excCmd::(<lambda>)
SUCCESS: <err> = ''; <rc> = 0</tt><tt><br>
</tt><tt>Thread-161303::DEBUG::2013-03-07
09:54:14,541::misc::84::Storage.Misc.excCmd::(<lambda>)
'/usr/bin/sudo -n /sbin/iscsiadm -m discoverydb -t sendtargets
-I default -p 192.168.4.234:3260 --op=delete' (cwd None)</tt><tt><br>
</tt><tt>Thread-161303::DEBUG::2013-03-07
09:54:14,565::misc::84::Storage.Misc.excCmd::(<lambda>)
SUCCESS: <err> = ''; <rc> = 0</tt><tt><br>
</tt><tt>Thread-161303::ERROR::2013-03-07
09:54:14,566::hsm::2799::Storage.HSM::(discoverSendTargets)
Discovery failed</tt><tt><br>
</tt><tt>Traceback (most recent call last):</tt><tt><br>
</tt><tt> File "/usr/share/vdsm/storage/hsm.py", line 2797, in
discoverSendTargets</tt><tt><br>
</tt><tt> targets = iscsi.discoverSendTargets(iface, portal,
cred)</tt><tt><br>
</tt><tt> File "/usr/share/vdsm/storage/iscsi.py", line 202, in
discoverSendTargets</tt><tt><br>
</tt><tt> targets = iscsiadm.discoverydb_discover(discoverType,
iface.name, portalStr)</tt><tt><br>
</tt><tt> File "/usr/share/vdsm/storage/iscsiadm.py", line 213,
in discoverydb_discover</tt><tt><br>
</tt><tt> raise IscsiDiscoverdbError(rc, out, err)</tt><tt><br>
</tt><tt>IscsiDiscoverdbError: (21, [], ['iscsiadm: No portals
found'])</tt><tt><br>
</tt><tt>Thread-161303::ERROR::2013-03-07
09:54:14,567::task::833::TaskManager.Task::(_setError)
Task=`182a27fe-dfb0-4e68-965e-c77b61050da9`::Unexpected error</tt><tt><br>
</tt><tt>Traceback (most recent call last):</tt><tt><br>
</tt><tt> File "/usr/share/vdsm/storage/task.py", line 840, in
_run</tt><tt><br>
</tt><tt> return fn(*args, **kargs)</tt><tt><br>
</tt><tt> File "/usr/share/vdsm/logUtils.py", line 42, in wrapper</tt><tt><br>
</tt><tt> res = f(*args, **kwargs)</tt><tt><br>
</tt><tt> File "/usr/share/vdsm/storage/hsm.py", line 2800, in
discoverSendTargets</tt><tt><br>
</tt><tt> raise se.iSCSIDiscoveryError(portal, e) </tt></small><br>
<br>
Running the commands in a shell indeed gives the errors shown.<br>
<br>
I have a wild guess but what interface is -I default referring to?<br>
I had more than one interface activated for this host but moved it
to a cluster which didn't have the network definitions and removed
the now invalid networks from the host. Just checked with tcpdump
and the traffic is going through ovirtmgmt interface and the storage
is responding.<br>
/var/lib/iscsi isn't filled with info, only
sendtargets/target_ip_address/st_config<br>
<br>
Joop<br>
--<br>
irc: jvandewege<br>
<br>
<br>
</body>
</html>