Skip to content

Commit 66a4740

Browse files
hanwen-clusterhanwen-pcluste
authored andcommitted
Add kernel version for RHEL 8.8
Signed-off-by: Hanwen <hanwenli@amazon.com>
1 parent fae667e commit 66a4740

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

cookbooks/aws-parallelcluster-common/resources/lustre/lustre_redhat8.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,14 @@ def find_os_minor_version
4444
kernel_patch_version = find_kernel_patch_version
4545

4646
# kernel patch versions under 193 are prior to RHEL 8.2
47+
# kernel patch version number can be retrieved from https://access.redhat.com/articles/3078#RHEL8
4748
os_minor_version = '2' if kernel_patch_version >= '193'
4849
os_minor_version = '3' if kernel_patch_version >= '240'
4950
os_minor_version = '4' if kernel_patch_version >= '305'
5051
os_minor_version = '5' if kernel_patch_version >= '348'
5152
os_minor_version = '6' if kernel_patch_version >= '372'
5253
os_minor_version = '7' if kernel_patch_version >= '425'
54+
os_minor_version = '8' if kernel_patch_version >= '477'
5355

5456
os_minor_version
5557
end

cookbooks/aws-parallelcluster-common/spec/unit/resources/lustre_setup_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def self.setup(chef_run)
189189
end
190190
end
191191

192-
[%w(193 2), %w(240 3), %w(305 4), %w(348 5), %w(372 6), %w(425 7)].each do |kernel_patch, minor_version|
192+
[%w(193 2), %w(240 3), %w(305 4), %w(348 5), %w(372 6), %w(425 7), %w(477 8)].each do |kernel_patch, minor_version|
193193
context "on redhat with kernel from 4.18.0-#{kernel_patch}.3.1.el8 supporting lustre" do
194194
cached(:chef_run) do
195195
runner = ChefSpec::Runner.new(

0 commit comments

Comments
 (0)