You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2022/11/21 11:30:10 UTC

[GitHub] [cloudstack] MejdiB opened a new issue, #6914: Hosts marked unavailable due to different CPU frequencies using host capabilities

MejdiB opened a new issue, #6914:
URL: https://github.com/apache/cloudstack/issues/6914

   ##### ISSUE TYPE
   <!-- Pick one below and delete the rest -->
    * Bug Report
    * Improvement Request
   
   ##### COMPONENT NAME
   ~~~
   Agent
   ~~~
   
   ##### CLOUDSTACK VERSION
   ~~~
   4.17.1
   ~~~
   
   ##### CONFIGURATION
   Cloudstack 4.17.1 Environment Advanced Zone with Security Groups. One Computing Cluster consists of AMD EPYC CPUs based on Rome Architecture
   
   
   ##### OS / ENVIRONMENT
   RHEL 8 is used for cloudstack management servers and hosts.
   
   ##### SUMMARY
   With version 4.17, Cloudstack seems to derive the cpu frequency from `virsh capabilites` (https://github.com/apache/cloudstack/issues/6680). With the new update, we experience strange behavior across our CPU hosts based on AMD EPYC Rome CPUs. A lot of hosts are marked "unavailable", due to differences in the CPU frequency:
   
   Example output Host A:
   ~~~
     <host>
       <uuid>948dfa00-7553-11eb-8000-ac1f6b365290</uuid>
       <cpu>
         <arch>x86_64</arch>
         <model>EPYC-Rome</model>
         <vendor>AMD</vendor>
         <microcode version='137367629'/>
         <counter name='tsc' frequency='2800000000'/>
         <topology sockets='1' dies='1' cores='24' threads='2'/>
   ~~~
   
   Example output Host B (not available for VMs):
   ~~~
     <host>
       <uuid>34d92400-753e-11eb-8000-ac1f6b3675d4</uuid>
       <cpu>
         <arch>x86_64</arch>
         <model>EPYC-Rome</model>
         <vendor>AMD</vendor>
         <microcode version='137367629'/>
         <counter name='tsc' **frequency='2799999000'/**>
         <topology sockets='1' dies='1' cores='24' threads='2'/>
   ~~~
   
   Starting a VM on Host B would result in the following error:
   ~~~
   2022-11-17 16:33:06,369 INFO  [utils.linux.KVMHostInfo] (Agent-Handler-1:null) (logid:) Fetching CPU speed from "host capabilities"
   2022-11-17 16:33:06,375 INFO  [utils.linux.KVMHostInfo] (Agent-Handler-1:null) (logid:) Retrieved value [2799999000] from "host capabilities". This corresponds to a CPU speed of [2799] MHz.
   ~~~
   
   lscpu, however, displays the value of 2800 MHz on all hosts:
   ~~~
   Architecture:        x86_64
   CPU op-mode(s):      32-bit, 64-bit
   Byte Order:          Little Endian
   CPU(s):              96
   On-line CPU(s) list: 0-95
   Thread(s) per core:  2
   Core(s) per socket:  24
   Socket(s):           2
   NUMA node(s):        2
   Vendor ID:           AuthenticAMD
   ~~~
   BIOS Vendor ID:      Advanced Micro Devices, Inc.
   CPU family:          23
   Model:               49
   Model name:          AMD EPYC 7402 24-Core Processor
   BIOS Model name:     AMD EPYC 7402 24-Core Processor                
   Stepping:            0
   CPU MHz:             3345.701
   CPU max MHz:         2800,0000
   CPU min MHz:         1500,0000
   BogoMIPS:            5600.24
   Virtualization:      AMD-V
   L1d cache:           32K
   ~~~


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack] weizhouapache commented on issue #6914: Hosts marked unavailable due to different CPU frequencies using host capabilities

Posted by GitBox <gi...@apache.org>.
weizhouapache commented on issue #6914:
URL: https://github.com/apache/cloudstack/issues/6914#issuecomment-1321991002

   > @weizhouapache Yes, since ACS 4.15.1 we worked with a Compute Offering with 2800 MHz.
   
   @MejdiB 
   as a workaround, can you add `host.cpu.manual.speed.mhz=2800` in the agent.properties and restart cloudstack-agent ?
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack] weizhouapache commented on issue #6914: Hosts marked unavailable due to different CPU frequencies using host capabilities

Posted by GitBox <gi...@apache.org>.
weizhouapache commented on issue #6914:
URL: https://github.com/apache/cloudstack/issues/6914#issuecomment-1321926978

   @MejdiB what's the cpu speed of the vm ? 2800 ?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack] MejdiB commented on issue #6914: Hosts marked unavailable due to different CPU frequencies using host capabilities

Posted by GitBox <gi...@apache.org>.
MejdiB commented on issue #6914:
URL: https://github.com/apache/cloudstack/issues/6914#issuecomment-1322062124

   @weizhouapache It worked indeed, the hosts are marked as available again. I have migraated one VM to a host and it also worked. Thanks for the workaround!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack] MejdiB commented on issue #6914: Hosts marked unavailable due to different CPU frequencies using host capabilities

Posted by GitBox <gi...@apache.org>.
MejdiB commented on issue #6914:
URL: https://github.com/apache/cloudstack/issues/6914#issuecomment-1321936425

   @weizhouapache Yes, since ACS 4.15.1 we worked with a Compute Offering with 2800 MHz.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack] MejdiB closed issue #6914: Hosts marked unavailable due to different CPU frequencies using host capabilities

Posted by GitBox <gi...@apache.org>.
MejdiB closed issue #6914: Hosts marked unavailable due to different CPU frequencies using host capabilities
URL: https://github.com/apache/cloudstack/issues/6914


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org