Modified cpuutils numa to work with aws 18xlarge instances.
Added dmidecode package to calibration role as is not installed by default.
Added required constants
Signed-off-by: Maros Mullner <maros.mullner@pantheon.tech>
Change-Id: I99608d9df3cff0b085ad26c30e339216b17581eb
u"Intel-X710": u"10ge2p1x710",
u"Intel-XL710": u"40ge2p1xl710",
u"Intel-XXV710": u"25ge2p1xxv710",
u"Intel-X710": u"10ge2p1x710",
u"Intel-XL710": u"40ge2p1xl710",
u"Intel-XXV710": u"25ge2p1xxv710",
+ u"Amazon-Nitro-50G": u"50ge1p1ENA",
u"Mellanox-CX556A": u"100ge2p1cx556a",
}
u"Mellanox-CX556A": u"100ge2p1cx556a",
}
u"Intel-X710": [u"vfio-pci", u"avf"],
u"Intel-XL710": [u"vfio-pci", u"avf"],
u"Intel-XXV710": [u"vfio-pci", u"avf"],
u"Intel-X710": [u"vfio-pci", u"avf"],
u"Intel-XL710": [u"vfio-pci", u"avf"],
u"Intel-XXV710": [u"vfio-pci", u"avf"],
+ u"Amazon-Nitro-50G": [u"vfio-pci"],
u"Mellanox-CX556A": [u"rdma-core"],
}
u"Mellanox-CX556A": [u"rdma-core"],
}
:raises ValueError: If numa node ia less than 0.
:raises RuntimeError: If update of numa node failed.
"""
:raises ValueError: If numa node ia less than 0.
:raises RuntimeError: If update of numa node failed.
"""
- def check_cpu_node_count(node_n, val):
- val = int(val)
- if val < 0:
- if CpuUtils.cpu_node_count(node_n) == 1:
- val = 0
- else:
- raise ValueError
- return val
ssh = SSH()
for if_key in Topology.get_node_interfaces(node):
if_pci = Topology.get_interface_pci_addr(node, if_key)
ssh = SSH()
for if_key in Topology.get_node_interfaces(node):
if_pci = Topology.get_interface_pci_addr(node, if_key)
ret, out, _ = ssh.exec_command(cmd)
if ret == 0:
try:
ret, out, _ = ssh.exec_command(cmd)
if ret == 0:
try:
- numa_node = check_cpu_node_count(node, out)
+ numa_node = 0 if int(out) < 0 else int(out)
except ValueError:
logger.trace(
f"Reading numa location failed for: {if_pci}"
except ValueError:
logger.trace(
f"Reading numa location failed for: {if_pci}"
packages_by_distro:
ubuntu:
- "build-essential"
packages_by_distro:
ubuntu:
- "build-essential"
packages_by_arch:
aarch64:
packages_by_arch:
aarch64: