Pending pvc in WaitForFirstConsumer
if pod scheduled by custom scheduler
#86262
Labels
kind/bug
Categorizes issue or PR as related to a bug.
sig/scheduling
Categorizes an issue or PR as relevant to SIG Scheduling.
What happened:
Pod specifies a pvc using a storageclass with
WaitForFirstConsumer=true
. The pod specifies to use a custom scheduler.ContainerCreating
state with messageUnable to mount volumes for pod: timeout expired waiting for volumes to attach or mount for pod
Pending
state with messagewaiting for first consumer to be created before binding
What you expected to happen:
Pod gets scheduled with pv attached.
How to reproduce it (as minimally and precisely as possible):
Create storageclass with
WaitForFirstConsumer
enabledCreate PVC using the storageclass
Create pod using the pvc and custom (non-default) scheduler
Our customized scheduler policy:
Anything else we need to know?:
We are using kubernetes version
1.14.9
.This works fine in version
1.13.12
but does not work for version1.14.9
By looking at the controller manager log, it seems the volume manager never get notified the pod is scheduled.
Environment:
kubectl version
): 1.14.9cat /etc/os-release
):uname -a
):The text was updated successfully, but these errors were encountered: