SUSE Support

Here When You Need Us

kernel: [ 4396.317032] Unable to locate Target IQN: iqn.2018-01.org.xyz.x86:testvol in Storage Node

This document (7022528) is provided subject to the disclaimer at the end of this document.

Environment


SUSE Linux Enterprise Server 12 Service Pack 1 (SLES 12 SP1)
SUSE Linux Enterprise Server 12 Service Pack 2 (SLES 12 SP2)
SUSE Linux Enterprise Server 12 Service Pack 3 (SLES 12 SP3)
SUSE Enterprise Storage 4
SUSE Enterprise Storage 3
SUSE Enterprise Storage 5

Situation

Following messages are flooding /var/log/messages  on iSCSI target server:

2018-01-08T17:20:02.147811+01:00 n4 kernel: [ 4396.317032] Unable to locate Target IQN: iqn.2018-01.org.iscsi-xyz.x86:testvol in Storage Node
2018-01-08T17:20:02.147828+01:00 n4 kernel: [ 4396.317079] iSCSI Login negotiation failed.

Resolution

Enable iSCSI debug logging on iSCSI gateway with the following command executed as root user

echo "file drivers/target/iscsi/iscsi_target_login.c +pf" > /sys/kernel/debug/dynamic_debug/control

Now examine /var/log/messages :

tail -f -n 0 /var/log/messages | grep -A 5 "Received iSCSI login request from"

Log shows the login request from client with IP address 10.10.1.40 followed with a message "Unable to locate Target ...":

n4:~ # tail -f -n 0 /var/log/messages | grep -A 5 "Received iSCSI login request from"
2018-01-08T17:41:03.899850+01:00 n4 kernel: [ 5658.069550] __iscsi_target_login_thread: Received iSCSI login request from 10.10.1.40:51478 on 
iSCSI/TCP Network Portal 10.10.1.44:3260
2018-01-08T17:41:03.899852+01:00 n4 kernel: [ 5658.069551] __iscsi_target_login_thread: Moving to TARG_CONN_STATE_IN_LOGIN.
2018-01-08T17:41:03.899854+01:00 n4 kernel: [ 5658.069568] Unable to locate Target IQN: iqn.2018-01.org.iscsi-xyz.x86:testvol in Storage Node
2018-01-08T17:41:03.899857+01:00 n4 kernel: [ 5658.069580] iSCSI Login negotiation failed.
2018-01-08T17:41:03.899859+01:00 n4 kernel: [ 5658.069592] __iscsi_target_login_thread: Moving to TARG_CONN_STATE_FREE.
2018-01-08T17:41:05.899819+01:00 n4 kernel: [ 5660.070763] iscsi_start_login_thread_timer: Added timeout timer to iSCSI login request for 15 seconds.

This means that client 10.10.1.40 is attempting to login to non-existing target on iSCSI target server.
Login to 10.10.1.40 and reconfigure the client.

Don't forget to disable the debug:

echo "file drivers/target/iscsi/iscsi_target_login.c -pf" > /sys/kernel/debug/dynamic_debug/control

Cause

Those messages mean there's an iSCSI client trying to connect to the iSCSI target that no longer exists.
To get rid of the annoying messages, which are otherwise harmless,  find the client trying to connect to non-existing target and perform a new target discovery.

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:7022528
  • Creation Date: 09-Jan-2018
  • Modified Date:03-Mar-2020
    • SUSE Enterprise Storage
    • SUSE Linux Enterprise Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.