Browse Source

Merge "Update cpu_shared_set and cpu_dedicated_set in nova config"

changes/49/786549/1 vr/stx.5.0
Zuul 2 months ago
committed by Gerrit Code Review
parent
commit
38470c8045
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      python-k8sapp-openstack/k8sapp_openstack/k8sapp_openstack/helm/nova.py

+ 7
- 1
python-k8sapp-openstack/k8sapp_openstack/k8sapp_openstack/helm/nova.py View File

@ -273,7 +273,13 @@ class NovaHelm(openstack.OpenstackBaseHelm):
host, function=constants.APPLICATION_FUNCTION, threads=True)
vm_cpu_list = [c.cpu for c in vm_cpus]
vm_cpu_fmt = "\"%s\"" % utils.format_range_set(vm_cpu_list)
default_config.update({'vcpu_pin_set': vm_cpu_fmt})
default_config.update({'cpu_shared_set': vm_cpu_fmt})
isol_cpus = self._get_host_cpu_list(
host, function=constants.ISOLATED_FUNCTION, threads=True)
isol_cpu_list = [c.cpu for c in isol_cpus]
isol_cpu_fmt = "\"%s\"" % utils.format_range_set(isol_cpu_list)
default_config.update({'cpu_dedicated_set': vm_cpu_fmt})
shared_cpus = self._get_host_cpu_list(
host, function=constants.SHARED_FUNCTION, threads=True)


Loading…
Cancel
Save