Support for multiple CPUs - cpu_models

Bug #2025914 reported by Pedro Victor Lourenço Fragola
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Nova Compute Charm
Fix Committed
Wishlist
Marcin Wilk
2023.1
Fix Released
Undecided
Unassigned
2023.2
Fix Released
Undecided
Unassigned
Yoga
Fix Released
Undecided
Unassigned
Zed
Fix Released
Undecided
Unassigned

Bug Description

It is necessary to have multiple types of CPU supported(nova-compute config) to enable CPU features.

For example:
An environment with multiples/different nodes/CPUs using Westmer-IBRS and Haswell-Generation after enabling:

juju config nova-compute cpu-model='Westmere-IBRS,Haswell-noTSX-IBRS'

Then nova-compute service on servers that do not support Haswell-Notsx-IBRS didn't start.

nova-compute.log:2023-07-01 13:06:24.365 2866089 ERROR oslo_service.service [-] Error starting thread.: nova.exception.InvalidCPUInfo: Configured CPU model: Haswell-noTSX-IBRS is not compatible with host CPU. Please correct your config and try again. Unacceptable CPU info: CPU doesn't have compatibility.
nova-compute.log:2023-07-01 13:06:24.365 2866089 ERROR oslo_service.service nova.exception.InvalidCPUInfo: Configured CPU model: Haswell-noTSX-IBRS is not compatible with host CPU. Please correct your config and try again. Unacceptable CPU info: CPU doesn't have compatibility

The doc[0] shows that is possible to use cpu_models to have this option.

[0] https://specs.openstack.org/openstack/nova-specs/specs/stein/approved/cpu-model-selection.html

summary: - Support for multiples CPU - cpu_models
+ Support for multiple CPU - cpu_models
summary: - Support for multiple CPU - cpu_models
+ Support for multiple CPUs - cpu_models
Changed in charm-nova-compute:
status: New → Triaged
importance: Undecided → Wishlist
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-nova-compute (master)
Changed in charm-nova-compute:
status: Triaged → In Progress
Marcin Wilk (wilkmarcin)
Changed in charm-nova-compute:
assignee: nobody → Marcin Wilk (wilkmarcin)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-nova-compute (master)

Reviewed: https://review.opendev.org/c/openstack/charm-nova-compute/+/915856
Committed: https://opendev.org/openstack/charm-nova-compute/commit/b57593f86dc0627d74a9264a9035a2c67fd69c01
Submitter: "Zuul (22348)"
Branch: master

commit b57593f86dc0627d74a9264a9035a2c67fd69c01
Author: Marcin Wilk <email address hidden>
Date: Mon Apr 15 13:59:51 2024 +0200

    Add support for the 'cpu_models' option in nova.conf

    Since OpenStack Train release the 'cpu_models' config option
    has superseded the 'cpu_model' config option in the nova.conf.
    This patch adds support for the new 'cpu_models' allowing a user
    to provide a comma separated list of supported, named CPU models.

    This patch also includes a unit test for the cpu_mode='custom'.

    Closes-bug: #2025914
    Change-Id: I30328abc07d3304f1bfb67c81360fb5229214c97

Changed in charm-nova-compute:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-nova-compute (stable/2023.2)

Fix proposed to branch: stable/2023.2
Review: https://review.opendev.org/c/openstack/charm-nova-compute/+/917460

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-nova-compute (stable/2023.1)

Fix proposed to branch: stable/2023.1
Review: https://review.opendev.org/c/openstack/charm-nova-compute/+/917721

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-nova-compute (stable/zed)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-nova-compute (stable/yoga)

Fix proposed to branch: stable/yoga
Review: https://review.opendev.org/c/openstack/charm-nova-compute/+/917723

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-nova-compute (stable/2023.2)

Reviewed: https://review.opendev.org/c/openstack/charm-nova-compute/+/917460
Committed: https://opendev.org/openstack/charm-nova-compute/commit/9f4bcc7adddc5205b596de9ad75afbef2a5ea398
Submitter: "Zuul (22348)"
Branch: stable/2023.2

commit 9f4bcc7adddc5205b596de9ad75afbef2a5ea398
Author: Marcin Wilk <email address hidden>
Date: Mon Apr 15 13:59:51 2024 +0200

    Add support for the 'cpu_models' option in nova.conf

    Since OpenStack Train release the 'cpu_models' config option
    has superseded the 'cpu_model' config option in the nova.conf.
    This patch adds support for the new 'cpu_models' allowing a user
    to provide a comma separated list of supported, named CPU models.

    This patch also includes a unit test for the cpu_mode='custom'.

    Closes-bug: #2025914
    Change-Id: I30328abc07d3304f1bfb67c81360fb5229214c97
    (cherry picked from commit b57593f86dc0627d74a9264a9035a2c67fd69c01)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-nova-compute (stable/2023.1)

Reviewed: https://review.opendev.org/c/openstack/charm-nova-compute/+/917721
Committed: https://opendev.org/openstack/charm-nova-compute/commit/9c7a63c9e31e6b31674c591f47412ef36fd4e31c
Submitter: "Zuul (22348)"
Branch: stable/2023.1

commit 9c7a63c9e31e6b31674c591f47412ef36fd4e31c
Author: Marcin Wilk <email address hidden>
Date: Mon Apr 15 13:59:51 2024 +0200

    Add support for the 'cpu_models' option in nova.conf

    Since OpenStack Train release the 'cpu_models' config option
    has superseded the 'cpu_model' config option in the nova.conf.
    This patch adds support for the new 'cpu_models' allowing a user
    to provide a comma separated list of supported, named CPU models.

    This patch also includes a unit test for the cpu_mode='custom'.

    Closes-bug: #2025914
    Change-Id: I30328abc07d3304f1bfb67c81360fb5229214c97
    (cherry picked from commit b57593f86dc0627d74a9264a9035a2c67fd69c01)

tags: added: in-stable-zed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-nova-compute (stable/zed)

Reviewed: https://review.opendev.org/c/openstack/charm-nova-compute/+/917722
Committed: https://opendev.org/openstack/charm-nova-compute/commit/6bece63b775893fab13d629c2b550c979405866a
Submitter: "Zuul (22348)"
Branch: stable/zed

commit 6bece63b775893fab13d629c2b550c979405866a
Author: Marcin Wilk <email address hidden>
Date: Mon Apr 15 13:59:51 2024 +0200

    Add support for the 'cpu_models' option in nova.conf

    Since OpenStack Train release the 'cpu_models' config option
    has superseded the 'cpu_model' config option in the nova.conf.
    This patch adds support for the new 'cpu_models' allowing a user
    to provide a comma separated list of supported, named CPU models.

    This patch also includes a unit test for the cpu_mode='custom'.

    Closes-bug: #2025914
    Change-Id: I30328abc07d3304f1bfb67c81360fb5229214c97
    (cherry picked from commit b57593f86dc0627d74a9264a9035a2c67fd69c01)

tags: added: in-stable-yoga
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-nova-compute (stable/yoga)

Reviewed: https://review.opendev.org/c/openstack/charm-nova-compute/+/917723
Committed: https://opendev.org/openstack/charm-nova-compute/commit/465d208607276d12791df6667193168f177498f3
Submitter: "Zuul (22348)"
Branch: stable/yoga

commit 465d208607276d12791df6667193168f177498f3
Author: Marcin Wilk <email address hidden>
Date: Mon Apr 15 13:59:51 2024 +0200

    Add support for the 'cpu_models' option in nova.conf

    Since OpenStack Train release the 'cpu_models' config option
    has superseded the 'cpu_model' config option in the nova.conf.
    This patch adds support for the new 'cpu_models' allowing a user
    to provide a comma separated list of supported, named CPU models.

    This patch also includes a unit test for the cpu_mode='custom'.

    Closes-bug: #2025914
    Change-Id: I30328abc07d3304f1bfb67c81360fb5229214c97
    (cherry picked from commit b57593f86dc0627d74a9264a9035a2c67fd69c01)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.