[LU-4951] DKMS RPM no longer works due to referencing removed modules in its current configuration Created: 24/Apr/14  Updated: 04/Jun/15  Resolved: 23/Jan/15

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.6.0, Lustre 2.7.0

Type: Bug Priority: Critical
Reporter: Bruno Faccini (Inactive) Assignee: Bruno Faccini (Inactive)
Resolution: Fixed Votes: 0
Labels: prz

Issue Links:
Related
is related to LU-2158 remove lvfs and fsfilt code Resolved
Severity: 3
Rank (Obsolete): 13699

 Description   

As part of TEI-1359 work to integrate DKMS RPM build+test in our tools chain, it hs been found that DKMS RPM fails during its post-installation when it tries to rebuild Lustre modules for the current/installed Kernel.
It fails complaining about the fact lvfs.ko module has not been built, but this because actual dkms.conf still references lvfs module when it has been removed as part of LU-2158.

First+quick patch will be to change/refresh dkms.conf with only currently generated modules. Next work will be to find a way to dynamically populate dkms.conf with the accurate modules.



 Comments   
Comment by Andreas Dilger [ 24/Apr/14 ]

This kind of drift between expected and actual modules was one of my original concerns with the static module list used for DKMS. Since the list does not change frequently, and we do not build DKMS packages as part of our build process, it is easy to forget changing the spec file. We definitely need the module list to be dynamically generated.

Comment by Andreas Dilger [ 24/Apr/14 ]

PS: I'm not against making the quick fix first.

Comment by Bruno Faccini (Inactive) [ 24/Apr/14 ]

Sure Andreas! Here it is, http://review.whamcloud.com/10090.

Comment by Bruno Faccini (Inactive) [ 26/May/14 ]

Patch has landed.

Comment by Gerrit Updater [ 19/Nov/14 ]

Faccini Bruno (bruno.faccini@intel.com) uploaded a new patch: http://review.whamcloud.com/12784
Subject: LU-4951 scripts: remove nodemap.ko in dkms.conf
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: ac5e95a4049b68af8ad0b20485c6200cf561c629

Comment by Bruno Faccini (Inactive) [ 19/Nov/14 ]

A new+similar problem has appeared since LU-4647 patch (Gerrit change #9299, at http://review.whamcloud.com/9299, Commit 83f04354ff68a14d7492e35a9576c91492a1206c) has landed in master (between tags 2.6.54 and 2.6.90) and has removed nodemap.ko module.

I have just pushed a new/2nd quick fix/patch to master for this at http://review.whamcloud.com/12784.

Doing so, I was trying to figure out how I can reliably modify the current creation process for dkms.conf file in order to dynamically detect from a particular Lustre version/source-tree:
1) modules that must always be built, with Client/Server distinction.
2) but may be also modules that will only build depending on configure-time discovery, like for ptlrpc_gss.ko ?
3) any other cause with impact on module creation?

Comment by Oleg Drokin [ 21/Jan/15 ]

I imagine by setting dependencies right we can avoid configure since we know we always have everything we need.

Comment by Gerrit Updater [ 23/Jan/15 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/12784/
Subject: LU-4951 scripts: remove nodemap.ko in dkms.conf
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 78afe76bd723df1736e4323ae3ccb42fd961c218

Comment by Peter Jones [ 23/Jan/15 ]

It looks like the latest fix has landed to 2.7

Generated at Sat Feb 10 01:47:15 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.