-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Cassandra: seed provider lists no seeds. #89
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
Comments
/sig storage |
I see this issue too, is there any know fix for this? |
You can set See:
|
@wallrj is that also available as an annotation on the service? |
Yes. My colleague @munnerz notes that the |
I didn't face the issue but I also noticed that the KubernetesSeedProvider is not enabled in the example. Created a separate issue: #147 |
This just helped me tremendously! Thanks. |
I am running into the same issue INFO [main] 2018-03-03 09:13:27,994 GossipingPropertyFileSnitch.java:64 - Loaded cassandra-topology.properties for compatibility
Same issue - Seed provider could not look up cassandra--- Any suggestions how to get past this issue ? thx. --pravin |
Your interpretation of the log is not correct. What is important here is
There are different ways of specifying seeds with Cassandra. But the bottom line, seed is just a list separated by commas. So you just have to tell cassandra which ones of your nodes are seeds. By default in the example, the statefulset.yaml specifies the seed node like this:
The next thing that happens is that the run.sh will use this value and replace it in cassandra.yaml at run time. I'm not sure if you will have time to ssh into the cassandra node before it crashes, but you should check the value in your cassandra.yaml:
(the default value is 127.0.0.1 in cassanda.yaml but run.sh will replace it. cassandra-0.cassandra.%%NAMESPACE%%.svc.cluster.local,cassandra-1.cassandra.%%NAMESPACE%%.svc.cluster.local |
I have defined CASSANDARA_SEEDS env var env: And the log says - So - is the lookup failing because the pod crashes before registering the endpoints ? |
There are just warning. It would be normal that cassandra-1 is not ready. Are you sure you are using default namespace? You would need to somehow get into the pod before it crashes and see if you can ping cassandra-0.cassandra.default.svc.cluster.local . |
I am using the default namespace. kubectl get svc --namespace=default kubectl get pods --all-namespaces From kubelet logs: |
kube dns logs showed this I0305 07:18:55.550159 1 dns.go:555] Could not find endpoints for service "cassandra" in namespace "default". DNS records will be created once endpoints show up. Any idea what is happening ? |
have you create the cassandra service |
Yep the service seems to be there |
@pravinsinghal
c) created stateful set Above worked fine in my case
|
cc: @aledbf // this example was recently updated, is this still a problem |
I am still running into this issue - even after i created the namespace. INFO 17:53:49 Back-pressure is disabled with strategy null. this is the complete yaml apiVersion: "apps/v1beta1"
|
if you run cassandra pods in "cassandra" namespace, can you try what I wrote in my previous comment. From your last comment value for CASSANDRA_SEEDS is a bit strange , I guess wrong copy/paste
can you try with
|
Yep - that was a copy/paste issue. INFO 18:10:53 Initialized back-pressure with high ratio: 0.9, factor: 5, flow: FAST, window size: 2000. |
@pravinsinghal please use |
On a separate cluster created using kubeadm - I was able to successfully deploy this YAML ..
On a separate cluster which is deployed by a separate mechanism (derivative of the hard way model) - this still does not work .. even with 1.9.3. Keep getting "Seed provider couldn't lookup host cassandra-0.cassandra.cassandra.svc.cluster.local". |
Issue got identified. thx for all the pointers and help. |
Hi @pravinsinghal , Thank you. |
We recently updated thee cassandra example, ccing @aledbf to take a look and determine if we should close this issue. |
@GervaisYO what image are you using? |
I‘m using gcr.io/google-samples/cassandra:v13 |
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. |
cc: @aledbf: is this image aledbf/cassandra:v15 is same as the image . cassandra:v14 |
Stale issues rot after 30d 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. |
Testing on PS: Ran into the same problem with
So in summary it works with the |
Folks, I have this issue in EKS currently. I'm using
But at spin-up, neither
I'm using the default suggested service definition (save for
Here's the service, running:
Here's the pod, failing:
I've tried this with the following images, to no avail:
|
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: 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. |
Been running into something similar - have been trying to not make the namespace be required as part of the
fails for me with
This occurs when using |
Fails for me when trying to create the second pod onward. Both the service and statefulsets were applied in the default namespace. I'm playing within a Ubuntu VM's single-node cluster (minikube). minikube version
kubectl version
kubectl get svc cassandra
kubectl get pods
kubectl logs cassandra-1
|
how might one check the deployed cluster domain? |
This fixed it for me. my-domain was the problem. Changed the domain and it started working. |
I am working in a company which has it's down domain for kube. You may contact your local k8 administrator for the domain. |
Hi,
Following the instruction of the Cassandra example leads to the following error message:
It looks like a chicken an egg situation:
If I comment the readinessProbe then the stateful set works.
Shouldn't this use the KubernetesSeedProvider?
The text was updated successfully, but these errors were encountered: