diff --git a/sysinv/sysinv/sysinv/sysinv/helm/base.py b/sysinv/sysinv/sysinv/sysinv/helm/base.py index e005eddef0..53321a5085 100644 --- a/sysinv/sysinv/sysinv/sysinv/helm/base.py +++ b/sysinv/sysinv/sysinv/sysinv/helm/base.py @@ -178,6 +178,19 @@ class BaseHelm(object): constants.CONTROLLER_0_HOSTNAME, constants.NETWORK_TYPE_MGMT) return address.address + def _get_host_cpu_list(self, host, function=None, threads=False): + """ + Retrieve a list of CPUs for the host, filtered by function and thread + siblings (if supplied) + """ + cpus = [] + for c in self.dbapi.icpu_get_by_ihost(host.id): + if c.thread != 0 and not threads: + continue + if c.allocated_function == function or not function: + cpus.append(c) + return cpus + def get_namespaces(self): """ Return list of namespaces supported by this chart diff --git a/sysinv/sysinv/sysinv/sysinv/helm/nova.py b/sysinv/sysinv/sysinv/sysinv/helm/nova.py index 4a6f5909ed..0f959c8251 100644 --- a/sysinv/sysinv/sysinv/sysinv/helm/nova.py +++ b/sysinv/sysinv/sysinv/sysinv/helm/nova.py @@ -188,19 +188,6 @@ class NovaHelm(openstack.OpenstackBaseHelm): else: return 'kvm' - def _get_host_cpu_list(self, host, function=None, threads=False): - """ - Retreive a list of CPUs for the host, filtered by function and thread - siblings (if supplied) - """ - cpus = [] - for c in self.dbapi.icpu_get_by_ihost(host.id): - if c.thread != 0 and not threads: - continue - if c.allocated_function == function or not function: - cpus.append(c) - return cpus - def _update_host_cpu_maps(self, host, default_config): host_cpus = self._get_host_cpu_list(host, threads=True) if host_cpus: