operator
operator copied to clipboard
"NoSchedule": effect must be 'NoExecute' when `tolerationSeconds` is set
Got Pools.0.tolerations.0.tolerationSeconds.seconds in body is required. when trying to specify NoSchedule without seconds in PodPlacement -> Tolerations screen. Specifying seconds to 0 this will cause invalid: spec.tolerations[0].effect issue on statefulset
kubectl minio version v4.5.0
kubectl -n test describe statefulset test-pool-0
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Warning FailedCreate 2m6s (x69 over 37m) statefulset-controller create Pod test-pool-0-3 in StatefulSet test-pool-0 failed error: Pod "test-pool-0-3" is invalid: spec.tolerations[0].effect: Invalid value: "NoSchedule": effect must be 'NoExecute' when `tolerationSeconds` is set
kubectl -n test get statefulset test-pool-0 -o yaml
tolerations:
- effect: NoSchedule
key: nvidia.com/gpu
operator: Equal
tolerationSeconds: 0
value: "true"
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 21 days if no further activity occurs. Thank you for your contributions.
we'll try to reproduce, it might be just UI.
FYI @adriangitvitz Two confirmed bugs here:
- UI should not allow
.tolerations.NoSchedulewithtolerationSeconds - UI should return the error currently hidden in the PUT response to request on
/api/v1/namespaces/<tenant-ns>/tenants/<tenant-name>/pools:
{
"code": 500,
"detailedMessage": "Invalid value: \"NoSchedule\": effect must be 'NoExecute' when tolerationSeconds is set",
"message": "an error occurred, please try again"
}