Bug 689701 - /sbin/multipath and /sbin/multipathd relies on libraries in /usr
Summary: /sbin/multipath and /sbin/multipathd relies on libraries in /usr
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: device-mapper-multipath
Version: 5.6
Hardware: All
OS: Linux
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: LVM and device-mapper development team
QA Contact: Gris Ge
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-03-22 08:12 UTC by Zhouping Liu
Modified: 2014-01-13 00:01 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-03-28 20:50:14 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Zhouping Liu 2011-03-22 08:12:53 UTC
Description of problem:
/sbin/multipath and /sbin/multipathd relies on libraries in /usr
#ldd /sbin/multipath
     libsysfs.so.2 => /usr/lib64/libsysfs.so.2 (0x00000035f4000000)
#ldd /sbin/multipathd
     libdevmapper.so.1.02 => /lib64/libdevmapper.so.1.02 (0x00000035f1c00000)
     libsysfs.so.2 => /usr/lib64/libsysfs.so.2 (0x00000035f4000000)
     libreadline.so.5 => /usr/lib64/libreadline.so.5 (0x00000035f2800000)
     libncurses.so.5 => /usr/lib64/libncurses.so.5 (0x0000003603e00000)



Version-Release number of selected component (if applicable):
device-mapper-multipath-0.4.7-42

How reproducible:
always

Steps to Reproduce:
1. install RHEL5.6.z with device-mapper-multipath
2. ldd /sbin/multipath & ldd /sbin/multipathd
  
Actual results:
# ldd /sbin/multipath
   linux-vdso.so.1 =>  (0x00007fff23bfc000)
   libdevmapper.so.1.02 => /lib64/libdevmapper.so.1.02 (0x00000035f1c00000)
   libsysfs.so.2 => /usr/lib64/libsysfs.so.2 (0x00000035f4000000)
   libc.so.6 => /lib64/libc.so.6 (0x00000035f0c00000)
   libm.so.6 => /lib64/libm.so.6 (0x00000035f1400000)
   libselinux.so.1 => /lib64/libselinux.so.1 (0x00000035f7800000)
   libsepol.so.1 => /lib64/libsepol.so.1 (0x00000035f7400000)
   /lib64/ld-linux-x86-64.so.2 (0x00000035f0400000)
   libdl.so.2 => /lib64/libdl.so.2 (0x00000035f1000000)

# ldd /sbin/multipathd
   linux-vdso.so.1 =>  (0x00007ffff573a000)
   libpthread.so.0 => /lib64/libpthread.so.0 (0x00000035f1800000)
   libdevmapper.so.1.02 => /lib64/libdevmapper.so.1.02 (0x00000035f1c00000)
   libsysfs.so.2 => /usr/lib64/libsysfs.so.2 (0x00000035f4000000)
   libreadline.so.5 => /usr/lib64/libreadline.so.5 (0x00000035f2800000)
   libncurses.so.5 => /usr/lib64/libncurses.so.5 (0x0000003603e00000)
   libc.so.6 => /lib64/libc.so.6 (0x00000035f0c00000)
   /lib64/ld-linux-x86-64.so.2 (0x00000035f0400000)
   libm.so.6 => /lib64/libm.so.6 (0x00000035f1400000)
   libselinux.so.1 => /lib64/libselinux.so.1 (0x00000035f7800000)
   libsepol.so.1 => /lib64/libsepol.so.1 (0x00000035f7400000)
   libdl.so.2 => /lib64/libdl.so.2 (0x00000035f1000000)

Expected results:
/sbin/multipath should not rely on libraries in /usr
/sbin/multipathd should not rely on libraries in /usr


Additional info:
you can check the FAILED TPS result to know more info: 
http://nest.test.redhat.com/mnt/qa/scratch/x86-64-5c-m1/2011:10926/tps/tps-rpmtest.html
there's a similar FIXED BZ:
https://bugzilla.redhat.com/show_bug.cgi?id=593269

Comment 1 Mike Snitzer 2011-03-22 12:34:58 UTC
Can you elaborate on _why_ multipath and multipathd must be static binaries?

Based on the justification here:
https://bugzilla.redhat.com/show_bug.cgi?id=593269#c3

I can assume it is to address the case where root and/or /sbin/ is provided by a multipath device?

Multipath root support is provided by dracut.  It pulls in all the shared libs that multipath requires.

So given the reference to FHS, we need to either make multipath* static or move the binaries to /usr/sbin/ ?

A _real_ bug would be nice; rather than chasing ghosts...

Comment 4 Gris Ge 2011-03-29 03:02:52 UTC
RHEL 5 ignore.
RHEL 6 not a issue.

WONTFIX is OK.


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