I'm seeing an odd behaviour from sendtargets discovery in open-iscsi on one
of our systems. We're running open-iscsi 2.0-871 against a remote linux tgt
0.9.7. discovery.sendtargets.iscsi.MaxRecvDataSegmentLength is set to 262144
to avoid the target list being prematurely truncated.

When I run

  iscsiadm -m discovery -t sendtargets

against the remote target, sometimes it is returning warning messages and
aborting halfway through the target list:

  # iscsiadm -m discovery -t sendtargets -p 
0a2bc790-aab9-45bd-ad58-6fd7d9b2aae7.storage.elastichosts.com | wc -l
  iscsiadm: Cannot resolve host 172.16.226.12. getaddrinfo error: [Servname not 
supported for ai_socktype]

  iscsiadm: cannot resolve 172.16.226.12
  iscsiadm: failed to add default portal, ignoring target
iqn.2008-03.com.elastichosts:ad0b32d2-c220-4be5-a609-5ea063f0a4cc:daaa6df9-0d5d-4d31-b5d7-e3799c9efd4f
  iscsiadm: failed to add target record
  iscsiadm: This command will remove the record [iface: default, target:
iqn.2008-03.com.elastichosts:ad0b32d2-c220-4be5-a609-5ea063f0a4cc:32367157-899b-4e75-ad4f-2c23d828a92a,
 portal:
172.16.226.12,3260], but a session is using it. Logout session then rerun 
command to remove record.
  iscsiadm: This command will remove the record [iface: default, target:
iqn.2008-03.com.elastichosts:ad0b32d2-c220-4be5-a609-5ea063f0a4cc:d79f2d28-8bd0-43d3-b44f-41e863afddda,
 portal:
172.16.226.12,3260], but a session is using it. Logout session then rerun 
command to remove record.
  55

whereas sometimes it works fine:

  # iscsiadm -m discovery -t sendtargets -p 
0a2bc790-aab9-45bd-ad58-6fd7d9b2aae7.storage.elastichosts.com | wc -l
  113

Which of these it does appears to vary from second to second: I can get a
couple of failures then a few successes then some failures again, which is very
strange!

It is entirely possible that this is actually a bug in the tgt target rather
than in open-iscsi, of course. Is there an easy way to pinpoint what's going on
here? The getaddrinfo error is particularly puzzling.

Best wishes,

Chris.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To post to this group, send email to open-iscsi@googlegroups.com
To unsubscribe from this group, send email to 
open-iscsi+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/open-iscsi
-~----------~----~----~----~------~----~------~--~---

Reply via email to