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
This commit is contained in:
parent
6f4e679c4c
commit
166e317945
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user