Skip to content

Commit 1dd9fa6

Browse files
Upgrade Lustre client version for ALinux 2 and CentOS 7.6
Upgrade Lustre client version to 2.12 on Amazon Linux 2. Lustre client 2.12 has been installed on Ubuntu 20.04, 18.04 and CentOS >= 7.7. Upgrade Lustre client version to 2.10.8 on CentOS 7.6. Signed-off-by: Hanwen <[email protected]>
1 parent f846564 commit 1dd9fa6

File tree

4 files changed

+18
-7
lines changed

4 files changed

+18
-7
lines changed

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ This file is used to list changes made in each version of the AWS ParallelCluste
1212
- Add log rotation support for ParallelCluster managed logs.
1313

1414
**CHANGES**
15-
- ...
15+
- Upgrade Lustre client version to 2.12 on Amazon Linux 2. Lustre client 2.12 has been installed on Ubuntu 20.04, 18.04 and CentOS >= 7.7. Upgrade Lustre client version to 2.10.8 on CentOS 7.6.
1616

1717
3.5.0
1818
------

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@
2121
default_action :setup
2222

2323
action :setup do
24-
alinux_extras_topic 'lustre2.10'
24+
alinux_extras_topic 'lustre'
2525
end

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,17 @@
2222
use 'partial/_mount_unmount'
2323

2424
lustre_version_hash = {
25-
'7.6' => "2.10.6",
25+
'7.6' => "2.10.8",
2626
'7.5' => "2.10.5",
2727
}
2828

2929
client_url_hash = {
30-
'7.6' => "https://downloads.whamcloud.com/public/lustre/lustre-2.10.6/el7/client/RPMS/x86_64/lustre-client-2.10.6-1.el7.x86_64.rpm",
30+
'7.6' => "https://downloads.whamcloud.com/public/lustre/lustre-2.10.8/el7/client/RPMS/x86_64/lustre-client-2.10.8-1.el7.x86_64.rpm",
3131
'7.5' => "https://downloads.whamcloud.com/public/lustre/lustre-2.10.5/el7.5.1804/client/RPMS/x86_64/lustre-client-2.10.5-1.el7.x86_64.rpm",
3232
}
3333

3434
kmod_url_hash = {
35-
'7.6' => "https://downloads.whamcloud.com/public/lustre/lustre-2.10.6/el7/client/RPMS/x86_64/kmod-lustre-client-2.10.6-1.el7.x86_64.rpm",
35+
'7.6' => "https://downloads.whamcloud.com/public/lustre/lustre-2.10.8/el7/client/RPMS/x86_64/kmod-lustre-client-2.10.8-1.el7.x86_64.rpm",
3636
'7.5' => "https://downloads.whamcloud.com/public/lustre/lustre-2.10.5/el7.5.1804/client/RPMS/x86_64/kmod-lustre-client-2.10.5-1.el7.x86_64.rpm",
3737
}
3838

test/resources/controls/aws_parallelcluster_install/lustre_spec.rb

+13-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
control 'lustre_client_installed' do
22
title "Verify that lustre client is installed"
3-
3+
minimal_lustre_client_version = '2.12'
44
if (os_properties.centos? && inspec.os.release.to_f >= 7.5) || os_properties.redhat?
55
describe package('kmod-lustre-client') do
66
it { should be_installed }
@@ -11,6 +11,14 @@
1111
end
1212

1313
if (os_properties.centos? && inspec.os.release.to_f >= 7.7) || os_properties.redhat?
14+
describe package('kmod-lustre-client') do
15+
its('version') { should cmp >= minimal_lustre_client_version }
16+
end
17+
18+
describe package('lustre-client') do
19+
its('version') { should cmp >= minimal_lustre_client_version }
20+
end
21+
1422
describe yum.repo('aws-fsx') do
1523
it { should exist }
1624
it { should be_enabled }
@@ -27,20 +35,23 @@
2735

2836
describe package('lustre-client-modules-aws') do
2937
it { should be_installed }
38+
its('version') { should cmp >= minimal_lustre_client_version }
3039
end
3140

3241
kernel_release = os_properties.ubuntu2004? ? '5.15.0-1028-aws' : '5.4.0-1092-aws'
3342
describe package("lustre-client-modules-#{kernel_release}") do
3443
it { should be_installed }
44+
its('version') { should cmp >= minimal_lustre_client_version }
3545
end
3646
end
3747

3848
if os_properties.alinux2?
3949
describe package('lustre-client') do
4050
it { should be_installed }
51+
its('version') { should cmp >= minimal_lustre_client_version }
4152
end
4253

43-
describe yum.repo('amzn2extra-lustre2.10') do
54+
describe yum.repo('amzn2extra-lustre') do
4455
it { should exist }
4556
it { should be_enabled }
4657
end

0 commit comments

Comments
 (0)