Skip to content

Commit e86ce64

Browse files
author
Himani Anil Deshpande
committed
Revert "Update the efs-utils to use a different Cargo.toml"
This reverts commit 3eca621.
1 parent 47d9a1c commit e86ce64

File tree

8 files changed

+12
-85
lines changed

8 files changed

+12
-85
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ This file is used to list changes made in each version of the AWS ParallelCluste
99
**CHANGES**
1010
- Upgrade Slurm to version 24.05.8.
1111

12+
**BUG FIXES**
13+
- Use `v2.1.0-patched.tar.gz` which pins backtrace version to v3.0.74
14+
1215
**BUG FIXES**
1316
- Fix a bug in the installation of ARM Performance Library that was causing the build image fail in isolated environments
1417
due to cookbook retrieving GCC dependencies from GCC website rather than ParallelCluster bucket.

cookbooks/aws-parallelcluster-environment/files/efs/Cargo.toml

Lines changed: 0 additions & 40 deletions
This file was deleted.

cookbooks/aws-parallelcluster-environment/resources/efs/partial/_common.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
default_action :install_utils
44

55
property :efs_utils_version, String, default: '2.1.0'
6-
property :efs_utils_checksum, String, default: '2996bdd5387131d302310812fa1e07e1be00f80814a580f5dfeb27d68519fd24'
6+
property :efs_utils_checksum, String, default: 'f257a9859059710bcd8a4a870de2a8f11574b2615feeb7989b764820a9f0c887'
77

88
def already_installed?(package_name, expected_version)
99
Gem::Version.new(get_package_version(package_name)) >= Gem::Version.new(expected_version)

cookbooks/aws-parallelcluster-environment/resources/efs/partial/_debian.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@
1313
# This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied.
1414
# See the License for the specific language governing permissions and limitations under the License.
1515

16-
def install_script_code(_efs_utils_tarball, efs_utils_package, efs_utils_version)
16+
def install_script_code(efs_utils_tarball, efs_utils_package, efs_utils_version)
1717
<<-EFSUTILSINSTALL
1818
set -e
19+
tar xf #{efs_utils_tarball}
1920
cd efs-utils-#{efs_utils_version}
2021
./build-deb.sh
2122
apt-get -y install ./build/#{efs_utils_package}*deb

cookbooks/aws-parallelcluster-environment/resources/efs/partial/_install_from_tar.rb

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
package_name = "amazon-efs-utils"
3333
package_version = new_resource.efs_utils_version
3434
efs_utils_tarball = "#{node['cluster']['sources_dir']}/efs-utils-#{package_version}.tar.gz"
35-
efs_utils_url = "#{node['cluster']['artifacts_s3_url']}/dependencies/efs/v#{package_version}.tar.gz"
35+
efs_utils_url = "#{node['cluster']['artifacts_s3_url']}/dependencies/efs/v#{package_version}-patched.tar.gz"
3636

3737
# Do not install efs-utils if a same or newer version is already installed.
3838
return if already_installed?(package_name, package_version)
@@ -50,22 +50,6 @@
5050
action :create_if_missing
5151
end
5252

53-
bash "Untar the efs-utils" do
54-
cwd node['cluster']['sources_dir']
55-
code <<-EFSUTILSUNTAR
56-
set -e
57-
tar xf #{efs_utils_tarball}
58-
EFSUTILSUNTAR
59-
end
60-
61-
cookbook_file "#{node['cluster']['sources_dir']}/efs-utils-#{package_version}/src/proxy/Cargo.toml" do
62-
source 'efs/Cargo.toml'
63-
owner 'root'
64-
group 'root'
65-
mode '0755'
66-
action :create
67-
end
68-
6953
# Install EFS Utils following https://docs.aws.amazon.com/efs/latest/ug/installing-amazon-efs-utils.html
7054
bash "install efs utils" do
7155
cwd node['cluster']['sources_dir']

cookbooks/aws-parallelcluster-environment/resources/efs/partial/_redhat_based.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@
1313
# This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied.
1414
# See the License for the specific language governing permissions and limitations under the License.
1515

16-
def install_script_code(_efs_utils_tarball, efs_utils_package, efs_utils_version)
16+
def install_script_code(efs_utils_tarball, efs_utils_package, efs_utils_version)
1717
<<-EFSUTILSINSTALL
1818
set -e
19+
tar xf #{efs_utils_tarball}
1920
cd efs-utils-#{efs_utils_version}
2021
make rpm
2122
yum -y install ./build/#{efs_utils_package}*rpm

cookbooks/aws-parallelcluster-environment/spec/unit/resources/efs_spec.rb

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -88,15 +88,10 @@ def mock_already_installed(package, expected_version, installed)
8888
cached(:tarball_path) { "#{source_dir}/efs-utils-#{utils_version}.tar.gz" }
8989
cached(:tarball_url) { "https://#{aws_region}-aws-parallelcluster.s3.#{aws_region}.test_aws_domain/archives/dependencies/efs/v#{utils_version}.tar.gz" }
9090
cached(:tarball_checksum) { 'TARBALL CHECKSUM' }
91-
cached(:bash_untar_code) do
92-
<<-EFSUTILSUNTAR
93-
set -e
94-
tar xf #{tarball_path}
95-
EFSUTILSUNTAR
96-
end
9791
cached(:bash_code) do
9892
<<-EFSUTILSINSTALL
9993
set -e
94+
tar xf #{tarball_path}
10095
cd efs-utils-#{utils_version}
10196
./build-deb.sh
10297
apt-get -y install ./build/amazon-efs-utils*deb
@@ -132,12 +127,6 @@ def mock_already_installed(package, expected_version, installed)
132127
.with(checksum: tarball_checksum)
133128
end
134129

135-
it 'it untars the downloaded tarball' do
136-
is_expected.to run_bash('Untar the efs-utils')
137-
.with(cwd: source_dir)
138-
.with(code: bash_untar_code)
139-
end
140-
141130
it 'installs package from downloaded tarball' do
142131
is_expected.to run_bash('install efs utils')
143132
.with(cwd: source_dir)
@@ -179,15 +168,10 @@ def mock_already_installed(package, expected_version, installed)
179168
cached(:tarball_path) { "#{source_dir}/efs-utils-#{utils_version}.tar.gz" }
180169
cached(:tarball_url) { "https://#{aws_region}-aws-parallelcluster.s3.#{aws_region}.test_aws_domain/archives/dependencies/efs/v#{utils_version}.tar.gz" }
181170
cached(:tarball_checksum) { 'TARBALL CHECKSUM' }
182-
cached(:bash_untar_code) do
183-
<<-EFSUTILSUNTAR
184-
set -e
185-
tar xf #{tarball_path}
186-
EFSUTILSUNTAR
187-
end
188171
cached(:bash_code) do
189172
<<-EFSUTILSINSTALL
190173
set -e
174+
tar xf #{tarball_path}
191175
cd efs-utils-#{utils_version}
192176
make rpm
193177
yum -y install ./build/amazon-efs-utils*rpm
@@ -234,12 +218,6 @@ def mock_already_installed(package, expected_version, installed)
234218
.with(checksum: tarball_checksum)
235219
end
236220

237-
it 'it untars the downloaded tarball' do
238-
is_expected.to run_bash('Untar the efs-utils')
239-
.with(cwd: source_dir)
240-
.with(code: bash_untar_code)
241-
end
242-
243221
it 'installs package from downloaded tarball' do
244222
is_expected.to run_bash('install efs utils')
245223
.with(cwd: source_dir)

cookbooks/aws-parallelcluster-environment/test/controls/efs_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
describe file("#{node['cluster']['sources_dir']}/efs-utils-2.1.0.tar.gz") do
88
it { should exist }
9-
its('sha256sum') { should eq '2996bdd5387131d302310812fa1e07e1be00f80814a580f5dfeb27d68519fd24' }
9+
its('sha256sum') { should eq 'f257a9859059710bcd8a4a870de2a8f11574b2615feeb7989b764820a9f0c887' }
1010
its('owner') { should eq 'root' }
1111
its('group') { should eq 'root' }
1212
its('mode') { should cmp '0644' }

0 commit comments

Comments
 (0)