-
Notifications
You must be signed in to change notification settings - Fork 502
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
Docker for Mac DinD deploy failed #170
Comments
@kirinse Thank you for your attention. We add an extended scheduler to K8s, i have to check its logs. Could you please provide these outputs: 1, The PV list:
2, tidb-scheduler logs:
replace |
@weekface thank you for your quick response.
|
Sorry, can you provide these outputs also:
|
|
Oh, the default log level is 2, please modify the log level to 4 and get the tidb-scheduler's logs again:
and change |
Could you provide the output of |
|
|
The logs indicate that K8s is trying to schedule the TiDB operator doesn't allow the first 3 pods to be scheduled to the same node. For example, |
Yes, this is for data safety reasons. If two PD/TiKV pods scheduled on the same node and that node is down, then TiDB is out of service because of two replicas lost. |
Ok. i just cloned this repo, didn't change anything. |
This may be an issue of our recently added scheduler. If the scheduler works correctly, the third PD pod's PV should not bound on the same node as previous PD pod. We'll diagnose it further. |
@tennix thanks.
My helm client version is
|
You need to upgrade your helm client. v2.8.2 doesn't support |
@tennix OK, then you guys need update local-dind-tutorial.md :) |
Oh, yeah. The document only requires v2.8.2 or later. Could you help us update the document? Thanks! |
Someone reported a bug to K8s: kubernetes/kubernetes#65131, much like this issue. And this is the fix PR: kubernetes/kubernetes#67556, fixed on v1.12
|
sent pr #175 |
Great, thank you for your contribution! |
After fetch updates, now i can't see any demo-tikv/demo-tidb pods.
|
We're investigating this issue which may be the bug of kubernetes itself. From what you provided, demo-pd-1 is already scheduled, it's just failed. Could you provide the log of demo-pd-1 by |
|
Did you just delete the previous cluster by |
actually
|
Ah, OK. What about demo-pd-0's log? The pd-2's log shows that pd cluster is not ready. The pd-1 must wait until pd-0 ready. |
|
I see the
|
|
This is mainly caused by DNS unstable when the cluster was bootstrapping. So it should be another issue, we should create another issue to track this one. |
Seems the DNS problem is related to #126, it's a known bug and fixed in latest version of PD. |
Are we waiting for a new release of PD? |
We can run with the current version of PD but it's not very stable especially when bootstrapping with an unstable network setup. This mostly happens in DinD environment. |
How should @kirinse fix his issue? Can he upgrade to 2.1? |
The PD fix commit tikv/pd#1279 hasn't cherry-picked in v2.1.0-rc.4, so currently only latest version should fix this issue. |
Currently, there's no versioned tag contains this fix except for |
that's for PD. For tidb & tikv I think you would want to use the more stable tag v2.1.0-rc.4 |
So, no solution for now? |
@kirinse We're sorry about these issues, these are related to upstream programs so they're a bit slower to get fixed in tidb-operator. But there are some workarounds you can try now. For the scheduling issue, you can delete and recreate the cluster. If you're lucky, all the pods can be scheduled correctly. If not, then there is another workaround: set For the PD pods bootstrap error, you can try the |
@tennix this github issue is long and now includes three separate issues. Can we also create a separate issue for the scheduler issue? @kirinse here is the config change to use latest pd. The PD fix is going into RC5, which should be available soon.
|
rc5 is available for all three components now. |
Co-authored-by: huangxiao <huangxiao@meituan.com>
Signed-off-by: liubo02 <liubo02@pingcap.com>
followed instruction local-dind-tutorial.md
kubectl describe pod demo-pd-2 -n tidb
The text was updated successfully, but these errors were encountered: