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

PD pod unschedulable with scheduler extender #180

Closed
tennix opened this issue Nov 12, 2018 · 6 comments
Closed

PD pod unschedulable with scheduler extender #180

tennix opened this issue Nov 12, 2018 · 6 comments
Labels
type/bug Something isn't working

Comments

@tennix
Copy link
Member

tennix commented Nov 12, 2018

From #170, when deploying a TiDB cluster in DinD with Local PV, even we specify WaitForFirstConsumer binding mode for local volume. The PV and PVC still may get bound before the pod is scheduled.

Previously we don't have scheduler extender, and all pods can be scheduled. But now when adding scheduler extender, PD pods are not allowed to schedule on the same node. So when PV and PVC are bound before pod scheduling, the pod can actually only be scheduled on the node that PV belongs to. But the HA predicate would refuse to schedule on that node, causing pod unschedulable.

This may be related to local volume scheduling bug which uses affinity and anti-affinity rules. It is fixed in Kubernetes v1.12.

@tennix tennix added the type/bug Something isn't working label Nov 22, 2018
@tennix
Copy link
Member Author

tennix commented Dec 21, 2018

This seems affect all location based persistent volumes scheduling. For example GKE regional persistent disk as in #241

@tlightsky
Copy link

i meet this issue in OSX DinD env too

@weekface
Copy link
Contributor

@tlightsky Are you using manifests/local-dind/dind-cluster-v1.10.sh to build your DinD env?

@gregwebs
Copy link
Contributor

@tlightsky what is the K8s version?

@tlightsky
Copy link

@weekface yes, i used version v1.0.0-beta.1,
then i switched to master, then clean/up again, this problem disappear

@weekface
Copy link
Contributor

this should be fixed in the newer version.

fgksgf added a commit to fgksgf/tidb-operator that referenced this issue Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants