Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scheduler volumebinding plugin - handle Lost PVC as UnschedulableAndUnresolvable #105245

Merged

Commits on Oct 1, 2021

  1. Scheduler volumebinding plugin - handle Lost PVC as

    UnschedulableAndUnresolvable
    
    This change adds an additional check in the volumebinding scheduler
    plugin to handle PVC with phase ClaimLost which will allow the
    scheduler to return UnschedulableAndUnresolvable during the PreFilter
    stage and skip the rest of the node evaluation since the PVC is
    bound to a PV that does not exist.
    
    Without this change, the FailedScheduling error message would look like:
    
    0/10 nodes are available: 2 node(s) had taint {node/test: true},
    that the pod didn't tolerate, 6 node(s) had taint {node/unhealthy: true},
    that the pod didn't tolerate, 2 pvc(s) bound to non-existent pv(s)
    
    Which is still evaluating every single node to determine that the pod
    cannot be scheduled because the PVC is bound to a non-existent PV
    
    With this change, the FailedScheduling error message would look like:
    
    0/10 nodes are available: 1 persistentvolumeclaim "foo" bound
    to non-existent persistentvolume "bar"
    
    Signed-off By: Yibo Zhuang <yibzhuang@gmail.com>
    yibozhuang committed Oct 1, 2021
    Configuration menu
    Copy the full SHA
    b8fe514 View commit details
    Browse the repository at this point in the history