Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
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.
(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.
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.