Taints
Just like any other scheduler NodeWright will not schedule packages on selected nodes when there are taints that the package does not explicitly tolerate. These nodes however are not just ignored as it is assumed that the user wanted their packages on these nodes due to their selection of nodeSelectors. In this case the following will happen:
On the NodeWright Custom Resource containing the package(s) targeting the affected nodes:
The legacy prefixed nodewright.nvidia.com/TaintNotTolerable condition type is retained for one release to allow existing consumers time to migrate.
Metrics:
- nodewright_node_status_count status=blocked
Default tolerations
The following taints are always tolerated by NodeWright
- Runtime Required (
controllerManager.manager.env.runtimeRequiredTaint, defaultnodewright.nvidia.com=runtime-required:NoSchedule) - Runtime Required, legacy key:
skyhook.nvidia.com=runtime-required:NoSchedule. Tolerated and removed for the rename deprecation window, never applied. See runtime_required.md. - Cordon taint:
node.kubernetes.io/unschedulable
A current-batch node with package State in_progress or erroring retains its
slot when Kubernetes adds
node.kubernetes.io/not-ready or node.kubernetes.io/unreachable taints with
NoSchedule or NoExecute effects. A reboot therefore does not let the next batch
start early. The exemption follows the slot, not batch membership: a node that was
picked and then displaced by another node before any stage started is blocked like
a fresh node. These taints block fresh admission unless additionalTolerations
explicitly tolerates them. Other untolerated taints and ignore labels still block
nodes, including current batch members.
A failed interrupt attempt can leave package State erroring while its Job still retries.
That state must retain the slot while the node reboots.
The same exemption currently persists after terminal Job failure because package State alone does not distinguish these outcomes.
Slot release after terminal failure remains a separate follow-up in #869.
Package and interrupt pods tolerate both lifecycle keys with NoExecute
indefinitely by default. Explicit matching additionalTolerations entries come
first, so a finite tolerationSeconds still controls eviction. Pod eviction and
batch membership are separate: retaining a slot does not change the Pod’s timeout.
Common Symptoms
The following are common ways a user might know they have taint problem:
- A NodeWright Custom Resource has status as
unknown(Operator < v0.9) orblocked(Operator >= v0.9) - A NodeWright Custom Resource is sitting with incomplete nodes.
Solutions
This can be solved in a few different ways:
- Remove the problem taint(s) from the node(s)
- Change the
nodeSelectorsfor the NodeWright Custom Resources to avoid the nodes - Set the
additionalTolerationson the NodeWright Custom Resources to enable toleration of the taints. An example doing this is included below.