[ewg] When installing OFED, it tries to uninstall even if no OFED version is installed

Erez Zilber erezz at voltaire.com
Thu Apr 5 06:00:43 PDT 2007


Vlad,

It seems that when installing OFED, it tries to uninstall first even if
it doesn't exist:

I'm checking that OFED is not installed:
thyme:/tmp # rpm -q kernel-ib
package kernel-ib is not installed
thyme:/tmp #
thyme:/tmp #
thyme:/tmp # cd OFED-1.2-20070404-0600/
thyme:/tmp/OFED-1.2-20070404-0600 # ./install.sh -c ofed.conf -net
ofed_net.conf

Checking dependencies. Please wait ...


Building InfiniBand Software RPMs. Please wait...


Building ofa_user RPMs. Please wait...

Running rpmbuild --rebuild --define '_topdir /var/tmp/OFEDRPM' --define
'_prefix /usr/local/ofed' --define 'build_root /var/tmp/OFED' --define
'configure_options %{nil} --sysconfdir=/etc --mandir=/usr/share/man'
--define 'configure_options32 --sysconfdir=/etc --mandir=/usr/share/man'
--define 'build_32bit 1' --define '_mandir /usr/share/man'
/tmp/OFED-1.2-20070404-0600/SRPMS/ofa_user-1.2-beta1.src.rpm


Building ofa_kernel RPMs. Please wait...

Running rpmbuild --rebuild --define '_topdir /var/tmp/OFEDRPM' --define
'_prefix /usr/local/ofed' --define 'build_root /var/tmp/OFED' --define
'configure_options --with-ipoib-mod --with-iser-mod --with-mthca-mod
--with-core-mod --with-user_mad-mod --with-user_access-mod
--with-addr_trans-mod' --define 'KVERSION 2.6.16.21-0.8-smp' --define
'KSRC /lib/modules/2.6.16.21-0.8-smp/build' --define 'build_kernel_ib 1'
--define 'build_kernel_ib_devel 0' --define 'NETWORK_CONF_DIR
/etc/sysconfig/network' --define 'modprobe_update 1' --define
'include_ipoib_conf 1'
/tmp/OFED-1.2-20070404-0600/SRPMS/ofa_kernel-1.2-beta1.src.rpm

Running /bin/mv -f
/var/tmp/OFEDRPM/RPMS/x86_64/kernel-ib-1.2-2.6.16.21_0.8_smp.x86_64.rpm
/tmp/OFED-1.2-20070404-0600/RPMS/sles-release-10-15.2

Running rpmbuild --rebuild --target=noarch --define '_topdir
/var/tmp/OFEDRPM' --define '_prefix /usr/local/ofed'
/tmp/OFED-1.2-20070404-0600/SRPMS/ofed-docs-1.2-0.src.rpm

Running /bin/mv -f
/var/tmp/OFEDRPM/RPMS/noarch/ofed-docs-1.2-0.noarch.rpm
/tmp/OFED-1.2-20070404-0600/RPMS/sles-release-10-15.2

Running rpmbuild --rebuild --target=noarch --define '_topdir
/var/tmp/OFEDRPM' --define '_prefix /usr/local/ofed'
/tmp/OFED-1.2-20070404-0600/SRPMS/ofed-scripts-1.2-0.src.rpm

Running /bin/mv -f
/var/tmp/OFEDRPM/RPMS/noarch/ofed-scripts-1.2-0.noarch.rpm
/tmp/OFED-1.2-20070404-0600/RPMS/sles-release-10-15.2


Building open RPM. Please wait...

Running rpmbuild --rebuild --define '_topdir /var/tmp/OFEDRPM'
/tmp/OFED-1.2-20070404-0600/SRPMS/open-iscsi-generic-2.0-754.src.rpm

Running /bin/mv -f
/var/tmp/OFEDRPM/RPMS/x86_64/open-iscsi-2.0-754.x86_64.rpm
/tmp/OFED-1.2-20070404-0600/RPMS/sles-release-10-15.2


4 packages were built

Build process finished ...

Now, the install script removes the old installation (that doesn't exist):

Removing previous InfiniBand Software installations


Installing OFED software into /usr/local/ofed

Running /bin/rpm -ihv --force --nodeps
/tmp/OFED-1.2-20070404-0600/RPMS/sles-release-10-15.2/kernel-ib-1.2-2.6.16.21_0.8_smp.x86_64.rpm

Running /bin/rpm -Uhv
/tmp/OFED-1.2-20070404-0600/RPMS/sles-release-10-15.2/ofed-docs-1.2-0.noarch.rpm

Running /bin/rpm -Uhv
/tmp/OFED-1.2-20070404-0600/RPMS/sles-release-10-15.2/ofed-scripts-1.2-0.noarch.rpm

Running /bin/rpm -Uhv
/tmp/OFED-1.2-20070404-0600/RPMS/sles-release-10-15.2/open-iscsi-2.0-754.x86_64.rpm


IPoIB configuration for ib0:

IPADDR=192.168.10.58
NETMASK=255.255.255.0
NETWORK=192.168.10.0
BROADCAST=192.168.10.255
ONBOOT=yes

IPoIB configuration for ib1:

IPADDR=195.168.10.58
NETMASK=255.255.255.0
NETWORK=195.168.10.0
BROADCAST=195.168.10.255
ONBOOT=yes
Installation finished successfully...

Nothing fails, but it creates a problem for open-iscsi & iSER. The
build_env.sh script contains code that I've added
(http://lists.openfabrics.org/pipermail/ewg/2007-March/002822.html) that
checks if open-iscsi is already installed. If it is installed, and the
user selects to install iSER, the installation fails and notifies the
user that he has to uninstall open-iscsi before installing OFED with
iSER support.

Now, since OFED tries to uninstall first, it removes the open-iscsi
package even if this package wasn't installed by OFED (e.g. open-iscsi
that comes with SLES 10 or RHEL 5). Therefore, my code becomes useless.
Is it possible to change the install script behavior?

Thanks,
-- 

____________________________________________________________

Erez Zilber | 972-9-971-7689

Software Engineer, Storage Team

Voltaire – _The Grid Backbone_

__

www.voltaire.com <http://www.voltaire.com/>






More information about the ewg mailing list