Whamcloud - gitweb
LU-2907 build: Infiniband HW kernel modules of OFA builds not started
authorfrank <Frank.Heckes@intel.com>
Thu, 7 Mar 2013 10:37:41 +0000 (02:37 -0800)
committerOleg Drokin <oleg.drokin@intel.com>
Sun, 7 Apr 2013 16:49:35 +0000 (12:49 -0400)
commitc2dc6da8e75f13b6ada5f6d941712f68cb6afcd4
treefcb045b364a1362882e16837f6be36118428cdbf
parent9a93221475f5fab91ef510d77ca5d88b47140f8e
LU-2907 build: Infiniband HW kernel modules of OFA builds not started

Nodes installed with rhel6 and ofa (external OFED) builds fail during
the node provisioning phase due to missing connectivity to the
Infiniband fabric. Reason is the fact that the HW kernel modules
mlx4_core, mlx4_en, mlx4_ib are not loaded (modprobe'd) during the
system boot phase.

For rhel5 an installation conflict of the startup script
'/etc/init.d/openibd' provided by the OFED kernel-ib RPM and a
distribution RPM (openibd) prohibited the installation of the
kernel-ib RPM. As a workaround the removal of the code sections
inside the SPEC file associated with the kernel-ib that provide the
packaging and configuration of the startup-script had been
implemented. This was accomplished when applying the ed script
'01-play-nice-with-RHEL5.ed' to the kernel-ib SPEC file.

The packaging structure of rhel6 has changed. The RPM opnenibd no
longer exist, therefore the startup of the HW kernel modules will
be missing for rhel6 and the symptom of missing connectivity
occurs.

The patch fixes the problem by searching (via regular expression) for
the canonical (distribution) target name within the name of ed
script and only apply the changes if the cananoical target matches
the ed script name.

ED scripts use a naming convention where the descriptive
name is followed by a ':' separated list of canonical target names.

eg.

<descriptive-name>:<canonical-target-1>:<canonical-target-N>.ed

The string 'canonical-target' has to follow the convention used
for varialble CANONICAL_TARGET in script lbuild.

The original ed file for rhel5 has been updated to a meaningful
name that complies with this new format.

Signed-off-by: frank <Frank.Heckes@intel.com>
Change-Id: Ib25071e08553d28764e02ce50756deb91f757ed0
Reviewed-on: http://review.whamcloud.com/5630
Reviewed-by: Minh Diep <minh.diep@intel.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
contrib/lbuild/lbuild
contrib/patches/ofed/01-dont-include-openib-initscript:rhel5.ed [moved from contrib/patches/ofed/01-play-nice-with-RHEL5.ed with 100% similarity]
contrib/patches/ofed/01-remove-mlx4-erroneous-modprobe-config-file:rhel6.ed [new file with mode: 0644]