From c683d1b6cc0c580d868d529bde8b595351bbd495 Mon Sep 17 00:00:00 2001 From: Dusty Mabe Date: Sat, 16 Sep 2023 11:45:45 -0400 Subject: [PATCH] tests/kola: switch to IMDSV2 for aws.assert-xen test We switched to IMDSV2 by default in COSA so let's update our call here. https://github.com/coreos/coreos-assembler/pull/3607 --- tests/kola/platforms/aws/assert-xen | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/kola/platforms/aws/assert-xen b/tests/kola/platforms/aws/assert-xen index 3fe55e1150..cb2bdba084 100755 --- a/tests/kola/platforms/aws/assert-xen +++ b/tests/kola/platforms/aws/assert-xen @@ -16,7 +16,8 @@ set -xeuo pipefail # shellcheck disable=SC1091 . "$KOLA_EXT_DATA/commonlib.sh" -hypervisor=$(curl http://169.254.169.254/2022-09-24/meta-data/system || true) +token=$(curl -X PUT "http://169.254.169.254/latest/api/token" -H "X-aws-ec2-metadata-token-ttl-seconds: 21600") +hypervisor=$(curl -H "X-aws-ec2-metadata-token: $token" http://169.254.169.254/2022-09-24/meta-data/system || true) if [ "${hypervisor}" != "xen" ]; then fatal "expected xen instance type" fi