Skip to content

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

Closed

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.

Activity

  1. DaanHoogland commented on Nov 24, 2025

    @DaanHoogland
    Contributor

    @GerorgeEG , can you verify if your issue is still present in 4.20?

  2. added this to the 4.20.3 milestone on Nov 26, 2025
  3. shwstppr commented on Nov 27, 2025

    @shwstppr
    Contributor

    @GerorgeEG are these full logs or have you redacted them for sharing? Based on the code and your log snippet, I don't see a reason why the agent would not try getting CPU speed from the frequency file or host capabilities

  4. added theissue type on Jan 5, 2026
  5. weizhouapache commented on Jan 12, 2026

    @weizhouapache
    Member

    @GerorgeEG
    this seems to be same as #6914 which has been fixed #9762
    can you try ACS 4.20.1 or later ?

  6. modified the milestones: 4.20.3, 4.20.4 on Feb 16, 2026
  7. abh1sar commented on Feb 16, 2026

    @abh1sar
    Contributor

    @GerorgeEG this seems to be same as #6914 which has been fixed #9762 can you try ACS 4.20.1 or later ?

    @GerorgeEG would you be able to verify if this is fixed in 4.20.1 or later?

  8. GerorgeEG commented on Feb 19, 2026

    @GerorgeEG
    Author

    Yes, its fixed in version 4.20.1, we can close it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions