Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 690407

Summary: Broken iscsi startscript in RHEL5.6
Product: Red Hat Enterprise Linux 5 Reporter: ES-Devel
Component: initscriptsAssignee: initscripts Maintenance Team <initscripts-maint-list>
Status: CLOSED DUPLICATE QA Contact: qe-baseos-daemons
Severity: medium Docs Contact:
Priority: unspecified    
Version: 5.6CC: harald, notting, nphilipp
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-03-24 15:19:58 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description ES-Devel 2011-03-24 09:16:41 UTC
Description of problem:

In RHEL5.6 the following code was added to /etc/rc.d/init.d/network

   if [ `find /sys/class/iscsi_session/ -mindepth 1 -maxdepth 1 -type d | wc -l` -ge 1 ]; then
      exit 1

In the case where there is no iscsi running, this causes the error message

   find: /sys/class/iscsi_session/: No such file or directory

I guess there should either be a 2>/dev/null, or a test first to see if the
directory exists.


Version-Release number of selected component (if applicable):

initscripts-8.45.33-1

Comment 3 Bill Nottingham 2011-03-24 15:19:58 UTC

*** This bug has been marked as a duplicate of bug 687849 ***