Skip to content

Commit

Permalink
Upgrade Lustre client version for ALinux 2 and CentOS 7.6
Browse files Browse the repository at this point in the history
Signed-off-by: Hanwen <[email protected]>
  • Loading branch information
hanwen-cluster committed Mar 1, 2023
1 parent f846564 commit a279353
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ This file is used to list changes made in each version of the AWS ParallelCluste
- Add log rotation support for ParallelCluster managed logs.

**CHANGES**
- ...
- 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

3.5.0
------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@
default_action :setup

action :setup do
alinux_extras_topic 'lustre2.10'
alinux_extras_topic 'lustre'
end
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@
use 'partial/_mount_unmount'

lustre_version_hash = {
'7.6' => "2.10.6",
'7.6' => "2.10.8",
'7.5' => "2.10.5",
}

client_url_hash = {
'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",
'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",
'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",
}

kmod_url_hash = {
'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",
'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",
'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",
}

Expand Down
15 changes: 13 additions & 2 deletions test/resources/controls/aws_parallelcluster_install/lustre_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
control 'lustre_client_installed' do
title "Verify that lustre client is installed"

minimal_lustre_client_version = '2.12'
if (os_properties.centos? && inspec.os.release.to_f >= 7.5) || os_properties.redhat?
describe package('kmod-lustre-client') do
it { should be_installed }
Expand All @@ -11,6 +11,14 @@
end

if (os_properties.centos? && inspec.os.release.to_f >= 7.7) || os_properties.redhat?
describe package('kmod-lustre-client') do
its('version') { should cmp >= minimal_lustre_client_version }
end

describe package('lustre-client') do
its('version') { should cmp >= minimal_lustre_client_version }
end

describe yum.repo('aws-fsx') do
it { should exist }
it { should be_enabled }
Expand All @@ -27,20 +35,23 @@

describe package('lustre-client-modules-aws') do
it { should be_installed }
its('version') { should cmp >= minimal_lustre_client_version }
end

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

if os_properties.alinux2?
describe package('lustre-client') do
it { should be_installed }
its('version') { should cmp >= minimal_lustre_client_version }
end

describe yum.repo('amzn2extra-lustre2.10') do
describe yum.repo('amzn2extra-lustre') do
it { should exist }
it { should be_enabled }
end
Expand Down

0 comments on commit a279353

Please sign in to comment.