pixie icon indicating copy to clipboard operation
pixie copied to clipboard

Pixie with Minikube locally on Mac: "FATAL Timed out waiting for cluster ID assignment"

Open ahunger603 opened this issue 5 years ago • 10 comments

Describe the bug Following the instructions on the Pixie Labs website, in conjunction with the Minikube website setup, I'm attempting to get this working on a local Kube cluster. When running px deploy, I receive "FATAL Timed out waiting for cluster ID assignment" during the step "Waiting for Cloud Connector to come online". I am on a MacBook Pro, running Catalina.

To Reproduce Steps to reproduce the behavior:

  1. Be on MacBook Pro, running Catalina (If relevant)
  2. Setup Minikube and start cluster using the suggested Hyperkit driver.
  3. Attempt to deploy Pixie.

Expected behavior The expected behavior would be a successful deploy.

Screenshots Screen Shot 2020-12-16 at 3 51 12 PM

Logs Please attach the logs by running the following command:

./px collect-logs
Pixie CLI
[0000]  WARN Failed to log pod: cert-provisioner-job-8l6nk error=container "provisioner" in pod "cert-provisioner-job-8l6nk" is waiting to start: trying and failing to pull image
[0000]  WARN Failed to log pod: vizier-cloud-connector-5485ff7c95-5tmrb error=container "app" in pod "vizier-cloud-connector-5485ff7c95-5tmrb" is waiting to start: ContainerCreating

App information

  • Pixie version 0.3.15+Distribution.d906330.20201023205014.1

  • K8s cluster version minikube version: v1.15.1 commit: 23f40a012abb52eff365ff99a709501a61ac5876

Additional Informantion

  • I was not on a VPN during this process.

ahunger603 avatar Dec 17 '20 00:12 ahunger603

Problem was solved by doubling the resources I had previously given Minikube!

ahunger603 avatar Dec 17 '20 00:12 ahunger603

Can you share the resources that you ended up using with minikube?

oazizi000 avatar Dec 17 '20 09:12 oazizi000

@oazizi000 While debugging a different issue running Minikube, I reduced it to cpus=2 and memory=3000, when I boosted to back to the recommended values cpus=4 and memory=6000, it was working 🙂

ahunger603 avatar Dec 17 '20 18:12 ahunger603

Note, for newer versions of pixie, I needed cpus=4 and memory=8000. Thanks, this thread helped to narrow down the issue :)

kaisubr avatar Sep 22 '22 17:09 kaisubr

any other possibilities? I haven't set any resource limits anywhere, using k3s. For a brief moment everything was working, now I'm finding px deploy failing again, as above. I'm sure it's my fault

jberryman avatar Sep 10 '24 21:09 jberryman

@jberryman can you provide the logs from px collect-logs?

ddelnano avatar Sep 10 '24 21:09 ddelnano

@ddelnano certainly, thanks! pixie_logs_20240910203406.zip

jberryman avatar Sep 11 '24 00:09 jberryman

@jberryman when this cluster assignment error happens it can often indicate that the vizier deployment failed before it had a chance to request a cluster ID.

Looking at your logs I see the following errors in the operator. The operator is responsible for deploying the Vizier CRD and so it's the first part of the deployment process.

time="2024-09-07T14:38:46Z" level=error msg="Failed to get latest vizier version" error="rpc error: code = Unavailable desc = connection error: desc = \"transport: error while dialing: dial tcp: lookup            getcosmic.ai on 10.43.0.10:53: server misbehaving\""

Is DNS working in your cluster? It seems that your cluster is having issues resolving the Cloud DNS record (getcosmic.ai). If you want to debug this more real time, I'm available in the Pixie or CNCF slack.

ddelnano avatar Sep 11 '24 14:09 ddelnano

Really appreciate the offer. I did need to add this to my manifest files so that I could resolve internet names. Not sure if that's expected:

      dnsPolicy: "ClusterFirst"
      dnsConfig:
        nameservers:
          - 8.8.8.8
          - 8.8.4.4
        options:
          - name: ndots
            value: "5"

meantime I have nuked k3s and am hoping that k0s might work better ....

jberryman avatar Sep 11 '24 16:09 jberryman

Did you add that DNS configuration before or after the Vizier failed to deploy? Were you able to validate that getcosmic.ai resolved from within a pod once that config applied?

Let me know if you have any issues with k0s.

ddelnano avatar Sep 11 '24 18:09 ddelnano