Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

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:
Embargoed:

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.