yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #52119
[Bug 1590607] Re: incorrect handling of host numa cell usage with instances having no numa topology
Reviewed: https://review.openstack.org/327222
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=f2706b230018ca718614cd86e8c6b68f8cbd7c3f
Submitter: Jenkins
Branch: master
commit f2706b230018ca718614cd86e8c6b68f8cbd7c3f
Author: Chris Friesen <chris.friesen@xxxxxxxxxxxxx>
Date: Wed Jun 8 18:15:34 2016 -0600
Fix resource tracking for instances with no numa topology
This fixes a problem in host NUMA node resource tracking when
there is an instance with no numa topology on the same node as
instances with numa topology.
It's triggered while running the resource audit, which ultimately
calls hardware.get_host_numa_usage_from_instance() and assigns
the result to self.compute_node.numa_topology.
The problem occurs if you have a number of instances with numa
topology, and then an instance with no numa topology. When running
numa_usage_from_instances() for the instance with no numa topology
we cache the values of "memory_usage" and "cpu_usage". However,
because instance.cells is empty we don't enter the loop. Since the
two lines in this commit are indented too far they don't get called,
and we end up appending a host cell with "cpu_usage" and
"memory_usage" of zero. This results in a host numa_topology cell
with incorrect "cpu_usage" and "memory_usage" values, though I think
the overall host cpu/memory usage is still correct.
The fix is to reduce the indentation of the two lines in question
so that they get called even when the instance has no numa topology.
This writes the original host cell usage information back to it.
Change-Id: I7e327b79b731393ed787c4e131dc6d9654f424d0
Closes-Bug: #1590607
** Changed in: nova
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1590607
Title:
incorrect handling of host numa cell usage with instances having no
numa topology
Status in OpenStack Compute (nova):
Fix Released
Bug description:
I think there is a problem in host NUMA node resource tracking when
there is an instance with no numa topology on the same node as
instances with numa topology.
It's triggered while running the resource audit, which ultimately
calls hardware.get_host_numa_usage_from_instance() and assigns the
result to self.compute_node.numa_topology.
The problem occurs if you have a number of instances with numa
topology, and then an instance with no numa topology. When running
numa_usage_from_instances() for the instance with no numa topology we
cache the values of "memory_usage" and "cpu_usage". However, because
"instances" is empty we don't enter the loop. Since the two lines in
this commit are indented too far they don't get called, and we end up
appending a host cell with "cpu_usage" and "memory_usage" of zero.
This results in a host numa_topology cell with incorrect "cpu_usage"
and "memory_usage" values, though I think the overall host cpu/memory
usage is still correct.
The fix is to reduce the indentation of the two lines in question so
that they get called even when the instance has no numa topology. This
writes the original host cell usage information back to it.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1590607/+subscriptions
References