Bug 694402 - "find: /sys/class/iscsi_session/: No such file or directory" when shutting down or rebooting
Summary: "find: /sys/class/iscsi_session/: No such file or directory" when shutting do...
Keywords:
Status: CLOSED DUPLICATE of bug 687849
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: initscripts
Version: 5.6
Hardware: All
OS: Linux
unspecified
low
Target Milestone: rc
: ---
Assignee: initscripts Maintenance Team
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-07 08:47 UTC by Pierre Carrier
Modified: 2011-04-08 08:19 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-04-07 15:33:12 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Pierre Carrier 2011-04-07 08:47:42 UTC
Description of problem:
- When shutting down or rebooting, if /sys/class/iscsi_session/ does not exist, /etc/rc.d/init.d/network shows an error

Version-Release number of selected component (if applicable):
initscripts-8.45.33-1.el5.x86_64

Steps to Reproduce:
1. Set up a machine without iSCSI
2. Log the console output
3. # shutdown -h now
  
Actual results:
"""
Shutting down system logger: [ OK ] 
find: /sys/class/iscsi_session/: No such file or directory 
Shutting down interface eth0: [ OK ]
"""

Expected results:
- No error messages.


Additional info:
- Can be fixed with:

--- etc/rc.d/init.d/network.orig	2011-04-07 09:43:38.000000000 +0100
+++ etc/rc.d/init.d/network	2011-04-07 09:43:57.000000000 +0100
@@ -202,3 +202,3 @@
 	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
-		if [ `find /sys/class/iscsi_session/ -mindepth 1 -maxdepth 1 -type d | wc -l` -ge 1 ]; then
+		if [ `find /sys/class/iscsi_session/ -mindepth 1 -maxdepth 1 -type d 2> /dev/null | wc -l` -ge 1 ]; then
 			exit 1

Visitors, please note that:
- This is a benign error message, it can be discarded.
- It will only appear in runlevel 0, 1, 6, hence not during a simple "service network restart".

Comment 1 Bill Nottingham 2011-04-07 15:33:12 UTC

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


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