mlnx-ofed-light deb fails to install: can't find dependency linux-headers

Bug #1398978 reported by Gil Meir
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Invalid
High
Aviram Bar-Haim
6.0.x
Fix Released
High
MOS Linux
6.1.x
Invalid
High
Aviram Bar-Haim

Bug Description

Mellanox OFED were tested on the newest kernel (3.13) on Fuel v6.0 and failed.

During installation of OFED drivers this error appears:

/usr/bin/dpkg -i --force-confnew --force-confmiss /opt/ofed/MLNX_OFED_light/DEBS/mlnx-ofed-kernel-dkms_2.3-OFED.2.3.2.0.0.1.g7e4238c_all.deb
Selecting previously unselected package mlnx-ofed-kernel-dkms.
(Reading database ... 85822 files and directories currently installed.)
Unpacking mlnx-ofed-kernel-dkms (from .../mlnx-ofed-kernel-dkms_2.3-OFED.2.3.2.0.0.1.g7e4238c_all.deb) ...
dpkg: dependency problems prevent configuration of mlnx-ofed-kernel-dkms:
 mlnx-ofed-kernel-dkms depends on linux-headers-generic | linux-headers; however:
  Package linux-headers-generic is not installed.
  Package linux-headers is not installed.
dpkg: error processing mlnx-ofed-kernel-dkms (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 mlnx-ofed-kernel-dkms

The linux-headers package seems to be already installed, we are investigating the reason for this error.

Gil Meir (gilmeir-d)
Changed in fuel:
assignee: nobody → Gil Meir (gilmeir-d)
Changed in fuel:
milestone: none → 6.0
Changed in fuel:
milestone: 6.0 → 6.1
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Evgeniya Shumakher (eshumakher) wrote :

Gil, please comment why the bug is High

Revision history for this message
Gil Meir (gilmeir-d) wrote :

The kernel module package in our drivers fails to install since dpkg says the linux-headers package is missing.
The package appears in dpkg --list | grep linux-headers, but dpkg -s linux-headers says it is not installed.
We are not sure why this is caused, and we are examining a workaround to add "force" to the installation in our install script.
This shouldn't affect the drivers later, since due to kernel mismatch between OS installation and the target kernel - we recompile our kernel module afterwards.
This cannot be done manually by the user and requires repackaging of the mlnx-ofed-light deb package.

Regarding v6.1 we will do a better job and find a better solution for our drivers installation, we didn't expect all these kernel mismatches since there weren't any in v5.1.

Revision history for this message
Gil Meir (gilmeir-d) wrote :

More details if anyone has a better idea for solving this..

tags: added: partner
Revision history for this message
Alexei Sheplyakov (asheplyakov) wrote :

The mlnx-ofed-kernel-dkms package should not depend on linux-headers (which provides Linux 3.2.x headers)
or any other version specific kernel headers (depending on specific version of kernel headers kind of denies
the purpose of dkms). Instead it should depend on dkms.

Revision history for this message
Gil Meir (gilmeir-d) wrote :

Attached is the fixed ofed deb package. It now contains the missing dependency for linux-headers-generic-lts-trusty.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (master)

Fix proposed to branch: master
Review: https://review.openstack.org/139940

Changed in fuel:
status: Confirmed → In Progress
Revision history for this message
Gil Meir (gilmeir-d) wrote :

Both changes are required:
1. Update the deb package since it now has the correct dependency.
2. The puppet fix moves the OFED recompilation step to an earlier stage, stage zero, since doing it on the main stage caused problems in 6.0

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (master)

Reviewed: https://review.openstack.org/139940
Committed: https://git.openstack.org/cgit/stackforge/fuel-library/commit/?id=9feba84f428dff957042a5464aad343e17e8ff32
Submitter: Jenkins
Branch: master

commit 9feba84f428dff957042a5464aad343e17e8ff32
Author: Gil Meir <email address hidden>
Date: Sat Dec 6 23:34:15 2014 +0200

    Fix OFED install failure on Ubuntu

    Moved ofed recompilation to puppet stage zero before
    iser interface rename.

    Closes-bug: 1398978
    Signed-off-by: Gil Meir <email address hidden>
    Change-Id: I5bcf0520d3257b376d1abb00076f9aba77a772e3

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
Roman Vyalov (r0mikiam) wrote :

please rebuilding packages with new code (https://bugs.launchpad.net/fuel/6.0.x/+bug/1398978/comments/5)

Revision history for this message
OSCI Robot (oscirobot) wrote :

DEB package mlnx-ofed-light has been built for project packages/precise/mlnx-ofed-light
Package version == , package release ==

Changeset: https://review.fuel-infra.org/1280
project: packages/precise/mlnx-ofed-light
branch: 6.0
author: Aleksandr Mogylchenko
committer: Aleksandr Mogylchenko
subject: Package now contains the missing dependency for linux-headers-generic-lts-trusty
status: patchset-created

Files placed on repository:
mlnx-ofed-light_2.3-2.0.0.7_amd64.deb

NOTE: Changeset is not merged, created temporary package repository.
DEB repository URL: /ubuntu-fuel-6.0-stable-1280/ubuntu

Revision history for this message
OSCI Robot (oscirobot) wrote :

DEB package mlnx-ofed-light has been built for project packages/precise/mlnx-ofed-light
Package version == 2.3, package release == ubuntu4

Changeset: https://review.fuel-infra.org/1280
project: packages/precise/mlnx-ofed-light
branch: 6.0
author: Aleksandr Mogylchenko
committer: Aleksandr Mogylchenko
subject: Package now contains the missing dependency for linux-headers-generic-lts-trusty
status: patchset-created

Files placed on repository:
mlnx-ofed-light_2.3-ubuntu4_amd64.deb

NOTE: Changeset is not merged, created temporary package repository.
DEB repository URL: http://osci-obs.vm.mirantis.net:82/ubuntu-fuel-6.0-stable-1280/ubuntu

Revision history for this message
OSCI Robot (oscirobot) wrote :

DEB package mlnx-ofed-light has been built for project packages/precise/mlnx-ofed-light
Package version == 2.3, package release == ubuntu4

Changeset: https://review.fuel-infra.org/1280
project: packages/precise/mlnx-ofed-light
branch: 6.0
author: Aleksandr Mogylchenko
committer: Aleksandr Mogylchenko
subject: Package now contains the missing dependency for linux-headers-generic-lts-trusty
status: change-merged

Files placed on repository:
mlnx-ofed-light_2.3-ubuntu4_amd64.deb

Changeset merged. Package placed on primary repository
DEB repository URL: http://osci-obs.vm.mirantis.net:82/ubuntu-fuel-6.0-stable/ubuntu

Revision history for this message
Roman Vyalov (r0mikiam) wrote :

last built package form request has less version compared to the packages in the repository. 2.3-ubuntu4 <2.3.0-ubuntu3

Package building from request (https://review.fuel-infra.org/1280) =http://osci-obs.vm.mirantis.net:82/ubuntu-fuel-6.0-stable/ubuntu/amd64/mlnx-ofed-light_2.3-ubuntu4_amd64.deb
Package in repository=http://osci-obs.vm.mirantis.net:82/ubuntu-fuel-6.0-stable/reprepro/pool/main/m/mlnx-ofed-light/mlnx-ofed-light_2.3.0-ubuntu3_amd64.deb

Please create new ch request for fix this problem

Revision history for this message
OSCI Robot (oscirobot) wrote :

DEB package mlnx-ofed-light has been built for project packages/precise/mlnx-ofed-light
Package version == 2.3.0, package release == ubuntu5

Changeset: https://review.fuel-infra.org/1283
project: packages/precise/mlnx-ofed-light
branch: 6.0
author: Aleksandr Mogylchenko
committer: Aleksandr Mogylchenko
subject: Fix package version (from 2.3-xxx to 2.3.0-xxx)
status: patchset-created

Files placed on repository:
mlnx-ofed-light_2.3.0-ubuntu5_amd64.deb

NOTE: Changeset is not merged, created temporary package repository.
DEB repository URL: http://osci-obs.vm.mirantis.net:82/ubuntu-fuel-6.0-stable-1283/ubuntu

Revision history for this message
OSCI Robot (oscirobot) wrote :

DEB package mlnx-ofed-light has been built for project packages/precise/mlnx-ofed-light
Package version == 2.3.0, package release == ubuntu5

Changeset: https://review.fuel-infra.org/1283
project: packages/precise/mlnx-ofed-light
branch: 6.0
author: Aleksandr Mogylchenko
committer: Aleksandr Mogylchenko
subject: Fix package version (from 2.3-xxx to 2.3.0-xxx)
status: change-merged

Files placed on repository:
mlnx-ofed-light_2.3.0-ubuntu5_amd64.deb

Changeset merged. Package placed on primary repository
DEB repository URL: http://osci-obs.vm.mirantis.net:82/ubuntu-fuel-6.0-stable/ubuntu

Revision history for this message
Evgeniya Shumakher (eshumakher) wrote :

Aviram, i marked this bug as invalid. In case it's still an issue in 6.1, please comment.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.