Skip to content

Unable to retrieve the CPU speed from lscpu on AMD hardware. #12119

@GerorgeEG

Description

@GerorgeEG

problem

We are running RHEL8 KVM on AMD hardware and our KVM hosts are getting rebooted due the below issue

Unable to retrieve the CPU speed from lscpu.

Error Logs:

zcat agent.log.2025-11-23.gz | grep -i lscpu
2025-11-23 17:13:45,199 INFO [utils.linux.KVMHostInfo] (Agent-Handler-1:null) (logid:151ad4b0) Fetching CPU speed from comm and "lscpu".
2025-11-23 17:13:45,244 ERROR [utils.linux.KVMHostInfo] (Agent-Handler-1:null) (logid:151ad4b0) Unable to retrieve the CPU s peed from lscpu.
2025-11-23 17:14:50,752 INFO [utils.linux.KVMHostInfo] (Agent-Handler-1:null) (logid:151ad4b0) Fetching CPU speed from comm and "lscpu".
2025-11-23 17:14:50,796 ERROR [utils.linux.KVMHostInfo] (Agent-Handler-1:null) (logid:151ad4b0) Unable to retrieve the CPU s peed from lscpu.
2025-11-23 17:16:03,926 INFO [utils.linux.KVMHostInfo] (Agent-Handler-1:null) (logid:) Fetching CPU speed from command "lsc pu".
2025-11-23 17:16:03,973 ERROR [utils.linux.KVMHostInfo] (Agent-Handler-1:null) (logid:) Unable to retrieve the CPU speed fro m lscpu.
at org.apache.cloudstack.utils.linux.KVMHostInfo.getCpuSpeedFromCommandLscpu(KVMHostInfo.java:134)
2025-11-23 17:17:16,943 INFO [utils.linux.KVMHostInfo] (Agent-Handler-1:null) (logid:) Fetching CPU speed from command "lsc pu".
2025-11-23 17:17:16,989 ERROR [utils.linux.KVMHostInfo] (Agent-Handler-1:null) (logid:) Unable to retrieve the CPU speed fro m lscpu.
at org.apache.cloudstack.utils.linux.KVMHostInfo.getCpuSpeedFromCommandLscpu(KVMHostInfo.java:134)
2025-11-23 17:18:30,133 INFO [utils.linux.KVMHostInfo] (Agent-Handler-1:null) (logid:) Fetching CPU speed from command "lsc pu".
2025-11-23 17:18:30,178 ERROR [utils.linux.KVMHostInfo] (Agent-Handler-1:null) (logid:) Unable to retrieve the CPU speed fro m lscpu.
at org.apache.cloudstack.utils.linux.KVMHostInfo.getCpuSpeedFromCommandLscpu(KVMHostInfo.java:134)
2025-11-23 17:19:43,204 INFO [utils.linux.KVMHostInfo] (Agent-Handler-1:null) (logid:) Fetching CPU speed from command "lsc pu".
2025-11-23 17:19:43,251 ERROR [utils.linux.KVMHostInfo] (Agent-Handler-1:null) (logid:) Unable to retrieve the CPU speed fro m lscpu.
at org.apache.cloudstack.utils.linux.KVMHostInfo.getCpuSpeedFromCommandLscpu(KVMHostInfo.java:134)
2025-11-23 17:20:56,420 INFO [utils.linux.KVMHostInfo] (Agent-Handler-1:null) (logid:) Fetching CPU speed from command "lsc pu".
2025-11-23 17:20:56,466 ERROR [utils.linux.KVMHostInfo] (Agent-Handler-1:null) (logid:) Unable to retrieve the CPU speed fro m lscpu.
at org.apache.cloudstack.utils.linux.KVMHostInfo.getCpuSpeedFromCommandLscpu(KVMHostInfo.java:134)
2025-11-23 17:22:09,667 INFO [utils.linux.KVMHostInfo] (Agent-Handler-1:null) (logid:) Fetching CPU speed from command "lsc pu".
2025-11-23 17:22:09,713 ERROR [utils.linux.KVMHostInfo] (Agent-Handler-1:null) (logid:) Unable to retrieve the CPU speed fro m lscpu.
at org.apache.cloudstack.utils.linux.KVMHostInfo.getCpuSpeedFromCommandLscpu(KVMHostInfo.java:134)
2025-11-23 17:23:22,643 INFO [utils.linux.KVMHostInfo] (Agent-Handler-1:null) (logid:) Fetching CPU speed from command "lsc pu".
2025-11-23 17:23:22,690 ERROR [utils.linux.KVMHostInfo] (Agent-Handler-1:null) (logid:) Unable to retrieve the CPU speed fro m lscpu.
at org.apache.cloudstack.utils.linux.KVMHostInfo.getCpuSpeedFromCommandLscpu(KVMHostInfo.java:134)
2025-11-23 17:23:53,048 INFO [utils.linux.KVMHostInfo] (Agent-Handler-1:null) (logid:) Fetching CPU speed from command "lsc pu".
2025-11-23 17:23:53,094 ERROR [utils.linux.KVMHostInfo] (Agent-Handler-1:null) (logid:) Unable to retrieve the CPU speed fro m lscpu.
at org.apache.cloudstack.utils.linux.KVMHostInfo.getCpuSpeedFromCommandLscpu(KVMHostInfo.java:134)

Command output

lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 128
On-line CPU(s) list: 0-127
Thread(s) per core: 2
Core(s) per socket: 32
Socket(s): 2
NUMA node(s): 2
Vendor ID: AuthenticAMD
BIOS Vendor ID: Advanced Micro Devices, Inc.
CPU family: 25
Model: 17
Model name: AMD EPYC 9354 32-Core Processor
BIOS Model name: AMD EPYC 9354 32-Core Processor
Stepping: 1
CPU MHz: 3794.096
CPU max MHz: 3799.0720
CPU min MHz: 1500.0000
BogoMIPS: 6490.27
Virtualization: AMD-V
L1d cache: 32K
L1i cache: 32K
L2 cache: 1024K
L3 cache: 32768K
NUMA node0 CPU(s): 0-31,64-95
NUMA node1 CPU(s): 32-63,96-127

[root@vic3235 ~]# virsh nodeinfo
CPU model: x86_64
CPU(s): 128
CPU frequency: 3250 MHz
CPU socket(s): 1
Core(s) per socket: 32
Thread(s) per core: 2
NUMA cell(s): 2
Memory size: 1584479216 KiB

[root@vic3235 ~]# virsh capabilities

ec4cce00-a165-11ef-8000-7cc255e9b795 x86_64 EPYC-Milan AMD tcp rdma 791820780 197955195 0 0 792658436 198164609 0 0 none 0 dac 0 +0:+0 +0:+0 hvm 32 /usr/libexec/qemu-kvm pc-i440fx-rhel7.6.0 pc pc-i440fx-rhel7.0.0 pc-i440fx-rhel7.5.0 pc-q35-rhel8.5.0 pc-i440fx-rhel7.3.0 pc-q35-rhel8.3.0 pc-q35-rhel7.6.0 pc-i440fx-rhel7.1.0 pc-q35-rhel8.1.0 pc-q35-rhel7.4.0 pc-q35-rhel8.6.0 q35 pc-q35-rhel8.4.0 pc-i440fx-rhel7.4.0 pc-q35-rhel8.2.0 pc-q35-rhel7.5.0 pc-i440fx-rhel7.2.0 pc-q35-rhel8.0.0 pc-q35-rhel7.3.0 hvm 64 /usr/libexec/qemu-kvm pc-i440fx-rhel7.6.0 pc pc-i440fx-rhel7.0.0 pc-i440fx-rhel7.5.0 pc-q35-rhel8.5.0 pc-i440fx-rhel7.3.0 pc-q35-rhel8.3.0 pc-q35-rhel7.6.0 pc-i440fx-rhel7.1.0 pc-q35-rhel8.1.0 pc-q35-rhel7.4.0 pc-q35-rhel8.6.0 q35 pc-q35-rhel8.4.0 pc-i440fx-rhel7.4.0 pc-q35-rhel8.2.0 pc-q35-rhel7.5.0 pc-i440fx-rhel7.2.0 pc-q35-rhel8.0.0 pc-q35-rhel7.3.0

versions

The versions of ACS, hypervisors, storage, network etc..

CloudStack 4.19.1.2

Cloudstack agent version on KVM

rpm -qa |grep -i cloudstack
cloudstack-agent-4.19.1.2-1.x86_64
cloudstack-common-4.19.1.2-1.x86_64

KVM :

cat /etc/redhat-release
Red Hat Enterprise Linux release 8.10 (Ootpa)

uname -r
4.18.0-553.33.1.el8_10.x86_64

Storage : NFS (NetApp)

The steps to reproduce the bug

...

What to do about it?

We did go through the #6696 but it looks like ACS setup is not going to option 3 and 4 mention in solution and it is trying to fetch CPU speed through lscpu command only.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    Discuss

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions