[LU-13839] support for RHEL 8.3 Created: 31/Jul/20  Updated: 28/Jan/21  Resolved: 09/Dec/20

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

Type: Improvement Priority: Minor
Reporter: Jian Yu Assignee: Jian Yu
Resolution: Fixed Votes: 1
Labels: llnl

Issue Links:
Blocker
is blocked by LU-14116 gss: undefined reference to 'krb5int_... Resolved
Related
is related to LU-14170 Update ZFS version to 2.0.0 Resolved
is related to LU-14225 kernel update [RHEL8.3 4.18.0-240.8.1... Resolved
Rank (Obsolete): 9223372036854775807

 Description   

Red Hat Enterprise Linux 8.3 Beta, Now Available:
https://access.redhat.com/announcements/5251161
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8-beta/html/8.3_release_notes/index



 Comments   
Comment by Jian Yu [ 04/Nov/20 ]

Kernel version: 4.18.0-240.1.1.el8_3
https://access.redhat.com/errata/product/479/ver=/rhel---8/x86_64/RHSA-2020:4685

Comment by Olaf Faaland [ 04/Nov/20 ]

RHEL 8.3 was released

https://access.redhat.com/announcements/5532381

https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/8.3_release_notes/index

Comment by Gerrit Updater [ 04/Nov/20 ]

Jian Yu (yujian@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/40536
Subject: LU-13839 kernel: new kernel [RHEL 8.3 4.18.0-240.1.1.el8_3]
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 8fcda78d755e776e2504aa8e05878126bb705ff6

Comment by Jian Yu [ 05/Nov/20 ]

Build is blocked by LU-14116.

Comment by Gerrit Updater [ 06/Nov/20 ]

Jian Yu (yujian@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/40558
Subject: LU-13839 kernel: new kernel [RHEL 8.3 4.18.0-240.1.1.el8_3]
Project: fs/lustre-release
Branch: b2_12
Current Patch Set: 1
Commit: 49b46764b55e18a111165e2a540df7f3c906a552

Comment by Jian Yu [ 07/Nov/20 ]

Patches https://review.whamcloud.com/40554 and https://review.whamcloud.com/40536 for master branch are ready.

Comment by Jian Yu [ 07/Nov/20 ]

Red Hat has been made aware of an issue on systems upgrading to RHEL 8.3 with fapolicyd and fips. Reference this solution prior to upgrading to RHEL 8.3:
https://access.redhat.com/solutions/5542661
The following bug is opened for the issue with no fix available at this time - https://bugzilla.redhat.com/show_bug.cgi?id=1895467

Workaround:
1. Stop fapolicyd prior to upgrading
or
2. Stick to 8.2 release for now

Comment by Jian Yu [ 12/Nov/20 ]

https://access.redhat.com/solutions/5542661 has the solution for the above issue.

Comment by Gerrit Updater [ 13/Nov/20 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/40558/
Subject: LU-13839 kernel: new kernel [RHEL 8.3 4.18.0-240.1.1.el8_3]
Project: fs/lustre-release
Branch: b2_12
Current Patch Set:
Commit: 2f68878ab385c967af8a32ba4df73939f53e35c2

Comment by Gerrit Updater [ 13/Nov/20 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/40536/
Subject: LU-13839 kernel: new kernel [RHEL 8.3 4.18.0-240.1.1.el8_3]
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 4ef8b4ddc26e5c6398feca742b4db00f82b0f384

Comment by Gerrit Updater [ 21/Nov/20 ]

Jian Yu (yujian@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/40729
Subject: LU-13839 kernel: RHEL 8.3 server support
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 958aac6c9f7a8e3c7f021134a31228a92ccf683d

Comment by Jian Yu [ 30/Nov/20 ]

RHEL 8.3 server build failed with the following errors:

  CC [M]  /root/root/lustre-release/ldiskfs/dir.o
In file included from include/linux/rh_kabi.h:30,
                 from include/linux/fs.h:5,
                 from /root/root/lustre-release/ldiskfs/dir.c:25:
/root/root/lustre-release/ldiskfs/dir.c: In function ‘__ldiskfs_check_dir_entry’:
/root/root/lustre-release/ldiskfs/ldiskfs.h:2099:61: error: invalid type argument of ‘->’ (have ‘int’)
 #define LDISKFS_DIR_REC_LEN(de)  (__LDISKFS_DIR_REC_LEN((de)->name_len +\
                                                             ^~
include/linux/compiler.h:77:42: note: in definition of macro ‘unlikely’
 # define unlikely(x) __builtin_expect(!!(x), 0)
                                          ^
/root/root/lustre-release/ldiskfs/ldiskfs.h:2099:35: note: in expansion of macro ‘__LDISKFS_DIR_REC_LEN’
 #define LDISKFS_DIR_REC_LEN(de)  (__LDISKFS_DIR_REC_LEN((de)->name_len +\
                                   ^~~~~~~~~~~~~~~~~~~~~
/root/root/lustre-release/ldiskfs/dir.c:81:41: note: in expansion of macro ‘LDISKFS_DIR_REC_LEN’
  else if (unlikely(next_offset > size - LDISKFS_DIR_REC_LEN(1) &&
                                         ^~~~~~~~~~~~~~~~~~~
/root/root/lustre-release/ldiskfs/dir.c:81:61: error: passing argument 1 of ‘ldiskfs_get_dirent_data_len’ makes pointer from integer without a cast [-Werror=int-conversion]
  else if (unlikely(next_offset > size - LDISKFS_DIR_REC_LEN(1) &&
                                                             ^
include/linux/compiler.h:77:42: note: in definition of macro ‘unlikely’
 # define unlikely(x) __builtin_expect(!!(x), 0)
                                          ^
/root/root/lustre-release/ldiskfs/ldiskfs.h:2099:35: note: in expansion of macro ‘__LDISKFS_DIR_REC_LEN’
 #define LDISKFS_DIR_REC_LEN(de)  (__LDISKFS_DIR_REC_LEN((de)->name_len +\
                                   ^~~~~~~~~~~~~~~~~~~~~
/root/root/lustre-release/ldiskfs/dir.c:81:41: note: in expansion of macro ‘LDISKFS_DIR_REC_LEN’
  else if (unlikely(next_offset > size - LDISKFS_DIR_REC_LEN(1) &&
                                         ^~~~~~~~~~~~~~~~~~~
In file included from /root/root/lustre-release/ldiskfs/dir.c:29:
/root/root/lustre-release/ldiskfs/ldiskfs.h:3531:75: note: expected ‘struct ldiskfs_dir_entry_2 *’ but argument is of type ‘int’
 static inline int ldiskfs_get_dirent_data_len(struct ldiskfs_dir_entry_2 *de)
                                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
cc1: all warnings being treated as errors
make[5]: *** [scripts/Makefile.build:315: /root/root/lustre-release/ldiskfs/dir.o] Error 1
make[5]: *** Waiting for unfinished jobs....
/root/root/lustre-release/lustre/osd-ldiskfs/osd_io.c: In function ‘osd_extend_restart_trans’:
/root/root/lustre-release/lustre/osd-ldiskfs/osd_io.c:1978:6: error: implicit declaration of function ‘ldiskfs_handle_has_enough_credits’; did you mean ‘ldiskfs_datasem_ensure_credits’? [-Werror=implicit-function-declaration]
  if (ldiskfs_handle_has_enough_credits(handle, needed))
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      ldiskfs_datasem_ensure_credits
/root/root/lustre-release/lustre/osd-ldiskfs/osd_io.c:1981:7: error: too few arguments to function ‘ldiskfs_journal_extend’
  rc = ldiskfs_journal_extend(handle, needed - handle->h_buffer_credits);
       ^~~~~~~~~~~~~~~~~~~~~~
In file included from /root/root/lustre-release/lustre/osd-ldiskfs/osd_internal.h:54,
                 from /root/root/lustre-release/lustre/osd-ldiskfs/osd_io.c:56:
/root/root/lustre-release/ldiskfs/ldiskfs_jbd2.h:349:19: note: declared here
 static inline int ldiskfs_journal_extend(handle_t *handle, int nblocks, int revoke)
                   ^~~~~~~~~~~~~~~~~~~~~~
/root/root/lustre-release/lustre/osd-ldiskfs/osd_io.c:1985:7: error: too few arguments to function ‘ldiskfs_journal_restart’
  rc = ldiskfs_journal_restart(handle, needed);
       ^~~~~~~~~~~~~~~~~~~~~~~
In file included from /root/root/lustre-release/lustre/osd-ldiskfs/osd_internal.h:54,
                 from /root/root/lustre-release/lustre/osd-ldiskfs/osd_io.c:56:
/root/root/lustre-release/ldiskfs/ldiskfs_jbd2.h:356:19: note: declared here
 static inline int ldiskfs_journal_restart(handle_t *handle, int nblocks,
                   ^~~~~~~~~~~~~~~~~~~~~~~
  CC [M]  /root/root/lustre-release/lustre/osp/osp_sync.o
cc1: all warnings being treated as errors
make[6]: *** [scripts/Makefile.build:315: /root/root/lustre-release/lustre/osd-ldiskfs/osd_io.o] Error 1
make[6]: *** Waiting for unfinished jobs....
Comment by Jian Yu [ 30/Nov/20 ]

The LDISKFS_DIR_REC_LEN issue was resolved in linux-5.4/ext4-data-in-dirent.patch.

Comment by Jian Yu [ 30/Nov/20 ]

In RHEL 8.3 kernel 4.18.0-240.1.1.el8_3:

  • ext4_handle_has_enough_credits() was replaced with jbd2_handle_buffer_credits()
  • an extra "int revoke" argument was added to ext4_journal_extend() and ext4_journal_restart()

All of the above conflicts are included in osd_extend_restart_trans(), which can be implemented with ext4_journal_ensure_credits() in the new kernel.

The server support patch has been updated.

Comment by Gerrit Updater [ 07/Dec/20 ]

James Nunez (jnunez@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/40884
Subject: LU-13839 test: run review test groups
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 61958a097f340b51dc8f963b9429858dbdb610df

Comment by Gerrit Updater [ 09/Dec/20 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/40729/
Subject: LU-13839 kernel: RHEL 8.3 server support
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: cf48a2d23bca685e1076e45370c5d3763c9a9952

Comment by Peter Jones [ 09/Dec/20 ]

Server and client support on 2.14 and client support on 2.12.6

Comment by Andreas Dilger [ 11/Dec/20 ]

Mr NeilBrown (neilb@suse.de) uploaded a new patch: https://review.whamcloud.com/40939
Subject: LU-13839 ldiskfs: fix detecting ext4_journal_ensure_credits
Project: fs/lustre-release
Branch: master
Current Patch Set: 3
Commit: a25b7b26c3e722011686e762b80df64bd1d24749

Comment by Gerrit Updater [ 17/Dec/20 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/40939/
Subject: LU-13839 ldiskfs: fix detecting ext4_journal_ensure_credits
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 2cebaa2bc5cd0554ae2b0b625cf9b6da0b1a16c6

Comment by Gerrit Updater [ 28/Jan/21 ]

James Nunez (jnunez@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/41344
Subject: LU-13839 tests: run DNE/ZFS testing with RHEL7.9
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 59e0a3f229d44fdcaf885cefc3dc854a896a537e

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