Bug 687849

Summary: noisy output if no iscsid check during shutdown or reboot
Product: Red Hat Enterprise Linux 5 Reporter: Martin Poole <mpoole>
Component: initscriptsAssignee: initscripts Maintenance Team <initscripts-maint-list>
Status: CLOSED ERRATA QA Contact: qe-baseos-daemons
Severity: medium Docs Contact:
Priority: medium    
Version: 5.6CC: azelinka, charlieb-fedora-bugzilla, ES-Devel, harald, herrold, notting, prc
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Previously, when no Internet Small Computer System Interface (iSCSI) check was done during shutdown or reboot, the following redundant error message was given: find: /sys/class/iscsi_session/: No such file or directory With this update, the /etc/rc.d/init.d/network script has been fixed and the error message is no longer displayed.
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-07-21 08:36:44 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 Martin Poole 2011-03-15 15:21:41 UTC
+++ This bug was initially created as a clone of Bug #583218 +++


--- Additional comment 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 RHEL Program Management 2011-03-15 16:50:21 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.

Comment 2 Bill Nottingham 2011-03-24 15:19:58 UTC
*** Bug 690407 has been marked as a duplicate of this bug. ***

Comment 4 Bill Nottingham 2011-04-07 15:33:12 UTC
*** Bug 694402 has been marked as a duplicate of this bug. ***

Comment 6 Bill Nottingham 2011-06-14 18:11:18 UTC
*** Bug 713162 has been marked as a duplicate of this bug. ***

Comment 8 Tomas Capek 2011-07-13 12:26:49 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Previously, when no Internet Small Computer System Interface (iSCSI) check was done during shutdown or reboot, the following redundant error message was given:

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

With this update, the /etc/rc.d/init.d/network script has been fixed and the error message is no longer displayed.

Comment 9 Charlie Brady 2011-07-14 20:55:08 UTC
In which package is this fixed? Thanks.

Comment 10 errata-xmlrpc 2011-07-21 08:36:44 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-1081.html

Comment 11 errata-xmlrpc 2011-07-21 12:40:52 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-1081.html