sysinv needs to handle 'kube-ignore-isol-cpus=disabled' as though the label didn't exist
Bug #1993199 reported by
Chris Friesen
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Medium
|
Jim Gauld |
Bug Description
Currently the sysinv code just checks whether the 'kube-ignore-
We should only provide the "ignore isolcpus" behaviour if the label value is "enabled". This will align with the existing puppet behaviour.
Changed in starlingx: | |
assignee: | nobody → Jim Gauld (jgauld) |
tags: | added: stx.8.0 stx.config |
Changed in starlingx: | |
importance: | Undecided → Medium |
To post a comment you must log in.
To align, just change the sysinv method to match the handling of SRIOVDP_LABEL = 'sriovdp=enabled' in constants.py and kubernetes.py .
Change the code to this: ISOL_CPU_ LABEL = 'kube-ignore- isol-cpus= enabled'
reserve_ isolcpus = True label_get_ by_host( host.uuid) KUBE_IGNORE_ ISOL_CPU_ LABEL ==
str( l.label_ key) + '=' + str(l.label_ value)) :
reserve_ isolcpus = False
break
KUBE_IGNORE_
. .
# determine whether to reserve isolated CPUs
labels = self.dbapi.
for l in labels:
if (constants.