Find none logs when not fitting numa topology in nova-compute log

Bug #1934412 reported by Eric Xie
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Unassigned

Bug Description

Description
===========
When 'host_topology' can not be satified with 'requested_topology',
nova-compute returns the msg to nova-conductor but there is no logs
in nova-compute.log. Thouth there are some debug logs, but `debug`
configuration is not be set to true in production environment. So
 the warning log should be added.

Steps to reproduce
==================
* Set flavor with hugepage and total ram that exceeds the limit configured on the node
openstack flavor create --vcpus 2 --ram 3000 --disk 10 --property hw:mem_page_size=2MB flv-2MB-huge
On the node:
vm.nr_hugepages = 20480
* Create one vm with the flavor
openstack server create --image 1512209c-83ca-4a64-aab5-973120e61718 --flavor flv-2MB-huge --network 44dc3e3e-5146-458b-b9b9-6b65e5282efc --availability-zone ::compute01 test-vm

Expected result
===============
Find failed logs in nova-compute.log

Actual result
=============
Find no logs, and the failed logs can be found in nova-conductor.log

Environment
===========
Libvirt + KVM

nova:
$ git log
commit 90455cdae3fae5289b07ae284db0f96e0544d9d2 (HEAD -> stable/wallaby, origin/stable/wallaby)
Merge: 97c3517e7e 5d65680095
Author: Zuul <email address hidden>
Date: Sun Jun 27 07:27:03 2021 +0000

    Merge "libvirt: Set driver_iommu when attaching virtio devices to SEV instance" into stable/wallaby

Changed in nova:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.opendev.org/c/openstack/nova/+/798187
Committed: https://opendev.org/openstack/nova/commit/97a566ad9c3a6ab059dc94d154fb747e4b7d9ccd
Submitter: "Zuul (22348)"
Branch: master

commit 97a566ad9c3a6ab059dc94d154fb747e4b7d9ccd
Author: ericxiett <eric_xiett@163.com>
Date: Sat Jun 26 09:53:27 2021 +0000

    Add logs when cannot fit numa

    When 'host_topology' can not be satified with 'requested_topology',
    nova-compute returns the msg to nova-conductor but there is no logs
    in nova-compute.log. So this patch adds some info log.

    Closes-Bug: #1934412
    Change-Id: Iff44abf002aac548340ffab0a6f85bc4906738a3

Changed in nova:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/nova 24.0.0.0rc1

This issue was fixed in the openstack/nova 24.0.0.0rc1 release candidate.

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.