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
This commit is contained in:
parent
c78e106219
commit
54da0c008f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user