Skip to content

Commit 581c14b

Browse files
hanwen-clusterhanwen-pcluste
authored andcommitted
Fix image build failure with RHEL 8.10 or newer
Signed-off-by: Hanwen <[email protected]>
1 parent 491f7a5 commit 581c14b

File tree

4 files changed

+25
-20
lines changed

4 files changed

+25
-20
lines changed

CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,14 @@ This file is used to list changes made in each version of the AWS ParallelCluste
3131
- Upgrade Intel MPI Library to 2021.12.1.8 (from 2021.9.0.43482).
3232

3333
**BUG FIXES**
34-
- Fixed an issue that prevented cluster updates from including EFS filesystems with encryption in transit.
35-
- Fixed an issue that prevented slurmctld and slurmdbd services from restarting on head node reboot when
34+
- Fix an issue that prevented cluster updates from including EFS filesystems with encryption in transit.
35+
- Fix an issue that prevented slurmctld and slurmdbd services from restarting on head node reboot when
3636
EFS is used for shared internal data.
3737
- On Ubuntu systems, remove default logrotate configuration for cloud-init log files that clashed with the
3838
configuration coming from Parallelcluster.
3939
- Removing `/etc/profile.d/pcluster.sh` so that it's not executed at every user login and
4040
`cfn_bootstrap_virtualenv` is not added in PATH environment variable.
41+
- Fix image build failure with RHEL 8.10 or newer.
4142

4243
3.9.3
4344
------

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

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,16 @@
2626
action :setup do
2727
version = node['platform_version']
2828
log "Installing FSx for Lustre. Platform version: #{version}, kernel version: #{node['cluster']['kernel_release']}"
29-
if version.to_f < 8.2
30-
raise "FSx for Lustre is not supported in this RHEL version #{version}, supported versions are >= 8.2"
31-
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"))
32-
# Rhel8.7 kernel 4.18.0-425.3.1.el8 and 4.18.0-425.13.1.el8_7 has broken kABI compat
33-
# See https://access.redhat.com/solutions/6985596 and https://github.com/openzfs/zfs/issues/14724
34-
raise "FSx for Lustre is not supported in kernel version #{node['cluster']['kernel_release']} of RHEL #{version}, please update the kernel version"
35-
else
36-
action_install_lustre
29+
if version.length == 3 # If version is 8.10 or more, this block is skipped
30+
if version.to_f < 8.2
31+
raise "FSx for Lustre is not supported in this RHEL version #{version}, supported versions are >= 8.2"
32+
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"))
33+
# Rhel8.7 kernel 4.18.0-425.3.1.el8 and 4.18.0-425.13.1.el8_7 has broken kABI compat
34+
# See https://access.redhat.com/solutions/6985596 and https://github.com/openzfs/zfs/issues/14724
35+
raise "FSx for Lustre is not supported in kernel version #{node['cluster']['kernel_release']} of RHEL #{version}, please update the kernel version"
36+
else
37+
action_install_lustre
38+
end
3739
end
3840
end
3941

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

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,16 @@
2626
action :setup do
2727
version = node['platform_version']
2828
log "Installing FSx for Lustre. Platform version: #{version}, kernel version: #{node['cluster']['kernel_release']}"
29-
if version.to_f < 8.2
30-
raise "FSx for Lustre is not supported in this Rocky Linux version #{version}, supported versions are >= 8.2"
31-
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"))
32-
# Rhel8.7 kernel 4.18.0-425.3.1.el8 and 4.18.0-425.13.1.el8_7 has broken kABI compat
33-
# See https://access.redhat.com/solutions/6985596 and https://github.com/openzfs/zfs/issues/14724
34-
raise "FSx for Lustre is not supported in kernel version #{node['cluster']['kernel_release']} of Rocky Linux #{version}, please update the kernel version"
35-
else
36-
action_install_lustre
29+
if version.length == 3 # If version is 8.10 or more, this block is skipped
30+
if version.to_f < 8.2
31+
raise "FSx for Lustre is not supported in this Rocky Linux version #{version}, supported versions are >= 8.2"
32+
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"))
33+
# Rhel8.7 kernel 4.18.0-425.3.1.el8 and 4.18.0-425.13.1.el8_7 has broken kABI compat
34+
# See https://access.redhat.com/solutions/6985596 and https://github.com/openzfs/zfs/issues/14724
35+
raise "FSx for Lustre is not supported in kernel version #{node['cluster']['kernel_release']} of Rocky Linux #{version}, please update the kernel version"
36+
else
37+
action_install_lustre
38+
end
3739
end
3840
end
3941

kitchen.docker.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ platforms:
7070
kernel_release: '5.15.0-1028-aws'
7171
- name: rhel8
7272
driver:
73-
image: <% if ENV['KITCHEN_RHEL8_IMAGE'] %> <%= ENV['KITCHEN_RHEL8_IMAGE'] %> <% else %> registry.access.redhat.com/ubi8/ubi:8.9 <% end %>
73+
image: <% if ENV['KITCHEN_RHEL8_IMAGE'] %> <%= ENV['KITCHEN_RHEL8_IMAGE'] %> <% else %> registry.access.redhat.com/ubi8/ubi <% end %>
7474
intermediate_instructions:
7575
- RUN chmod +t /tmp
7676
attributes:
@@ -81,7 +81,7 @@ platforms:
8181
kernel_release: '4.18.0-477.13.1.el8_7.fake-value' # Use 477 version to match 8.8 kernel version available on docker
8282
- name: rocky8
8383
driver:
84-
image: <% if ENV['KITCHEN_ROCKY8_IMAGE'] %> <%= ENV['KITCHEN_ROCKY8_IMAGE'] %> <% else %> dokken/rockylinux-8:sha-f885abd <% end %>
84+
image: <% if ENV['KITCHEN_ROCKY8_IMAGE'] %> <%= ENV['KITCHEN_ROCKY8_IMAGE'] %> <% else %> dokken/rockylinux-8 <% end %>
8585
attributes:
8686
cluster:
8787
base_os: rocky8

0 commit comments

Comments
 (0)