Open pvanderlinden opened 5 years ago
It seems to be the same issue as I discovered here: https://github.com/nats-io/nats-operator/issues/104 stan-1 still exists but in failure mode:
time="2018-12-05T16:42:51Z" level=info msg="Missing pods for 'nats-io/stan' cluster (size=2/3), creating 1 pods..."
time="2018-12-05T16:42:56Z" level=info msg="Missing pods for 'nats-io/stan' cluster (size=2/3), creating 1 pods..."
time="2018-12-05T16:43:01Z" level=info msg="Missing pods for 'nats-io/stan' cluster (size=2/3), creating 1 pods..."
time="2018-12-05T16:43:06Z" level=info msg="Missing pods for 'nats-io/stan' cluster (size=2/3), creating 1 pods..."
time="2018-12-05T16:43:06Z" level=info msg="Creating pod 'nats-io/stan-2'"
After deleting the existing permanent failure pod, it will still not recover, and all fail to join the Raft group as it doesn't exist yet. The only way to fix this atm is to delete the actual request for a cluster, let it terminate, then recreate.
Yes currently if all pods crash and using the raft cluster then it will not be able to recover since quorum was lost and there won't be a leader able to bootstrap the cluster.
There is no way to fix a cluster once the quorum is lost, you have to destroy all data and start from zero?
There is probably also an issue because it's currently not possible to use a PV for the store and/or raft store, as you can only make one pvc for all pods due to https://github.com/nats-io/nats-streaming-operator/issues/23
i had the same problem and i had to delete and recreate the whole thing several times to get it to suddenly work. is there something specific i can do to get it working the first time?
Was't resilience supposed to be the great benefit of all this? I came this morning to the office and found ALL nats-streaming-1-*
pods in CrashLoopBackOff
with around 500 restarts, meanwhile ALL messages have been obviously lost.
This is borderline ridiculous.
If all pods go down, the cluster will never go up (in this case I was testing on a single node: minikube, and the node crashed)
The log will look permanently like this: