Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
**BUG FIXES**
- Fix a bug in the installation of ARM Performance Library that was causing the build image fail in isolated environments
due to cookbook retrieving GCC dependencies from GCC website rather than ParallelCluster bucket.
- Use patched version of efs-utils v2.1.0 which pins backtrace version to v3.0.74 to resolve build image failure.
- Upgrade amazon-efs-utils to version 2.3.1 (from v2.1.0) for non-Amazon Linux AMI's.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is the changelog item in bug fixes?


3.13.0
------
Expand Down
40 changes: 0 additions & 40 deletions cookbooks/aws-parallelcluster-environment/files/efs/Cargo.toml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
use 'partial/_common'
use 'partial/_mount_umount'

property :efs_utils_version, String, default: '2.1.0'

action :install_utils do
package_name = "amazon-efs-utils"
full_package = "#{package_name}-#{new_resource.efs_utils_version}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
use 'partial/_common'
use 'partial/_mount_umount'

property :efs_utils_version, String, default: '2.1.0'

action :install_utils do
package_name = "amazon-efs-utils-#{new_resource.efs_utils_version}"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

default_action :install_utils

property :efs_utils_version, String, default: '2.1.0'
property :efs_utils_checksum, String, default: '2996bdd5387131d302310812fa1e07e1be00f80814a580f5dfeb27d68519fd24'
property :efs_utils_version, String, default: '2.3.1'
property :efs_utils_checksum, String, default: 'ced12f82e76f9740476b63f30c49bd76cc00b6375e12a9f5f7ba852635c49e15'

def already_installed?(package_name, expected_version)
Gem::Version.new(get_package_version(package_name)) >= Gem::Version.new(expected_version)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@
# This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied.
# See the License for the specific language governing permissions and limitations under the License.

def install_script_code(_efs_utils_tarball, efs_utils_package, efs_utils_version)
def install_script_code(efs_utils_tarball, efs_utils_package, efs_utils_version)
<<-EFSUTILSINSTALL
set -e
tar xf #{efs_utils_tarball}
cd efs-utils-#{efs_utils_version}
./build-deb.sh
apt-get -y install ./build/#{efs_utils_package}*deb
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,22 +50,6 @@
action :create_if_missing
end

bash "Untar the efs-utils" do
cwd node['cluster']['sources_dir']
code <<-EFSUTILSUNTAR
set -e
tar xf #{efs_utils_tarball}
EFSUTILSUNTAR
end

cookbook_file "#{node['cluster']['sources_dir']}/efs-utils-#{package_version}/src/proxy/Cargo.toml" do
source 'efs/Cargo.toml'
owner 'root'
group 'root'
mode '0755'
action :create
end

# Install EFS Utils following https://docs.aws.amazon.com/efs/latest/ug/installing-amazon-efs-utils.html
bash "install efs utils" do
cwd node['cluster']['sources_dir']
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@
# This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied.
# See the License for the specific language governing permissions and limitations under the License.

def install_script_code(_efs_utils_tarball, efs_utils_package, efs_utils_version)
def install_script_code(efs_utils_tarball, efs_utils_package, efs_utils_version)
<<-EFSUTILSINSTALL
set -e
tar xf #{efs_utils_tarball}
cd efs-utils-#{efs_utils_version}
make rpm
yum -y install ./build/#{efs_utils_package}*rpm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,10 @@ def mock_already_installed(package, expected_version, installed)
cached(:tarball_path) { "#{source_dir}/efs-utils-#{utils_version}.tar.gz" }
cached(:tarball_url) { "https://#{aws_region}-aws-parallelcluster.s3.#{aws_region}.test_aws_domain/archives/dependencies/efs/v#{utils_version}.tar.gz" }
cached(:tarball_checksum) { 'TARBALL CHECKSUM' }
cached(:bash_untar_code) do
<<-EFSUTILSUNTAR
set -e
tar xf #{tarball_path}
EFSUTILSUNTAR
end
cached(:bash_code) do
<<-EFSUTILSINSTALL
set -e
tar xf #{tarball_path}
cd efs-utils-#{utils_version}
./build-deb.sh
apt-get -y install ./build/amazon-efs-utils*deb
Expand Down Expand Up @@ -132,12 +127,6 @@ def mock_already_installed(package, expected_version, installed)
.with(checksum: tarball_checksum)
end

it 'it untars the downloaded tarball' do
is_expected.to run_bash('Untar the efs-utils')
.with(cwd: source_dir)
.with(code: bash_untar_code)
end

it 'installs package from downloaded tarball' do
is_expected.to run_bash('install efs utils')
.with(cwd: source_dir)
Expand Down Expand Up @@ -179,15 +168,10 @@ def mock_already_installed(package, expected_version, installed)
cached(:tarball_path) { "#{source_dir}/efs-utils-#{utils_version}.tar.gz" }
cached(:tarball_url) { "https://#{aws_region}-aws-parallelcluster.s3.#{aws_region}.test_aws_domain/archives/dependencies/efs/v#{utils_version}.tar.gz" }
cached(:tarball_checksum) { 'TARBALL CHECKSUM' }
cached(:bash_untar_code) do
<<-EFSUTILSUNTAR
set -e
tar xf #{tarball_path}
EFSUTILSUNTAR
end
cached(:bash_code) do
<<-EFSUTILSINSTALL
set -e
tar xf #{tarball_path}
cd efs-utils-#{utils_version}
make rpm
yum -y install ./build/amazon-efs-utils*rpm
Expand Down Expand Up @@ -234,12 +218,6 @@ def mock_already_installed(package, expected_version, installed)
.with(checksum: tarball_checksum)
end

it 'it untars the downloaded tarball' do
is_expected.to run_bash('Untar the efs-utils')
.with(cwd: source_dir)
.with(code: bash_untar_code)
end

it 'installs package from downloaded tarball' do
is_expected.to run_bash('install efs utils')
.with(cwd: source_dir)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

only_if { !os_properties.redhat_on_docker? }

describe file("#{node['cluster']['sources_dir']}/efs-utils-2.1.0.tar.gz") do
describe file("#{node['cluster']['sources_dir']}/efs-utils-2.3.1.tar.gz") do
it { should exist }
its('sha256sum') { should eq '2996bdd5387131d302310812fa1e07e1be00f80814a580f5dfeb27d68519fd24' }
its('sha256sum') { should eq 'ced12f82e76f9740476b63f30c49bd76cc00b6375e12a9f5f7ba852635c49e15' }
its('owner') { should eq 'root' }
its('group') { should eq 'root' }
its('mode') { should cmp '0644' }
Expand Down
Loading