[Bug 1999814] Re: [SRU] Allow for specifying common baseline CPU model with disabled feature

2024-07-12 Thread Mauricio Faria de Oliveira
Likewise for Focal. Uploaded!

** Changed in: nova (Ubuntu Focal)
   Importance: Undecided => Medium

** Changed in: nova (Ubuntu Focal)
   Status: New => In Progress

** Changed in: nova (Ubuntu Focal)
 Assignee: (unassigned) => Rodrigo Barbieri (rodrigo-barbieri2010)

-- 
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/nova/+bug/1999814/+subscriptions


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

[Bug 1999814] Re: [SRU] Allow for specifying common baseline CPU model with disabled feature

2024-07-12 Thread Mauricio Faria de Oliveira
** Changed in: nova (Ubuntu Jammy)
   Importance: Undecided => Medium

** Changed in: nova (Ubuntu Jammy)
 Assignee: (unassigned) => Rodrigo Barbieri (rodrigo-barbieri2010)

-- 
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/nova/+bug/1999814/+subscriptions


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

[Bug 1999814] Re: [SRU] Allow for specifying common baseline CPU model with disabled feature

2024-07-11 Thread Andreas Hasenack
Hello Paul, or anyone else affected,

Accepted nova into jammy-proposed. The package will build now and be
available at
https://launchpad.net/ubuntu/+source/nova/3:25.2.1-0ubuntu2.4 in a few
hours, and then in the -proposed repository.

Please help us by testing this new package.  See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how
to enable and use -proposed.  Your feedback will aid us getting this
update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested, what testing has been
performed on the package and change the tag from verification-needed-
jammy to verification-done-jammy. If it does not fix the bug for you,
please add a comment stating that, and change the tag to verification-
failed-jammy. In either case, without details of your testing we will
not be able to proceed.

Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification .  Thank you in
advance for helping!

N.B. The updated package will be released to -updates after the bug(s)
fixed by this package have been verified and the package has been in
-proposed for a minimum of 7 days.

** Changed in: nova (Ubuntu Jammy)
   Status: In Progress => Fix Committed

** Tags added: verification-needed verification-needed-jammy

-- 
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/nova/+bug/1999814/+subscriptions


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

[Bug 1999814] Re: [SRU] Allow for specifying common baseline CPU model with disabled feature

2024-07-11 Thread Mauricio Faria de Oliveira
Hi Rodrigo,

Thanks for the debdiffs and SRU template!

I've had minor changes to the Jammy upload, and build-tested it in a PPA [1].
It looks good; uploading!

(I'm looking into/building Focal.)

[1] https://launchpad.net/~mfo/+archive/ubuntu/lp1999814

** Changed in: nova (Ubuntu Jammy)
   Status: New => In Progress

-- 
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/nova/+bug/1999814/+subscriptions


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

[Bug 1999814] Re: [SRU] Allow for specifying common baseline CPU model with disabled feature

2024-07-10 Thread Rodrigo Barbieri
** Patch added: "lp1999814_focal.debdiff"
   
https://bugs.launchpad.net/nova/+bug/1999814/+attachment/5795887/+files/lp1999814_focal.debdiff

-- 
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/nova/+bug/1999814/+subscriptions


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

[Bug 1999814] Re: [SRU] Allow for specifying common baseline CPU model with disabled feature

2024-07-10 Thread Rodrigo Barbieri
** Patch added: "lp1999814_jammy.debdiff"
   
https://bugs.launchpad.net/nova/+bug/1999814/+attachment/5795868/+files/lp1999814_jammy.debdiff

-- 
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/nova/+bug/1999814/+subscriptions


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

[Bug 1999814] Re: [SRU] Allow for specifying common baseline CPU model with disabled feature

2024-07-09 Thread Rodrigo Barbieri
** Description changed:

   SRU TEMPLATE AT THE BOTTOM ***
  
  Hello,
  
  This is very similar to pad.lv/1852437 (and the related blueprint at
  https://blueprints.launchpad.net/nova/+spec/allow-disabling-cpu-flags),
  but there is a very different and important nuance.
  
  A customer I'm working with has two classes of blades that they're
  trying to use.  Their existing ones are Cascade Lake-based; they are
  presently using the Cascadelake-Server-noTSX CPU model via
  libvirt.cpu_model in nova.conf.  Their new blades are Ice Lake-based,
  which is a newer processor, which typically would also be able to run
  based on the Cascade Lake feature set - except that these Ice Lake
  processors lack the MPX feature defined in the Cascadelake-Server-noTSX
  model.
  
  The result of this is evident when I try to start nova on the new blades
  with the Ice Lake CPUs.  Even if I specify the following in my
  nova.conf:
  
  [libvirt]
  cpu_mode = custom
  cpu_model = Cascadelake-Server-noTSX
  cpu_model_extra_flags = -mpx
  
  That is not enough to allow Nova to start; it fails in the libvirt
  driver in the _check_cpu_compatibility function:
  
  2022-12-15 17:20:59.562 1836708 ERROR oslo_service.service Traceback (most 
recent call last):
  2022-12-15 17:20:59.562 1836708 ERROR oslo_service.service   File 
"/usr/lib/python3/dist-packages/nova/virt/libvirt/driver.py", line 771, in 
_check_cpu_compatibility
  2022-12-15 17:20:59.562 1836708 ERROR oslo_service.service 
self._compare_cpu(cpu, self._get_cpu_info(), None)
  2022-12-15 17:20:59.562 1836708 ERROR oslo_service.service   File 
"/usr/lib/python3/dist-packages/nova/virt/libvirt/driver.py", line 8817, in 
_compare_cpu
  2022-12-15 17:20:59.562 1836708 ERROR oslo_service.service raise 
exception.InvalidCPUInfo(reason=m % {'ret': ret, 'u': u})
  2022-12-15 17:20:59.562 1836708 ERROR oslo_service.service 
nova.exception.InvalidCPUInfo: Unacceptable CPU info: CPU doesn't have 
compatibility.
  2022-12-15 17:20:59.562 1836708 ERROR oslo_service.service
  2022-12-15 17:20:59.562 1836708 ERROR oslo_service.service 0
  2022-12-15 17:20:59.562 1836708 ERROR oslo_service.service
  2022-12-15 17:20:59.562 1836708 ERROR oslo_service.service Refer to 
http://libvirt.org/html/libvirt-libvirt-host.html#virCPUCompareResult
  2022-12-15 17:20:59.562 1836708 ERROR oslo_service.service
  2022-12-15 17:20:59.562 1836708 ERROR oslo_service.service During handling of 
the above exception, another exception occurred:
  2022-12-15 17:20:59.562 1836708 ERROR oslo_service.service
  2022-12-15 17:20:59.562 1836708 ERROR oslo_service.service Traceback (most 
recent call last):
  2022-12-15 17:20:59.562 1836708 ERROR oslo_service.service   File 
"/usr/lib/python3/dist-packages/oslo_service/service.py", line 810, in 
run_service
  2022-12-15 17:20:59.562 1836708 ERROR oslo_service.service service.start()
  2022-12-15 17:20:59.562 1836708 ERROR oslo_service.service   File 
"/usr/lib/python3/dist-packages/nova/service.py", line 173, in start
  2022-12-15 17:20:59.562 1836708 ERROR oslo_service.service 
self.manager.init_host()
  2022-12-15 17:20:59.562 1836708 ERROR oslo_service.service   File 
"/usr/lib/python3/dist-packages/nova/compute/manager.py", line 1404, in 
init_host
  2022-12-15 17:20:59.562 1836708 ERROR oslo_service.service 
self.driver.init_host(host=self.host)
  2022-12-15 17:20:59.562 1836708 ERROR oslo_service.service   File 
"/usr/lib/python3/dist-packages/nova/virt/libvirt/driver.py", line 743, in 
init_host
  2022-12-15 17:20:59.562 1836708 ERROR oslo_service.service 
self._check_cpu_compatibility()
  2022-12-15 17:20:59.562 1836708 ERROR oslo_service.service   File 
"/usr/lib/python3/dist-packages/nova/virt/libvirt/driver.py", line 777, in 
_check_cpu_compatibility
  2022-12-15 17:20:59.562 1836708 ERROR oslo_service.service raise 
exception.InvalidCPUInfo(msg)
  2022-12-15 17:20:59.562 1836708 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.
  2022-12-15 17:20:59.562 1836708 ERROR oslo_service.service
  2022-12-15 17:20:59.562 1836708 ERROR oslo_service.service 0
  2022-12-15 17:20:59.562 1836708 ERROR oslo_service.service
  2022-12-15 17:20:59.562 1836708 ERROR oslo_service.service Refer to 
http://libvirt.org/html/libvirt-libvirt-host.html#virCPUCompareResult
  2022-12-15 17:20:59.562 1836708 ERROR oslo_service.service
  
  If I make a custom libvirt CPU map file which removes the "" feature and specify that as the cpu_model instead, I am
  able to make Nova start - so it does indeed seem to specifically be that
  single feature which is blocking me.  However, editing the libvirt CPU
  mapping files is probably not the right way to fix this - hence why I'm
  filing this bug, for discussion of how to support cases like this.
  
  

[Bug 1999814] Re: [SRU] Allow for specifying common baseline CPU model with disabled feature

2024-07-04 Thread Mauricio Faria de Oliveira
The patch cannot be applied to Ubuntu Bionic (18.04), since its libvirt
version is older than the minimum required (mentioned in the patch).

The Ubuntu Cloud Archive for Bionic (eg, from Focal / Ussuri) can be
used/patched though, as it provides a sufficiently newer version of
libvirt.

`QEMU >=2.9 and libvirt >= 4.4.0 are the mininum required versions`

$ rmadison -a source libvirt -s bionic-updates # ubuntu archive
 libvirt | 4.0.0-1ubuntu8.21 | bionic-updates | source

$ cmadison libvirt | grep bionic-updates # cloud archive
 libvirt | 5.0.0-1ubuntu2.6~cloud3   | stein   | bionic-updates  | 
source
 libvirt | 5.4.0-0ubuntu5.4~cloud1.1 | train   | bionic-updates  | 
source
 libvirt | 6.0.0-0ubuntu8.16~cloud0  | ussuri  | bionic-updates  | 
source


** Changed in: nova (Ubuntu Bionic)
   Status: New => Won't Fix

-- 
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/nova/+bug/1999814/+subscriptions


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

[Bug 1999814] Re: [SRU] Allow for specifying common baseline CPU model with disabled feature

2024-07-04 Thread Mauricio Faria de Oliveira
The patch is present in Ubuntu Mantic and later.

$ git grep skip_cpu_compare_at_startup pkg/ubuntu/oracular-devel -- 
nova/conf/workarounds.py
pkg/ubuntu/oracular-devel:nova/conf/workarounds.py:
cfg.BoolOpt('skip_cpu_compare_at_startup',

$ git grep skip_cpu_compare_at_startup pkg/ubuntu/noble-devel -- 
nova/conf/workarounds.py
pkg/ubuntu/noble-devel:nova/conf/workarounds.py:
cfg.BoolOpt('skip_cpu_compare_at_startup',

$ git grep skip_cpu_compare_at_startup pkg/ubuntu/mantic-devel -- 
nova/conf/workarounds.py
pkg/ubuntu/mantic-devel:nova/conf/workarounds.py:
cfg.BoolOpt('skip_cpu_compare_at_startup',

$ git grep skip_cpu_compare_at_startup pkg/ubuntu/jammy-devel -- 
nova/conf/workarounds.py
$

$ git grep skip_cpu_compare_at_startup pkg/ubuntu/focal-devel -- 
nova/conf/workarounds.py
$

$ git grep skip_cpu_compare_at_startup pkg/ubuntu/bionic-devel -- 
nova/conf/workarounds.py
$


** Also affects: nova (Ubuntu Jammy)
   Importance: Undecided
   Status: New

** Changed in: nova (Ubuntu)
   Status: New => Fix Released

-- 
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/nova/+bug/1999814/+subscriptions


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

[Bug 1999814] Re: [SRU] Allow for specifying common baseline CPU model with disabled feature

2024-07-03 Thread Rodrigo Barbieri
** Also affects: nova (Ubuntu)
   Importance: Undecided
   Status: New

** Also affects: nova (Ubuntu Bionic)
   Importance: Undecided
   Status: New

** Also affects: nova (Ubuntu Focal)
   Importance: Undecided
   Status: New

** Also affects: nova/victoria
   Importance: Undecided
   Status: New

** Also affects: nova/ussuri
   Importance: Undecided
   Status: New

** Also affects: nova/xena
   Importance: Undecided
   Status: New

** Also affects: nova/yoga
   Importance: Undecided
   Status: New

** Also affects: nova/wallaby
   Importance: Undecided
   Status: New

** Tags added: sts sts-sru-needed

-- 
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/nova/+bug/1999814/+subscriptions


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