Hello @James I just tested the Focal Proposed packages on my Sapphire
Rapids Compute Node:

$ juju config nova-compute-focal cpu-mode
custom

$ juju config nova-compute-focal cpu-model
Cascadelake-Server-noTSX

$ juju config nova-compute-focal cpu-model-extra-flags
-mpx


Before Upgrade:

ubuntu@nova-compute-7:~$ dpkg -l | grep nova
ii  nova-common                           3:25.2.1-0ubuntu2.6~cloud0            
               all          OpenStack Compute - common files
ii  nova-compute                          3:25.2.1-0ubuntu2.6~cloud0            
               all          OpenStack Compute - compute node base
ii  nova-compute-kvm                      3:25.2.1-0ubuntu2.6~cloud0            
               all          OpenStack Compute - compute node (KVM)
ii  nova-compute-libvirt                  3:25.2.1-0ubuntu2.6~cloud0            
               all          OpenStack Compute - compute node libvirt support
ii  python3-nova                          3:25.2.1-0ubuntu2.6~cloud0            
               all          OpenStack Compute Python 3 libraries
ii  python3-novaclient                    2:17.6.0-0ubuntu1~cloud0              
               all          client library for OpenStack Compute API - 3.x


Refer to http://libvirt.org/html/libvirt-libvirt-host.html#virCPUCompareResult
2024-09-21 01:15:28.274 89833 ERROR oslo_service.service Traceback (most recent 
call last):
2024-09-21 01:15:28.274 89833 ERROR oslo_service.service   File 
"/usr/lib/python3/dist-packages/nova/virt/libvirt/driver.py", line 986, in 
_check_cpu_compatibility
2024-09-21 01:15:28.274 89833 ERROR oslo_service.service     
self._compare_cpu(cpu, self._get_cpu_info(), None)
2024-09-21 01:15:28.274 89833 ERROR oslo_service.service   File 
"/usr/lib/python3/dist-packages/nova/virt/libvirt/driver.py", line 9770, in 
_compare_cpu
2024-09-21 01:15:28.274 89833 ERROR oslo_service.service     raise 
exception.InvalidCPUInfo(reason=m % {'ret': ret, 'u': u})
2024-09-21 01:15:28.274 89833 ERROR oslo_service.service 
nova.exception.InvalidCPUInfo: Unacceptable CPU info: CPU doesn't have 
compatibility.
2024-09-21 01:15:28.274 89833 ERROR oslo_service.service
2024-09-21 01:15:28.274 89833 ERROR oslo_service.service 0
2024-09-21 01:15:28.274 89833 ERROR oslo_service.service
2024-09-21 01:15:28.274 89833 ERROR oslo_service.service Refer to 
http://libvirt.org/html/libvirt-libvirt-host.html#virCPUCompareResult
2024-09-21 01:15:28.274 89833 ERROR oslo_service.service
2024-09-21 01:15:28.274 89833 ERROR oslo_service.service During handling of the 
above exception, another exception occurred:
2024-09-21 01:15:28.274 89833 ERROR oslo_service.service
2024-09-21 01:15:28.274 89833 ERROR oslo_service.service Traceback (most recent 
call last):
2024-09-21 01:15:28.274 89833 ERROR oslo_service.service   File 
"/usr/lib/python3/dist-packages/oslo_service/service.py", line 806, in 
run_service
2024-09-21 01:15:28.274 89833 ERROR oslo_service.service     service.start()
2024-09-21 01:15:28.274 89833 ERROR oslo_service.service   File 
"/usr/lib/python3/dist-packages/nova/service.py", line 159, in start
2024-09-21 01:15:28.274 89833 ERROR oslo_service.service     
self.manager.init_host()
2024-09-21 01:15:28.274 89833 ERROR oslo_service.service   File 
"/usr/lib/python3/dist-packages/nova/compute/manager.py", line 1526, in 
init_host
2024-09-21 01:15:28.274 89833 ERROR oslo_service.service     
self.driver.init_host(host=self.host)
2024-09-21 01:15:28.274 89833 ERROR oslo_service.service   File 
"/usr/lib/python3/dist-packages/nova/virt/libvirt/driver.py", line 814, in 
init_host
2024-09-21 01:15:28.274 89833 ERROR oslo_service.service     
self._check_cpu_compatibility()
2024-09-21 01:15:28.274 89833 ERROR oslo_service.service   File 
"/usr/lib/python3/dist-packages/nova/virt/libvirt/driver.py", line 992, in 
_check_cpu_compatibility
2024-09-21 01:15:28.274 89833 ERROR oslo_service.service     raise 
exception.InvalidCPUInfo(msg)
2024-09-21 01:15:28.274 89833 ERROR oslo_service.service 
nova.exception.InvalidCPUInfo: Configured CPU model: Cascadelake-Server-noTSX 
is not compatible with host CPU. Please correct your config and try again. 
Unacceptable CPU info: CPU doesn't have compatibility.


After Upgrade:

ubuntu@nova-compute-7:~$ dpkg -l | grep nova
ii  nova-api-metadata                     3:25.2.1-0ubuntu2.7~cloud0            
               all          OpenStack Compute - metadata API frontend
ii  nova-common                           3:25.2.1-0ubuntu2.7~cloud0            
               all          OpenStack Compute - common files
ii  nova-compute                          3:25.2.1-0ubuntu2.7~cloud0            
               all          OpenStack Compute - compute node base
ii  nova-compute-kvm                      3:25.2.1-0ubuntu2.7~cloud0            
               all          OpenStack Compute - compute node (KVM)
ii  nova-compute-libvirt                  3:25.2.1-0ubuntu2.7~cloud0            
               all          OpenStack Compute - compute node libvirt support
ii  python3-nova                          3:25.2.1-0ubuntu2.7~cloud0            
               all          OpenStack Compute Python 3 libraries
ii  python3-novaclient                    2:17.6.0-0ubuntu1~cloud0              
               all          client library for OpenStack Compute API - 3.x


ubuntu@nova-compute-7:~$ sudo systemctl status nova-compute.service
● nova-compute.service - OpenStack Compute
     Loaded: loaded (/lib/systemd/system/nova-compute.service; enabled; vendor 
preset: enabled)
     Active: active (running) since Sat 2024-09-21 01:22:05 UTC; 3s ago
   Main PID: 103151 (nova-compute)
      Tasks: 3 (limit: 154461)
     Memory: 112.0M
     CGroup: /system.slice/nova-compute.service
             └─103151 /usr/bin/python3 /usr/bin/nova-compute 
--config-file=/etc/nova/nova.conf --config-file=/etc/nova/nova-compute.conf 
--log-file=/var/log/nova/nova-compute.log

Sep 21 01:22:05 nova-compute-7 systemd[1]: Started OpenStack Compute.
Sep 21 01:22:06 nova-compute-7 nova-compute[103151]: Modules with known 
eventlet monkey patching issues were imported prior to eventlet monkey 
patching: urllib3. This warning can usually be ignored if the caller is only 
importi>Sep 21 01:22:07 nova-compute-7 nova-compute[103151]: Deprecated: Option 
"logdir" from group "DEFAULT" is deprecated. Use option "log-dir" from group 
"DEFAULT".


Please let me know if you need anything else.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1999814

Title:
  [SRU] Allow for specifying common baseline CPU model with disabled
  feature

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-archive/+bug/1999814/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to