Comment 1 for bug 1993199

Revision history for this message
Jim Gauld (jgauld) wrote :

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:
KUBE_IGNORE_ISOL_CPU_LABEL = 'kube-ignore-isol-cpus=enabled'
. .
        # determine whether to reserve isolated CPUs
        reserve_isolcpus = True
        labels = self.dbapi.label_get_by_host(host.uuid)
        for l in labels:
            if (constants.KUBE_IGNORE_ISOL_CPU_LABEL ==
                    str(l.label_key) + '=' + str(l.label_value)):
                reserve_isolcpus = False
                break