From 5189a97f0af35cc96161d5a3f434020858745c5c Mon Sep 17 00:00:00 2001 From: Alexander Todorov Date: Mon, 13 Jan 2020 14:47:21 +0200 Subject: [PATCH] tests: Enable Elastic Network Adapter support for AWS - this is required for arm64 but is present in all latest kernels so doesn't seem to hurt - when registering the AMI mark its architecture properly Cherry-picked from 6c35448feb35a16bb52ad8c9571ddfac72f9d71b Related: rhbz#1789308 --- tests/cli/test_build_and_deploy_aws.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/cli/test_build_and_deploy_aws.sh b/tests/cli/test_build_and_deploy_aws.sh index c1920a82..949165f2 100755 --- a/tests/cli/test_build_and_deploy_aws.sh +++ b/tests/cli/test_build_and_deploy_aws.sh @@ -128,7 +128,12 @@ __EOF__ fi # create an image from the imported selected snapshot + AMI_ARCH="$(uname -m)" + if [ "$AMI_ARCH" == "aarch64" ]; then + AMI_ARCH="arm64" + fi AMI_ID=`aws ec2 register-image --name "Composer-Test-$UUID" --virtualization-type hvm --root-device-name /dev/sda1 \ + --ena-support --architecture $AMI_ARCH \ --block-device-mappings "[{\"DeviceName\": \"/dev/sda1\", \"Ebs\": {\"SnapshotId\": \"$SNAPSHOT_ID\"}}]" | \ grep ImageId | cut -f4 -d'"'`