Skip to content

Commit

Permalink
efa-installer: remove archive in 2023 files
Browse files Browse the repository at this point in the history
Problem: the node consistently runs out of disk space when
adding efa, resulting in an unusable cluster with scattered
nodes where the installer failed.
Solution: the installer archive itself is huge, and we can
simply remove it and avoid this error.

Signed-off-by: vsoch <[email protected]>
  • Loading branch information
vsoch committed Aug 21, 2024
1 parent f3772a8 commit a47a32a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/nodebootstrap/assets/scripts/efa.al2023.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ set -o nounset
dnf install -y wget
wget -q --timeout=20 https://s3-us-west-2.amazonaws.com/aws-efa-installer/aws-efa-installer-latest.tar.gz -O /tmp/aws-efa-installer.tar.gz
tar -xf /tmp/aws-efa-installer.tar.gz -C /tmp
rm -rf /tmp/aws-efa-installer.tar.gz
cd /tmp/aws-efa-installer
./efa_installer.sh -y -g
/opt/amazon/efa/bin/fi_info -p efa
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ cloud-init-per once dnf_wget dnf install -y wget
cloud-init-per once wget_efa wget -q --timeout=20 https://s3-us-west-2.amazonaws.com/aws-efa-installer/aws-efa-installer-latest.tar.gz -O /tmp/aws-efa-installer-latest.tar.gz

cloud-init-per once tar_efa tar -xf /tmp/aws-efa-installer-latest.tar.gz -C /tmp
cloud-init-per once rm_efa_gz rm -rf /tmp/aws-efa-installer-latest.tar.gz
pushd /tmp/aws-efa-installer
cloud-init-per once install_efa ./efa_installer.sh -y -g
pop /tmp/aws-efa-installer
Expand Down
2 changes: 2 additions & 0 deletions pkg/nodebootstrap/managed_al2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ cloud-init-per once yum_wget yum install -y wget
cloud-init-per once wget_efa wget -q --timeout=20 https://s3-us-west-2.amazonaws.com/aws-efa-installer/aws-efa-installer-latest.tar.gz -O /tmp/aws-efa-installer-latest.tar.gz
cloud-init-per once tar_efa tar -xf /tmp/aws-efa-installer-latest.tar.gz -C /tmp
cloud-init-per once rm_efa_gz rm -rf /tmp/aws-efa-installer-latest.tar.gz
pushd /tmp/aws-efa-installer
cloud-init-per once install_efa ./efa_installer.sh -y -g
pop /tmp/aws-efa-installer
Expand Down Expand Up @@ -143,6 +144,7 @@ cloud-init-per once yum_wget yum install -y wget
cloud-init-per once wget_efa wget -q --timeout=20 https://s3-us-west-2.amazonaws.com/aws-efa-installer/aws-efa-installer-latest.tar.gz -O /tmp/aws-efa-installer-latest.tar.gz
cloud-init-per once tar_efa tar -xf /tmp/aws-efa-installer-latest.tar.gz -C /tmp
cloud-init-per once rm_efa_gz rm -rf /tmp/aws-efa-installer-latest.tar.gz
pushd /tmp/aws-efa-installer
cloud-init-per once install_efa ./efa_installer.sh -y -g
pop /tmp/aws-efa-installer
Expand Down

0 comments on commit a47a32a

Please sign in to comment.