From 1ae7898020390d91be65a6d3bba66ae38faf1692 Mon Sep 17 00:00:00 2001 From: Jim Gauld Date: Thu, 12 Dec 2019 12:16:18 -0500 Subject: [PATCH] AIO System Controller CPU assignment changes This changes AIO running DC system controller CPU assignment so that all logical cpus spanning all numa nodes are configured as Platform function. This update scopes the change to controller personality. Closes-Bug: 1855920 Depends-On: https://review.opendev.org/#/c/698769/ Signed-off-by: Jim Gauld Change-Id: I4e55da3049a0e62d82a08e0181a2d50b6ec3a3ce --- sysinv/sysinv/sysinv/sysinv/conductor/manager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sysinv/sysinv/sysinv/sysinv/conductor/manager.py b/sysinv/sysinv/sysinv/sysinv/conductor/manager.py index 180da5dfea..2e7c3d248a 100644 --- a/sysinv/sysinv/sysinv/sysinv/conductor/manager.py +++ b/sysinv/sysinv/sysinv/sysinv/conductor/manager.py @@ -2523,7 +2523,8 @@ class ConductorManager(service.PeriodicService): system_type = system.system_type dc_role = system.distributed_cloud_role if (system_type == constants.TIS_AIO_BUILD and - dc_role == constants.DISTRIBUTED_CLOUD_ROLE_SYSTEMCONTROLLER): + dc_role == constants.DISTRIBUTED_CLOUD_ROLE_SYSTEMCONTROLLER and + cutils.host_has_function(ihost, constants.CONTROLLER)): return cpu_count # Reserve one full core for worker on numa node 0, and one full core