Details
-
Bug
-
Resolution: Fixed
-
Minor
-
Lustre 2.14.0
-
None
-
3
-
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'