Minikube version (use minikube version):
$ minikube version
minikube version: v0.16.0
Environment:
cat ~/.minikube/machines/minikube/config.json | grep DriverName): libvirtcat ~/.minikube/machines/minikube/config.json | grep ISO or minikube ssh cat /etc/VERSION):What happened:
I tried to use an iSCSI PVC on a pod
What you expected to happen:
The kubelet is able to attach the PVC to the pod
How to reproduce it (as minimally and precisely as possible):
Always
Anything else do we need to know:
The error is a little cryptic:
2017-02-24 16:51:08 +0100 CET 2017-02-24 16:43:00 +0100 CET 12 mypod Pod Warning FailedMount {kubelet minikube} MountVolume.SetUp failed for volume "kubernetes.io/iscsi/ebd01c3a-faa7-11e6-8b79-5254009a9694-myvol" (spec.Name: "myvol") pod "ebd01c3a-faa7-11e6-8b79-5254009a9694" (UID: "ebd01c3a-faa7-11e6-8b79-5254009a9694") with: executable file not found in $PATH
but I guess that this is because iscsiadm is missing in the kubelet env and thus the iscsi lun can not get attached.
Right now the PR that I have does not properly build the open-iscsi binaries (iscsid and iscsiadm) and they are then not available in the ISO. I used the buildfile here: http://lists.busybox.net/pipermail/buildroot/2007-February/013810.html as an example but it seems this source repository: http://www.open-iscsi.org/bits Is no longer correct. I am looking at using: https://github.com/open-iscsi/open-iscsi/releases but am having issues building it. Any help/thoughts would be appreciated, thanks.
@aaron-prindle do you have a hint of how to test the builds? The I could take a look
Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Prevent issues from auto-closing with an /lifecycle frozen comment.
If this issue is safe to close now please do so with /close.
Send feedback to sig-testing, kubernetes/test-infra and/or @fejta.
/lifecycle stale
Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
If this issue is safe to close now please do so with /close.
Send feedback to sig-testing, kubernetes/test-infra and/or @fejta.
/lifecycle rotten
/remove-lifecycle stale
Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.
Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close
Please re-open because this is still the case i think:
kubectl apply -f https://raw.githubusercontent.com/rancher/longhorn/v0.2/deploy/longhorn.yaml
kubectl apply -f https://raw.githubusercontent.com/rancher/longhorn/master/deploy/example-storageclass.yaml
fails because iscsiadm is missing:
kubectl logs -f -n longhorn-system po/longhorn-manager-7v2bl
ERRO[0000] Failed environment check, please make sure you have iscsiadm/open-iscsi installed on the host
FATA[0000] Error starting manager: Environment check failed: Failed to execute: nsenter [--mount=/host/proc/1/ns/mnt --net=/host/proc/1/ns/net iscsiadm --version], output nsenter: failed to execute iscsiadm: No such file or directory
, error exit status 1
I, also, need this to try out EdgeFS on Minikube; which is part of Rook.
Most helpful comment
Please re-open because this is still the case i think:
fails because iscsiadm is missing: