Friday, 2025-07-18

*** mhen_ is now known as mhen01:54
aravindh5murugesanHello folks. I'm running into a problem when I set CPU models to custom and the specifying the models. The default config that we receive from our vendor sets the cpu-model to broadwell-notsx-IBS something. But our CPU model is saphirerapids and the oldest we need to support is Icelake. But When I set it to Icelake or SaphireRapids, I used the same name as listed in virsh cpu-models, but nova complains that CPU04:24
aravindh5murugesancan assist me here. 2025-07-17 20:44:36.072 ERROR oslo_service.service [req-fa1ce5c0-d687-4d09-ac10-7ca05eb98461 None None] Error starting thread.: nova.exception.InvalidCPUInfo: Configured CPU model: SapphireRapids-noTSX and CPU Flags [] ar not compatible with host CPU. Please correct your config and try again. Unacceptable CPU info: CPU doesn't have compatibility04:27
aravindh5murugesanCPU model in hypervisor - Vendor ID:                GenuineIntel   Model name:             Intel(R) Xeon(R) Silver 4416+04:28
sean-k-mooneyaravindh5murugesan the problem you are having is that icelake has feature flags like tsk tha tintel disabled in microcode and does tno supprot on saphire rapids09:09
sean-k-mooney*like the flags for tsx that intel ...09:11
opendevreviewTakashi Kajinami proposed openstack/nova master: Drop unused parameter type validation method  https://review.opendev.org/c/openstack/nova/+/90918910:53
aravindh0murugesansean-k-mooney: In that case, would it possible to disable those unsupported flags and somehow make this work?12:03
sean-k-mooneyyes there are 2 ways, libvirt provide some custom models for older cpu i.e. the *-notsx-IBS variants12:20
sean-k-mooneybut nova also has a config option that allows you to add/remove cpu flags12:20
aravindh0murugesanI compared the icelake.xml and my lscpu flags and found these flags are missing in my host cpu - avx512vnni,mpx,pclmuldq,spec-ctrl,sse4.1,sse4.2,tsc-deadline,12:37
aravindh0murugesanso I just do a - on these flags in nova configs?12:37
aravindh0murugesancpu_models = Cascadelake-Server-noTSX cpu-model-extra-flags = -avx512vnni,-mpx,-pclmuldq,-spec-ctrl,-sse4.1,-sse4.2,-tsc-deadline this does not work either12:38
aravindh0murugesansean-k-mooney: Editing the XML to say removed='yes' kinda worked. But I'm not sure if this is the suggested way to do things.12:44
aravindh0murugesanMy bad, changing this cpu-model-extra-flags to snake case fixed it. Thanks.12:58
sean-k-mooneyack so you were able to get this wokring13:23
sean-k-mooneyand yes https://docs.openstack.org/nova/latest/configuration/config.html#libvirt.cpu_model_extra_flags is the cofnig opiton13:25
sean-k-mooneyby the wya i have alwasy know cpu_model_extra_flags as SLUG case and cpu-model-extra-flags as snake case13:26
opendevreviewWesley Hershberger proposed openstack/nova stable/2024.2: Use dict object for request_specs_dict in the _list_view  https://review.opendev.org/c/openstack/nova/+/95531013:28
opendevreviewWesley Hershberger proposed openstack/nova stable/2024.1: Add ServersViewBuilderTestV296 unit test class  https://review.opendev.org/c/openstack/nova/+/95530413:28
opendevreviewWesley Hershberger proposed openstack/nova stable/2024.1: Use dict object for request_specs_dict in the _list_view  https://review.opendev.org/c/openstack/nova/+/95530513:28
dansmithgibi: so, with my patch to actually fix s-g, I'm hitting the db poison fixture on NoDBTestCase tests.. I was thinking that I must be working around one of the mocks for that, but I haven't found it yet14:31
dansmithI'm wondering if maybe before we were scheduling things to threads but not actually running them and these tests are actually missing db mocks that are now getting tickled14:32
dansmithhave you run into that anywhere else?14:32
gibiI havent seen this type of issues yet with tasks using the futurists executors especially not in legacy mode spawning GreenThreads.15:08
gibiI can take a look at the actual failure on Monday 15:09
dansmithgibi: wait, I think I'm just stupid15:10
dansmithI was raising the exception the task raised in my result() but I think our contract with the sg caller is to return the Exception if it raised15:10
gibiyes I think scatter gather expects the exception to be returned15:11
gibihttps://github.com/openstack/nova/blob/770a6f1eabc6cfb77d3ac5afd91e6e8ce9f8b9d9/nova/context.py#L42515:11
gibihttps://github.com/openstack/nova/blob/770a6f1eabc6cfb77d3ac5afd91e6e8ce9f8b9d9/nova/context.py#L46315:12
gibiso yes the exception caught on the task thread and returned az the result value of the task15:12
dansmithyup15:14
opendevreviewMerged openstack/nova master: Make nova.utils.pass_context private  https://review.opendev.org/c/openstack/nova/+/94818815:23
opendevreviewDan Smith proposed openstack/nova master: Remove eventlet timer from multi_cell_list  https://review.opendev.org/c/openstack/nova/+/95499015:29
opendevreviewDan Smith proposed openstack/nova master: WIP: Parallelize s-g generators  https://review.opendev.org/c/openstack/nova/+/95509115:29
dansmiththat ^ should fix the unit/fixture failure on the eventlet timer patch and get the WIP much closer to passing.. more work to be done there of course, but at least it's not 100% fail15:30
*** haleyb is now known as haleyb|out18:33
-opendevstatus- NOTICE: The Gerrit service on review.opendev.org will be offline briefly for a configuration and version update, but should return to service momentarily20:07

Generated by irclog2html.py 4.0.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!