On 07/28/2011 06:01 PM, Farhan Ahmed wrote:
> Here is the output of iscsiadm -m node -I eth3
> 
> [root@nfs02 ~]# iscsiadm -m node -I eth3
> # BEGIN RECORD 2.0-872
> node.name =
> iqn.2001-05.com.equallogic:0-8a0906-f0a1ed402-1f40012bba54e28b-nfs02-bond
> node.tpgt = 1
> node.startup = automatic
> node.leading_login = No
> iface.hwaddress = 00:21:28:C0:BB:D3
> iface.ipaddress = <empty>
> iface.iscsi_ifacename = eth3
> iface.net_ifacename = eth3
> iface.transport_name = tcp


Could you run with the attached patch? Run iscsid as iscsid -d 8 -f &
again and send all the output when you run the login command like you
did before.

Also try just setting either iface.net_ifacename  or iface.hwaddress. Do
not set both at the same time.

-- 
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/open-iscsi?hl=en.

diff --git a/usr/io.c b/usr/io.c
index fef6785..80edc13 100644
--- a/usr/io.c
+++ b/usr/io.c
@@ -299,8 +299,12 @@ static int bind_conn_to_iface(iscsi_conn_t *conn, struct 
iface_rec *iface)
 {
        struct iscsi_session *session = conn->session;
 
-       if (strcmp(iface->transport_name, DEFAULT_TRANSPORT))
+       log_error("bind_conn_to_iface\n");
+
+       if (strcmp(iface->transport_name, DEFAULT_TRANSPORT)) {
+               log_error("what? some other transport %s\n", 
iface->transport_name);
                return 0;
+       }
 
        memset(session->netdev, 0, IFNAMSIZ);
        if (iface_is_bound_by_hwaddr(iface) &&
@@ -323,6 +327,9 @@ static int bind_conn_to_iface(iscsi_conn_t *conn, struct 
iface_rec *iface)
                return -1;
        }
 
+       log_error("got netdev %s from %s %s\n", session->netdev,
+               iface->netdev, iface->hwaddress);
+
        if (strlen(session->netdev)) {
                struct ifreq ifr;
 

Reply via email to