From 54da0c008f54feaebf97c379ffd28242937ccdd5 Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Wed, 19 Mar 2025 10:03:27 -0700 Subject: [PATCH] Only check sse4_2 support on x86_64 In order to discard nodes not capable of running centos 9 launch node discards x86_64 nodes that don't support sse4_2. However, this check doesn't make sense for aarch64 nodes (like our arm nodepool builder). Only check sse4_2 support when the machine type is x86_64. Change-Id: If06c834be5e7189ddd8ee5b746f50e7bdb9f95d3 --- launch/src/opendev_launch/launch_node.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/launch/src/opendev_launch/launch_node.py b/launch/src/opendev_launch/launch_node.py index 3260e73cb6..630a94f456 100755 --- a/launch/src/opendev_launch/launch_node.py +++ b/launch/src/opendev_launch/launch_node.py @@ -132,7 +132,8 @@ def bootstrap_server(server, key, name, volume_device, keep, ssh_client = utils.ssh_connect(ip, 'root', ssh_kwargs, timeout=timeout) cpuinfo = ssh_client.ssh('cat /proc/cpuinfo', quiet=True)[1] - if "sse4_2" not in cpuinfo: + machineinfo = ssh_client.ssh('uname -m', quiet=True)[1] + if "x86_64" in machineinfo and "sse4_2" not in cpuinfo: raise Exception("CPU does not support x86-64-v2 (sse4_2)") cpucount = 0