@@ -391,34 +391,30 @@ def test_create_server_with_mixed_policy_asymmetric_multi_numa(self):
391
391
}
392
392
flavor_id = self ._create_flavor (
393
393
vcpu = 3 , memory_mb = 1024 , extra_spec = extra_spec )
394
+ expected_usage = {
395
+ 'DISK_GB' : 20 , 'MEMORY_MB' : 1024 , 'PCPU' : 2 , 'VCPU' : 1 ,
396
+ }
394
397
# The only possible solution (ignoring the order of vCPU1,2):
395
398
# vCPU 0 => pCPU 0, NUMA0, shared
396
399
# vCPU 1 => pCPU 6, NUMA1, dedicated
397
400
# vCPU 2 => pCPU 7, NUMA1, dedicated
398
- # This is bug 1994526 as the scheduling fails
399
- self . _run_build_test ( flavor_id , end_status = 'ERROR' )
401
+ server = self . _run_build_test (
402
+ flavor_id , expected_usage = expected_usage )
400
403
401
- # # After bug 1994526 is fixed, this should pass
402
- # expected_usage = {
403
- # 'DISK_GB': 20, 'MEMORY_MB': 1024, 'PCPU': 2, 'VCPU': 1,
404
- # }
405
- # server = self._run_build_test(
406
- # flavor_id, expected_usage=expected_usage)
407
- #
408
- # # sanity check the instance topology
409
- # inst = objects.Instance.get_by_uuid(self.ctxt, server['id'])
410
- # self.assertEqual(2, len(inst.numa_topology.cells))
411
- #
412
- # self.assertEqual({0}, inst.numa_topology.cells[0].cpuset)
413
- # self.assertEqual(set(), inst.numa_topology.cells[0].pcpuset)
414
- # self.assertEqual(None, inst.numa_topology.cells[0].cpu_pinning)
415
- #
416
- # self.assertEqual(set(), inst.numa_topology.cells[1].cpuset)
417
- # self.assertEqual({1, 2}, inst.numa_topology.cells[1].pcpuset)
418
- # self.assertEqual(
419
- # {6, 7},
420
- # set(inst.numa_topology.cells[1].cpu_pinning.values())
421
- # )
404
+ # sanity check the instance topology
405
+ inst = objects .Instance .get_by_uuid (self .ctxt , server ['id' ])
406
+ self .assertEqual (2 , len (inst .numa_topology .cells ))
407
+
408
+ self .assertEqual ({0 }, inst .numa_topology .cells [0 ].cpuset )
409
+ self .assertEqual (set (), inst .numa_topology .cells [0 ].pcpuset )
410
+ self .assertIsNone (inst .numa_topology .cells [0 ].cpu_pinning )
411
+
412
+ self .assertEqual (set (), inst .numa_topology .cells [1 ].cpuset )
413
+ self .assertEqual ({1 , 2 }, inst .numa_topology .cells [1 ].pcpuset )
414
+ self .assertEqual (
415
+ {6 , 7 },
416
+ set (inst .numa_topology .cells [1 ].cpu_pinning .values ())
417
+ )
422
418
423
419
def test_create_server_with_dedicated_policy_old_configuration (self ):
424
420
"""Create a server using the legacy extra spec and configuration.
0 commit comments