{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/examples/issues/89","repository_url":"https://api.github.com/repos/kubernetes/examples","labels_url":"https://api.github.com/repos/kubernetes/examples/issues/89/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/examples/issues/89/comments","events_url":"https://api.github.com/repos/kubernetes/examples/issues/89/events","html_url":"https://github.com/kubernetes/examples/issues/89","id":254023212,"number":89,"title":"Cassandra: seed provider lists no seeds.","user":{"login":"Miouge1","id":13647208,"avatar_url":"https://avatars0.githubusercontent.com/u/13647208?v=4","gravatar_id":"","url":"https://api.github.com/users/Miouge1","html_url":"https://github.com/Miouge1","followers_url":"https://api.github.com/users/Miouge1/followers","following_url":"https://api.github.com/users/Miouge1/following{/other_user}","gists_url":"https://api.github.com/users/Miouge1/gists{/gist_id}","starred_url":"https://api.github.com/users/Miouge1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Miouge1/subscriptions","organizations_url":"https://api.github.com/users/Miouge1/orgs","repos_url":"https://api.github.com/users/Miouge1/repos","events_url":"https://api.github.com/users/Miouge1/events{/privacy}","received_events_url":"https://api.github.com/users/Miouge1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2017-08-30T14:37:12Z","updated_at":"2018-03-05T03:25:02Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nFollowing the instruction of the Cassandra example leads to the following error message:\r\n```\r\nThe seed provider lists no seeds.\r\nWARN  14:15:51 Seed provider couldn't lookup host cassandra-0.cassandra.default.svc.cluster.local\r\nException (org.apache.cassandra.exceptions.ConfigurationException) encountered during startup: The seed provider lists no seeds.\r\nERROR 14:15:51 Exception encountered during startup: The seed provider lists no seeds.\r\n```\r\n\r\nIt looks like a chicken an egg situation:\r\n- Container starts\r\n- readiness probe shows cassandra-0 is not ready\r\n- Cassandra checks the seed, cassandra-0.cassandra.default.svc.cluster.local does not resolve\r\n- Container stops with fatal error\r\n\r\nIf I comment the readinessProbe then the stateful set works.\r\n\r\nShouldn't this use the KubernetesSeedProvider?\r\n\r\n> Client Version: version.Info{Major:\"1\", Minor:\"6\", GitVersion:\"v1.6.3\", GitCommit:\"0480917b552be33e2dba47386e51decb1a211df6\", GitTreeState:\"clean\", BuildDate:\"2017-05-10T15:48:59Z\", GoVersion:\"go1.7.5\", Compiler:\"gc\", Platform:\"darwin/amd64\"}\r\n> Server Version: version.Info{Major:\"1\", Minor:\"5\", GitVersion:\"v1.5.2\", GitCommit:\"269f928217957e7126dc87e6adfa82242bfe5b1e\", GitTreeState:\"clean\", BuildDate:\"2017-07-03T15:31:10Z\", GoVersion:\"go1.7.4\", Compiler:\"gc\", Platform:\"linux/amd64\"}"},"comment":{"url":"https://api.github.com/repos/kubernetes/examples/issues/comments/370299642","html_url":"https://github.com/kubernetes/examples/issues/89#issuecomment-370299642","issue_url":"https://api.github.com/repos/kubernetes/examples/issues/89","id":370299642,"user":{"login":"pravinsinghal","id":24729456,"avatar_url":"https://avatars1.githubusercontent.com/u/24729456?v=4","gravatar_id":"","url":"https://api.github.com/users/pravinsinghal","html_url":"https://github.com/pravinsinghal","followers_url":"https://api.github.com/users/pravinsinghal/followers","following_url":"https://api.github.com/users/pravinsinghal/following{/other_user}","gists_url":"https://api.github.com/users/pravinsinghal/gists{/gist_id}","starred_url":"https://api.github.com/users/pravinsinghal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pravinsinghal/subscriptions","organizations_url":"https://api.github.com/users/pravinsinghal/orgs","repos_url":"https://api.github.com/users/pravinsinghal/repos","events_url":"https://api.github.com/users/pravinsinghal/events{/privacy}","received_events_url":"https://api.github.com/users/pravinsinghal/received_events","type":"User","site_admin":false},"created_at":"2018-03-05T03:25:02Z","updated_at":"2018-03-05T03:25:02Z","author_association":"NONE","body":"I am using the default namespace.\r\n\r\n\r\nkubectl get svc --namespace=default\r\nNAME         TYPE        CLUSTER-IP       EXTERNAL-IP   PORT(S)             AGE\r\ncassandra    ClusterIP   None             <none>        9042/TCP            1d\r\n\r\n kubectl get pods --all-namespaces\r\nNAMESPACE     NAME                                      READY     STATUS             RESTARTS   AGE\r\ndefault       cassandra-0                               0/1       CrashLoopBackOff   487        1d\r\ndefault       cassandra-1                               0/1       CrashLoopBackOff   487        1d\r\ndefault       cassandra-2                               0/1       CrashLoopBackOff   488        1d\r\n\r\n\r\nFrom kubelet logs:\r\n Backing Off restarting container &Container{Name:cassandra,Image:cassandra,Command:[],Args:[],WorkingDir:,Ports:[{intra-node 0 7000 TCP } {tls-intra-node 0 7001 TCP } {jmx 0 7199 TCP } {cql 0 9042 TCP }],Env:[{CASSANDRA_SEEDS cassandra-0.cassandra.default.svc.cluster.local,cassandra-1.cassandra.default.svc.cluster.local nil} {MAX_HEAP_SIZE 256M nil} {HEAP_NEWSIZE 100M nil} {CASSANDRA_CLUSTER_NAME Cassandra nil} {CASSANDRA_DC DC1 nil} {CASSANDRA_RACK Rack1 nil} {POD_IP  EnvVarSource{FieldRef:&ObjectFieldSelector{APIVersion:v1,FieldPath:status.podIP,},ResourceFieldRef:nil,ConfigMapKeyRef:nil,SecretKeyRef:nil,}} {CASSANDRA_ENDPOINT_SNITCH GossipingPropertyFileSnitch nil}],Resources:ResourceRequirements{Limits:ResourceList{cpu: {{500 -3} {<nil>} 500m DecimalSI},memory: {{1073741824 0} {<nil>} 1Gi BinarySI},},Requests:ResourceList{cpu: {{500 -3} {<nil>} 500m DecimalSI},memory: {{1073741824 0} {<nil>} 1Gi BinarySI},},},VolumeMounts:[{cassandra-data false /var/lib/cassandra/data } {default-token-dcbdx true /var/run/secrets/kubernetes.io/serviceaccount }],LivenessProbe:nil,ReadinessProbe:nil,Lifecycle:nil,TerminationMessagePath:/dev/termination-log,ImagePullPolicy:IfNotPresent,SecurityContext:&SecurityContext{Capabilities:&Capabilities{Add:[IPC_LOCK],Drop:[],},Privileged:nil,SELinuxOptions:nil,RunAsUser:nil,RunAsNonRoot:nil,ReadOnlyRootFilesystem:nil,},Stdin:false,StdinOnce:false,TTY:false,EnvFrom:[],TerminationMessagePolicy:File,} in pod cassandra-2_default(1f128c62-1ec3-11e8-a9ca-506b8d4c430a)\r\n\r\n"}}
{"actor":{"display_login":"pravinsinghal"}}