-
Notifications
You must be signed in to change notification settings - Fork 31
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
nodetool status not showing dynamic pods joining #2
Comments
@screeley44 do you get a list of IP addresses when you do a What's the output of |
@vyshane - I'm using the default namespace (also referred to as project for OSE): [root@ose1 usr_configs]# oc get namespaces my dig is not returning the ipaddrs of the containers: root@cassandra-vfujv:/etc# dig $PEER_DISCOVERY_DOMAIN ; <<>> DiG 9.9.5-9+deb8u3-Debian <<>> cassandra-peers.default.cluster.local. ;; QUESTION SECTION: ;; AUTHORITY SECTION: ;; Query time: 1 msec root@cassandra-vfujv:/etc# dig cassandra-peers ; <<>> DiG 9.9.5-9+deb8u3-Debian <<>> cassandra-peers ;; QUESTION SECTION: ;; Query time: 0 msec The services (cassandra-peers and cassandra-service) look good to me based on get services and get endpoints: [root@ose1 cassandra-custom]# oc get services |
It looks like DNS is not working for services. Is the DNS addon enabled for the Kubernetes cluster? |
Hello, I am having a similar problem. DNS seems to respond, but the nodes are not joining:
|
Do you see any log errors when you tail the cassandra pods? |
I think what happened was the DNS did not populate in time for the second node. I've got a cluster up now that has two nodes by waiting some time after the first node was up. Have you used this setup very extensively @vyshane ? |
@vyshane - hello, I'm experimenting with your examples, everything seems to run fine, I have an openshift 3.1 cluster running master + 1 node and gluster cluster on the backend for Persistent Volume support.
I created peer-service, service and rc and my pods run, and I'm using a glusterfs volume for data persistence, the data is persisted on multiple restarts of the pods/rc but when I scale I'm not seeing the pods join the C* ring - and not sure what I'm missing. I don't have a ton of experience with k8 or cassandra but from each container I can ping cassandra-peer (peer service)- so I know they are able to connect.
Unclear to me right now if I need to change my PEER_DISCOVERY_DOMAIN or something else?
some output from oc (kubectl for openshift):
[root@ose1 cassandra-custom]# oc get pods
NAME READY STATUS RESTARTS AGE
cassandra-vfujv 1/1 Running 0 59s
cassandra-x36ay 1/1 Running 0 1m
[root@ose1 cassandra-custom]# oc exec -it cassandra-x36ay -- nodetool status testspace
Datacenter: datacenter1
Status=Up/Down
|/ State=Normal/Leaving/Joining/Moving
-- Address Load Tokens Owns (effective) Host ID Rack
UN 10.1.0.32 176.43 KB 256 100.0% 03b19bd1-ce65-4525-89e7-b23c9b3f0a92 rack1
The text was updated successfully, but these errors were encountered: