Bug 713162

Summary: Unwanted text 'find: /sys/class/iscsi_session/: No such file or directory' during shutdown
Product: Red Hat Enterprise Linux 5 Reporter: Charlie Brady <charlieb-fedora-bugzilla>
Component: initscriptsAssignee: initscripts Maintenance Team <initscripts-maint-list>
Status: CLOSED DUPLICATE QA Contact: qe-baseos-daemons
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 5.6CC: abdel.jalal, abdel.sadek, aveseb, bloch, bmr, bugzilla, cbuissar, cecilhsujp, charlieb-fedora-bugzilla, chris, coughlan, cww, davdunc, dl-iop-bugzilla, gru, harald, james, jeff_burdette, jplans, lajko.attila, matthew.piechota, mattjclark0407, mbarker, mchristi, moshiro, mr_w, notting, pep, pveiga, rmusil, robin, rob, shiyer, spojenie, syeghiay, tao, tumeya, vchepkov, vogel, wwlinuxengineering, yuji.furui
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 583218 Environment:
Last Closed: 2011-06-14 18:11:18 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 Charlie Brady 2011-06-14 14:12:26 UTC
+++ This bug was initially created as a clone of Bug #583218 +++

--- Additional comment from charlieb-fedora-bugzilla.org.au on 2010-11-26 17:52:29 EST ---

To avoid this:

....
Shutting down system logger:
find: /sys/class/iscsi_session/: No such file or directory
Shutting down interface eth0:
...

You could replace

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

with:

if [ $(ls -d /sys/class/iscsi_session/*/. 2>/dev/null | wc -l) -ge 1 ]; then

Comment 1 Charlie Brady 2011-06-14 14:20:16 UTC
The text isn't bogus, just unwanted. Only appears if there are no iscsi sessions/iscsid is disabled.

Comment 2 Bill Nottingham 2011-06-14 18:11:18 UTC

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