File tree Expand file tree Collapse file tree 5 files changed +19
-26
lines changed
cookbooks/aws-parallelcluster-environment/resources Expand file tree Collapse file tree 5 files changed +19
-26
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,9 @@ This file is used to list changes made in each version of the AWS ParallelCluste
9
9
** ENHANCEMENTS**
10
10
- Allow custom actions on Login Nodes.
11
11
12
+ ** BUG FIXES**
13
+ - Fix EFA kmod installation with RHEL 8.10 or newer.
14
+
12
15
3.10.1
13
16
------
14
17
Original file line number Diff line number Diff line change 22
22
23
23
action_class do
24
24
def efa_supported?
25
- require 'rubygems'
26
- minver = Gem ::Version . new ( "8.4" )
27
- ourver = Gem ::Version . new ( node [ 'platform_version' ] )
28
-
29
- if ourver < minver
25
+ if Gem ::Version . new ( node [ 'platform_version' ] ) < Gem ::Version . new ( "8.4" )
30
26
log "EFA is not supported in this RHEL version #{ node [ 'platform_version' ] } , supported versions are >= 8.4" do
31
27
level :warn
32
28
end
Original file line number Diff line number Diff line change 22
22
23
23
action_class do
24
24
def efa_supported?
25
- if node [ 'platform_version' ] . to_f < 8.4
25
+ if Gem :: Version . new ( node [ 'platform_version' ] ) < Gem :: Version . new ( " 8.4" )
26
26
log "EFA is not supported in this Rocky Linux version #{ node [ 'platform_version' ] } , supported versions are >= 8.4" do
27
27
level :warn
28
28
end
Original file line number Diff line number Diff line change 26
26
action :setup do
27
27
version = node [ 'platform_version' ]
28
28
log "Installing FSx for Lustre. Platform version: #{ version } , kernel version: #{ node [ 'cluster' ] [ 'kernel_release' ] } "
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
29
+ current_version = Gem ::Version . new ( version )
30
+ if current_version < Gem ::Version . new ( "8.2" )
31
+ raise "FSx for Lustre is not supported in this RHEL version #{ version } , supported versions are >= 8.2"
32
+ elsif current_version == Gem ::Version . new ( "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"
39
36
else
40
37
action_install_lustre
41
38
end
Original file line number Diff line number Diff line change 26
26
action :setup do
27
27
version = node [ 'platform_version' ]
28
28
log "Installing FSx for Lustre. Platform version: #{ version } , kernel version: #{ node [ 'cluster' ] [ 'kernel_release' ] } "
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
29
+ current_version = Gem ::Version . new ( version )
30
+ if current_version < Gem ::Version . new ( "8.2" )
31
+ raise "FSx for Lustre is not supported in this Rocky Linux version #{ version } , supported versions are >= 8.2"
32
+ elsif current_version == Gem ::Version . new ( "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"
39
36
else
40
37
action_install_lustre
41
38
end
You can’t perform that action at this time.
0 commit comments