From 166e317945237b419b7303520e25ceb5e81e405a Mon Sep 17 00:00:00 2001 From: Riccardo Pittau Date: Tue, 5 Nov 2024 11:27:48 +0100 Subject: [PATCH] Check for AMD virtualization support As we do for Intel vmx we shold also check for AMD svm support before dropping to tinyipa. Change-Id: I8507db1bf99631b1076fa5db7ddc6bc3fb7e8083 --- devstack/lib/ironic | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devstack/lib/ironic b/devstack/lib/ironic index 0711321d0d..f3a8418b90 100644 --- a/devstack/lib/ironic +++ b/devstack/lib/ironic @@ -306,7 +306,7 @@ fi # the same. Nested virt is not a thing there. # Prevent a case that will likely result in a failure. if [[ $IRONIC_HW_ARCH != "aarch64" ]]; then - if [[ "$hostdomain" =~ "rax" ]] || [[ "$hostdomain" =~ "iweb" ]] || ! $(grep -q vmx /proc/cpuinfo) ; then + if [[ "$hostdomain" =~ "rax" ]] || [[ "$hostdomain" =~ "iweb" ]] || ! $(grep -q -E 'vmx|svm' /proc/cpuinfo) ; then if [[ "$IRONIC_RAMDISK_TYPE" == "dib" ]]; then echo "** WARNING ** - DIB based IPA images have been defined, however we are running devstack on an environment which does not support nested VMs. Due to virtualization constraints, we are automatically falling back to TinyIPA to ensure CI job passage." IRONIC_RAMDISK_TYPE="tinyipa"