21552: Download & use newer ebs-autoscale fork version with IMDSv2 enabled.
authorLucas Di Pentima <lucas.dipentima@curii.com>
Wed, 28 Feb 2024 21:19:03 +0000 (18:19 -0300)
committerLucas Di Pentima <lucas.dipentima@curii.com>
Wed, 28 Feb 2024 21:19:03 +0000 (18:19 -0300)
Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas.dipentima@curii.com>

tools/compute-images/scripts/base.sh
tools/compute-images/scripts/usr-local-bin-ensure-encrypted-partitions-aws-ebs-autoscale.sh

index f3607ac677ce76d0c208e8506bf771c2716b666e..3e0d683e98375141100481bb4b76ec5fbeb28c03 100644 (file)
@@ -158,7 +158,7 @@ else
   unzip -q /tmp/awscliv2.zip -d /tmp && $SUDO /tmp/aws/install
   # Pinned to v2.4.5 because we apply a patch below
   #export EBS_AUTOSCALE_VERSION=$(curl --silent "https://api.github.com/repos/awslabs/amazon-ebs-autoscale/releases/latest" | jq -r .tag_name)
   unzip -q /tmp/awscliv2.zip -d /tmp && $SUDO /tmp/aws/install
   # Pinned to v2.4.5 because we apply a patch below
   #export EBS_AUTOSCALE_VERSION=$(curl --silent "https://api.github.com/repos/awslabs/amazon-ebs-autoscale/releases/latest" | jq -r .tag_name)
-  export EBS_AUTOSCALE_VERSION="5ca6e24e05787b8ae1184c2a10db80053ddd3038"
+  export EBS_AUTOSCALE_VERSION="df709eaeeb597b79684b2c4e6d3dd528abdaf89f"
   cd /opt && $SUDO git clone https://github.com/arvados/amazon-ebs-autoscale.git
   cd /opt/amazon-ebs-autoscale && $SUDO git checkout $EBS_AUTOSCALE_VERSION
 
   cd /opt && $SUDO git clone https://github.com/arvados/amazon-ebs-autoscale.git
   cd /opt/amazon-ebs-autoscale && $SUDO git checkout $EBS_AUTOSCALE_VERSION
 
index 6f0970b17f66f4a7943ef2f2f3aa51e6de825fee..d9790fb45ce6e2d334d64b64d72f843e30378f33 100644 (file)
@@ -36,7 +36,7 @@ fi
 
 ensure_umount "$MOUNTPATH/docker/aufs"
 
 
 ensure_umount "$MOUNTPATH/docker/aufs"
 
-/bin/bash /opt/amazon-ebs-autoscale/install.sh -f lvm.ext4 -m $MOUNTPATH 2>&1 > /var/log/ebs-autoscale-install.log
+/bin/bash /opt/amazon-ebs-autoscale/install.sh --imdsv2 -f lvm.ext4 -m $MOUNTPATH 2>&1 > /var/log/ebs-autoscale-install.log
 
 # Make sure docker uses the big partition
 cat <<EOF > /etc/docker/daemon.json
 
 # Make sure docker uses the big partition
 cat <<EOF > /etc/docker/daemon.json