openebs / openebs

Most popular & widely deployed Open Source Container Native Storage platform for Stateful Persistent Applications on Kubernetes.
https://www.openebs.io
Apache License 2.0
9k stars 945 forks source link

Debian #3118

Closed harridu closed 4 years ago

harridu commented 4 years ago

Would you mind to add Debian to https://docs.openebs.io/docs/next/prerequisites.html ?

I am not sure, why open-iscsi is needed on the host at all. Ain't this iscsi stuff supposed to happen in the containers? All you would need is the iscsi-tcp module.

prateekpandey14 commented 4 years ago

Would you mind to add Debian to https://docs.openebs.io/docs/next/prerequisites.html ?

@harridu the installation steps will be similar to Ubuntu.

am not sure, why open-iscsi is needed on the host at all. Ain't this iscsi stuff supposed to happen in the containers? All you would need is the iscsi-tcp module.

I think you are using rancher based k8s cluster, where kubelet runs inside the container. Rancher suggest to install the iscsi in hosts instead of inside the container and bind mount inside the container, you can read more about here https://github.com/openebs/cstor-operators/blob/master/docs/troubleshooting/rancher_prerequisite.md

harridu commented 4 years ago

Where do I have to look for error messages indicating that the bind mounts are missing?

prateekpandey14 commented 4 years ago

if ISCSI installation is missing (or missed to bind mount) the application pod will struck in container creating state , complaining about iscsi bin is missing. Pod describe will show the iscsi errors related to iscsi not found or iscsi_tcp modules are not loading properly .

harridu commented 4 years ago

There are no pods stuck in "creating", even though there are no bind mounts. ???

harridu commented 4 years ago

Apparently Rancher 2.x clusters include iscsi initiator support: https://rancher.com/docs/rancher/v2.x/en/cluster-admin/volumes-and-storage/iscsi-volumes/. In case of incompatibilities between initiator and target on the node these bind mounts should be applied, AFAICS.