-
Notifications
You must be signed in to change notification settings - Fork 39.3k
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
PVC is not annotated with "volume.kubernetes.io/selected-node" when .spec.nodeName is used #89953
Comments
/sig storage |
/remove-kind regression before adding this label, please provide information about the specific previous release where the behavior you are expecting worked differently |
I tested the steps to reproduce with v1.17.4 + in-tree volume drivers and the result is the same. So my assumption was that this is a regression coming with CSI, but it looks like it is not the case. |
thanks for the update /remove-sig scheduling when specifying .spec.nodeName, scheduling is not involved |
Ok, but isn't the kube-scheduler responsible for setting the |
I've also encountered similar issues with PVCs which just started today, autoscaling pods created via HPA are staying in ContainerCreating state with issue: |
@ucabsdp , there is no error message like |
@ialidzhikov I also meet similar problem. I find specify nodeName will skip volume mount operation reference openebs/openebs#2915 |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/remove-lifecycle stale |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
this is expected behavior. Instead of setting nodeName directly, set nodeSelector |
/close |
@msau42: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@ucabsdp how did you fix the 'ContainerCreating' issue? Happens when pods is created in a different node other than pvc. |
What happened:
PVC stays forever in
Pending
state when the Pod that uses the PVC is created with.spec.nodeName
.What you expected to happen:
I would expect to be able to schedule a Pod on a predefined Node (using
.spec.nodeName
) that use a PVC (kubelet running with--cloud-provider=external
and CSI migration feature gates are enabled on the corresponding components).How to reproduce it (as minimally and precisely as possible):
.spec.nodeName
that uses this PVCvolume.kubernetes.io/selected-node
annotation.The Pod stays in
ContainerCreating
with events:The PVC events
kube-controller-manager is waiting forever for the
volume.kubernetes.io/selected-node
annotation to be added on the PVC:Anything else we need to know?:
Environment:
kubectl version
): v1.18.0cat /etc/os-release
):uname -a
):The text was updated successfully, but these errors were encountered: