Comment 3 for bug 1418187

Revision history for this message
Scott Moser (smoser) wrote :

revised patch.

--- driver.py.org 2015-02-05 03:07:39.396827122 +0000
+++ driver.py 2015-02-06 14:41:25.331949566 +0000
@@ -4682,11 +4687,16 @@
         if topology is None or not topology.cells:
             return

+ if len([cell for cell in topology.cells if cell.memory is None]):
+ LOG.warn("odd, some of your numa cells have None memory. %s",
+ [{id: cell.id, cpuset: set(cpu.id for cpu in cell.cpus),
+ memory: cell.memory} for cell in topology.cells])
+
         topology = objects.NUMATopology(
                 cells=[objects.NUMACell(
                     id=cell.id,
                     cpuset=set(cpu.id for cpu in cell.cpus),
- memory=cell.memory / units.Ki,
+ memory=(cell.memory if cell.memory else 0)/ units.Ki,
                     cpu_usage=0, memory_usage=0,
                     mempages=[
                         objects.NUMAPagesTopology(