RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 736957 - iscsiadm are showing "no route to host" when scsi-target firewall REJECT the 3260 port.
Summary: iscsiadm are showing "no route to host" when scsi-target firewall REJECT the ...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: iscsi-initiator-utils
Version: 6.2
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: rc
: ---
Assignee: Andy Grover
QA Contact: Storage QE
URL:
Whiteboard:
Depends On:
Blocks: 767187
TreeView+ depends on / blocked
 
Reported: 2011-09-09 07:50 UTC by Gris Ge
Modified: 2012-06-26 16:27 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-05-02 21:47:49 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Gris Ge 2011-09-09 07:50:18 UTC
Description of problem:
iscsiadm are showing "no route to host" when scsi-target firewall REJECT the 3260 port.
==
iscsiadm: cannot make connection to 10.66.13.207: No route to host
==
This error message are quit confusing.
The correct should be "Connection was reset" if got firewall blocking.

Version-Release number of selected component (if applicable):
iscsi-initiator-utils-6.2.0.872-25.el6.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Start tgtd on a server with firewall REJECT 3260 port.
2. Try to perfrom discovery st to that tgtd.
3. Check the error message.
  
Actual results:
iscsiadm: cannot make connection to 10.66.13.207: No route to host

Expected results:
iscsiadm: cannot make connection to 10.66.13.207: Connection was reset or target port not open.

Additional info:
In this case, firewall was set to REJECT (RHEL default setting), so that iscsi got instantly reply of FIN, in this case, we inform user as connection was reset or target port no open.
If firewall was set to DROP, iscsi will timeout.

Comment 1 Mike Christie 2011-09-13 22:00:19 UTC
(In reply to comment #0)
> Description of problem:
> iscsiadm are showing "no route to host" when scsi-target firewall REJECT the
> 3260 port.
> ==
> iscsiadm: cannot make connection to 10.66.13.207: No route to host
> ==
> This error message are quit confusing.
> The correct should be "Connection was reset" if got firewall blocking.
> 

I do not really have any control over the error message. I do not really know what is going on at the TCP/IP level. I am just opening a socket, and then I get back some error value in the errno value. I then do strerror(errno) to get the string.

Do you see the same incorrect error message with other apps? If so, I think this is a common bug in the network kernel code or libc code and we should fix it there.

Comment 4 Mike Christie 2012-03-22 06:52:57 UTC
Gris,

I am going to close this or reassign. There is nothing the iscsi tools can do here. We get "no route to host" from the tcp/ip layer. The iscsi layer uses normal old sockets, so we do not have any control over what they are returning.


Note You need to log in before you can comment on or make changes to this bug.