[LU-15208] Lustre server build fails against Ubuntu 20.04 Kernel : 5.4.0-90-generic Created: 11/Nov/21  Updated: 13/Dec/21  Resolved: 13/Dec/21

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.14.0
Fix Version/s: Lustre 2.15.0

Type: Bug Priority: Minor
Reporter: Shuichi Ihara Assignee: Dongyang Li
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Related
is related to LU-15083 osp_last_used_init() returns -28 Resolved
is related to LU-13740 Ubuntu 20.04 LTS release Resolved
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

Lustre server build fails against Ubuntu 20.04 (kernel 5.4.0-90-generic).
It seems there are two issue.

Wrong patch series detection

ln -s ../../ldiskfs/kernel_patches/patches linux-stage/patches
ln -s ../../ldiskfs/kernel_patches/series/ldiskfs-5.4.0-66-ubuntu20.series linux-stage/series
cd linux-stage && quilt push -a -q
Applying patch patches/rhel8/ext4-inode-version.patch
Applying patch patches/linux-5.4/ext4-lookup-dotdot.patch
Applying patch patches/suse15/ext4-print-inum-in-htree-warning.patch
Applying patch patches/rhel8/ext4-prealloc.patch
Applying patch patches/ubuntu18/ext4-osd-iop-common.patch
Applying patch patches/ubuntu19/ext4-misc.patch

ldiskfs-5.4.0-66-ubuntu20.series shouldn't be selected for -90 kernel since ldiskfs-5.4.0-80-ubuntu20.series is exist for a newer version.
Following workaround worked

diff --git a/config/lustre-build-ldiskfs.m4 b/config/lustre-build-ldiskfs.m4
index b868652349..572ced796b 100644
--- a/config/lustre-build-ldiskfs.m4
+++ b/config/lustre-build-ldiskfs.m4
@@ -109,8 +109,8 @@ AS_IF([test x$RHEL_KERNEL = xyes], [
                                LDISKFS_SERIES="5.4.0-80-ubuntu20.series"
                        ],
                        [test $KPLEV -eq 1007], [LDISKFS_SERIES="5.4.0-42-ubuntu20.series"],
-                       [test $KPLEV -ge 66], [LDISKFS_SERIES="5.4.0-66-ubuntu20.series"],
                        [test $KPLEV -ge 80], [LDISKFS_SERIES="5.4.0-80-ubuntu20.series"],
+                       [test $KPLEV -ge 66], [LDISKFS_SERIES="5.4.0-66-ubuntu20.series"],
                        [LDISKFS_SERIES="5.4.0-42-ubuntu20.series"]
                )
        ],

But, still failed at patches/ubuntu19/ext4-misc.patch. that patch needs to be refreshed against -90 kernel.

ln -s ../../ldiskfs/kernel_patches/patches linux-stage/patches
ln -s ../../ldiskfs/kernel_patches/series/ldiskfs-5.4.0-80-ubuntu20.series linux-stage/series
cd linux-stage && quilt push -a -q
Applying patch patches/rhel8/ext4-inode-version.patch
Applying patch patches/linux-5.4/ext4-lookup-dotdot.patch
Applying patch patches/suse15/ext4-print-inum-in-htree-warning.patch
Applying patch patches/rhel8/ext4-prealloc.patch
Applying patch patches/ubuntu18/ext4-osd-iop-common.patch
Applying patch patches/ubuntu19/ext4-misc.patch
1 out of 3 hunks FAILED
Patch patches/ubuntu19/ext4-misc.patch does not apply (enforce with -f)
make[4]: *** [autoMakefile:643: sources] Error 1
make[4]: Leaving directory '/home/ubuntu/lustre-release/ldiskfs'
make[3]: *** [autoMakefile:615: all-recursive] Error 1
make[3]: Leaving directory '/home/ubuntu/lustre-release'
make[2]: *** [autoMakefile:503: all] Error 2
make[2]: Leaving directory '/home/ubuntu/lustre-release'
make[1]: *** [debian/rules:226: build-stamp] Error 2
make[1]: Leaving directory '/home/ubuntu/lustre-release'


 Comments   
Comment by Dongyang Li [ 12/Nov/21 ]

I've made a patch, and this depends on LU-15083, as the new kernel 5.4.0-90-generic would also have that problem.

Comment by Gerrit Updater [ 12/Nov/21 ]

"Li Dongyang <dongyangli@ddn.com>" uploaded a new patch: https://review.whamcloud.com/45547
Subject: LU-15208 ldiskfs: add add support for Ubuntu20 kernel 5.4.0.90
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 45f9d343fad847040eecbef7338e13c271e5a0bb

Comment by Jian Yu [ 12/Nov/21 ]

Thank you, Dongyang.

Comment by Gerrit Updater [ 13/Dec/21 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/45547/
Subject: LU-15208 ldiskfs: add support for Ubuntu20 kernel 5.4.0.90
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: dacdcb037f6385fd8156614f5a689ee695553353

Comment by Peter Jones [ 13/Dec/21 ]

Landed for 2.15

Generated at Sat Feb 10 03:16:22 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.