jetstack / navigator

Managed Database-as-a-Service (DBaaS) on Kubernetes
Apache License 2.0
271 stars 31 forks source link

Cassandra E2E tests fail on a multi-node cluster because we use hostpath volumes #351

Closed wallrj closed 6 years ago

wallrj commented 6 years ago

In the E2E tests, we configure Cassandra nodes with hostpath volumes. These work on minikube because it only creates a single node.

On a multi-node cluster such as created by kubeadm-dind-cluster, Cassandra Pods may get moved between nodes and in this case new (empty) hostpath volumes are created on each node and data appears to be lost.

Instead we could use persistent local storage PVs which will ensure that pods are only scheduled to nodes with the PV.

330 has some example code for creating persistent local volumes for E2E tests.

/kind bug

wallrj commented 6 years ago

Related to https://github.com/jetstack/navigator/issues/359