Open jayunit100 opened 5 years ago
@jayunit100 I don't see below part of the code in your template, which is responsible for the health check
livenessProbe:
httpGet:
path: /ping
port: 24007
initialDelaySeconds: 10
periodSeconds: 60
please refer https://github.com/gluster/gcs/blob/master/deploy/templates/gcs-manifests/gcs-gd2.yml.j2 for more info
Note: I didn't setup an ETCD url. I assume that either way, glusterd should fail fast and obviously if ETCD isnt working, however, its a silent failure.
Observed behavior
Running the kube cluster recipes Gluster pods are running and healthy, but
systemctl status glusterd2
tells another story, it completely failed.Expected/desired behavior
Pods should exit if glusterd can't startup, or at least log this to stderr. Right now no logs and only way to know its broken is to run
glustercli peer status
or similar inside the pod.Details on how to reproduce (minimal and precise)
Create the following file:
And
exec -t -i
into one of the pods, you'll see its healthy, but runningsystemctl status glusterd2
will show error logs. re running this command manually, you will then see the following logs