Bug 697567

Summary: files in /sbin depending on /usr
Product: Red Hat Enterprise Linux 6 Reporter: Karel Volný <kvolny>
Component: iscsi-initiator-utilsAssignee: Andy Grover <agrover>
Status: CLOSED DUPLICATE QA Contact: Red Hat Kernel QE team <kernel-qe>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.1CC: borgan, coughlan, mchristi, syeghiay
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: iscsi-initiator-utils-6.2.0.872-19 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-04-20 02:07:59 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Karel Volný 2011-04-18 15:47:25 UTC
Description of problem:
/sbin/iscsiadm and /sbin/iscsid depend on files in /usr but /usr needs not to be available (mounted) when /sbin binaries are used.

From FHS
(http://www.pathname.com/fhs/pub/fhs-2.3.html#SBINSYSTEMBINARIES)

"/sbin contains binaries essential for booting, restoring, recovering, and/or repairing the system in addition to the binaries in /bin."

There are several options:

1) If iscsiadm or iscsid are not essential, they should be moved to /usr/sbin

2) If iscsiadm or iscsid have to stay in /sbin, then they must be able to run without /usr mounted, i.e. the dependencies have to be moved from /usr/lib* to /lib*, or linked statically.

3) If neither of the above is possible (desirable), the exception has to be justified and documented fo further reference (so far I haven't found any relevant docs).

Version-Release number of selected component (if applicable):
iscsi-initiator-utils-6.2.0.872-10.el6

How reproducible:
always

Steps to Reproduce:
1. run the test /CoreOS/libtirpc/Sanity/bz558937-sbin-dependencies-in-usr
  
Actual results:
:: [   FAIL   ] :: File /sbin/iscsiadm (from iscsi-initiator-utils-6.2.0.872-10.el6.x86_64) depends on /usr 
:: [   INFO   ] :: The affected dependencies:
:: [   INFO   ] :: - /usr/lib64/libcrypto.so.10 (from openssl-1.0.0-10.el6.x86_64)
:: [   FAIL   ] :: File /sbin/iscsid (from iscsi-initiator-utils-6.2.0.872-10.el6.x86_64) depends on /usr 
:: [   INFO   ] :: The affected dependencies:
:: [   INFO   ] :: - /usr/lib64/libcrypto.so.10 (from openssl-1.0.0-10.el6.x86_64)


Expected results:
(no such failures)

Additional info:

Comment 2 Mike Christie 2011-04-18 17:17:06 UTC
This should be fixed in iscsi-initiator-utils-6.2.0.872-19.

Comment 8 Mike Christie 2011-04-20 02:07:59 UTC

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

Comment 11 Laura Bailey 2011-05-12 07:57:18 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:
The iscsiadm and iscsid commands depended on files in /usr, but did not require that /usr was mounted when they were used. This resulted in failures without useful error messages when the user attempted to use these commands when /usr was not mounted. This issue has been corrected, and these failures no longer occur.

Comment 13 Laura Bailey 2011-05-13 01:39:58 UTC
Deleted Technical Notes Contents.

Old Contents:
The iscsiadm and iscsid commands depended on files in /usr, but did not require that /usr was mounted when they were used. This resulted in failures without useful error messages when the user attempted to use these commands when /usr was not mounted. This issue has been corrected, and these failures no longer occur.