vmware-archive / kubeless

Kubernetes Native Serverless Framework
https://kubeless.io
Apache License 2.0
6.86k stars 754 forks source link

Kafka and zoo stuck in Init:0/1 state #614

Closed sunilkumarmohanty closed 6 years ago

sunilkumarmohanty commented 6 years ago

Is this a BUG REPORT or FEATURE REQUEST?: This is a question. I am sure it is not a bug.

What happened: Kafka and zookeeper pods are stuck in init stage. On running kubectl describe pods zoo-0 -n kubeless, I get the below error message

Unable to mount volumes for pod "zoo-0_kubeless(c256da45-1d5f-11e8-a21a-02ed99f03e73)": timeout expired waiting for volumes to attach/mount for pod "kubeless"/"zoo-0". list of unattached/unmounted volumes=[zookeeper]

Similar error message is received for the kafka pod also

What you expected to happen: Kafka and zookeeper pods to run so that I can test the event driven model.

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:

Environment:

sebgoa commented 6 years ago

Do you have persistent volumes provisioned ?

usually this type of error is due to the lack of available PV to match the PVC that the kafka and zookeeper need.

but even with those not starting, do note that kubeless http triggers already work because they don't use kafka.

sunilkumarmohanty commented 6 years ago

Hi Seboga,

No; I did not create the PV. This is a stupid mistake. Let me work on it and get back.

meysam001 commented 6 years ago

@sunilkumarmohanty I have same problem. Could you solve it?

sebgoa commented 6 years ago

@meysam001 you need to have some Persistentvolumes created before so that the PVC for Kafka and Zookeeper can be "met". If you don't want to create PVs, you can use a cluster with dynamic storage provisioning.

Note that even though the two pods are not yet in running state, http triggers do work already.

sunilkumarmohanty commented 6 years ago

@meysam001 : I solved the issue using glusterfs. Below links might help https://github.com/heketi/heketi/blob/master/docs/admin/install-kubernetes.md https://blog.lwolf.org/post/how-i-deployed-glusterfs-cluster-to-kubernetes/