Skip to content

Commit 43b2a96

Browse files
Fix Lustre not installed on RHEL 8.10
This commit fixes a bug introduced by aws#2764 Signed-off-by: Hanwen <[email protected]>
1 parent 581c14b commit 43b2a96

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
version = node['platform_version']
2828
log "Installing FSx for Lustre. Platform version: #{version}, kernel version: #{node['cluster']['kernel_release']}"
2929
if version.length == 3 # If version is 8.10 or more, this block is skipped
30-
if version.to_f < 8.2
30+
if version.to_f < 8.2 && version.length == 3 # If version is 8.10 or more, this block is skipped
3131
raise "FSx for Lustre is not supported in this RHEL version #{version}, supported versions are >= 8.2"
3232
elsif version.to_f == 8.7 && (node['cluster']['kernel_release'].include?("4.18.0-425.3.1.el8") || node['cluster']['kernel_release'].include?("4.18.0-425.13.1.el8_7"))
3333
# Rhel8.7 kernel 4.18.0-425.3.1.el8 and 4.18.0-425.13.1.el8_7 has broken kABI compat
@@ -36,6 +36,8 @@
3636
else
3737
action_install_lustre
3838
end
39+
else
40+
action_install_lustre
3941
end
4042
end
4143

cookbooks/aws-parallelcluster-environment/resources/lustre/lustre_rocky8.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@
3636
else
3737
action_install_lustre
3838
end
39+
else
40+
action_install_lustre
3941
end
4042
end
4143

0 commit comments

Comments
 (0)