Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for iscsi volume #144

Closed
de13 opened this issue Dec 13, 2017 · 6 comments
Closed

Add support for iscsi volume #144

de13 opened this issue Dec 13, 2017 · 6 comments
Assignees

Comments

@de13
Copy link

de13 commented Dec 13, 2017

RKE version:

v0.0.8-dev

Persistent volume configuration

apiVersion: v1
kind: PersistentVolume
metadata:
  name: iscsi-pv
spec:
  storageClassName: small
  capacity:
    storage: 5Gi
  accessModes:
    - ReadWriteOnce
  iscsi:
    targetPortal: 192.168.1.90
    iqn: "iqn.2014-12.world.srv:storage.target00"
    lun: 0
    fsType: 'ext4'
    readOnly: false
    chapAuthDiscovery: true
    chapAuthSession: true
    secretRef:
      name: chap-secret

Results:

E1213 21:43:19.493389 1416 nestedpendingoperations.go:264] Operation for ""kubernetes.io/iscsi/192.168.1.90:iqn.2014-12.world.srv:storage.target00:0"" failed. No retries permitted until 2017-12-13 21:45:21.493319898 +0000 UTC (durationBeforeRetry 2m2s). Error: MountVolume.WaitForAttach failed for volume "iscsi-pv" (UniqueName: "kubernetes.io/iscsi/192.168.1.90:iqn.2014-12.world.srv:storage.target00:0") pod "mariadb-86c44bb46b-44rzc" (UID: "500a91f9-e04e-11e7-8988-525400f27948") : executable file not found in $PATH

@galal-hussein
Copy link
Contributor

@de13 looks like iscsiadm should be installed in kubelet container, you can try building your own custom kubernetes image with iscsiadm installed and specify this image in cluster.yml

@de13
Copy link
Author

de13 commented Dec 14, 2017

@galal-hussein sure, I already did it, but it doesn't solve the problem. Apparently, it's a know issue on Rancher cant-mount-iscsi-volume/5413/5.

E1214 05:42:50.651339    1383 nestedpendingoperations.go:264] Operation for "\"kubernetes.io/iscsi/192.168.1.90:iqn.2016-06.foo.kube:default:0\"" failed. No retries permitted until 2017-12-14 05:42:52.651315863 +0000 UTC (durationBeforeRetry 2s). Error: MountVolume.WaitForAttach failed for volume "iscsivol" (UniqueName: "kubernetes.io/iscsi/192.168.1.90:iqn.2016-06.foo.kube:default:0") pod "iscsipd" (UID: "8472ece2-e091-11e7-8830-52540092739a") : failed to get any path for iscsi disk, last err seen:
iscsi: failed to attach disk: Error: iscsiadm: default: 1 session requested, but 1 already present.
iscsiadm: Could not log into all portals
 (exit status 15)

@galal-hussein
Copy link
Contributor

@de13 does this problem also happen with hyperkube image with open-iscsi installed?

@de13
Copy link
Author

de13 commented Dec 15, 2017

@galal-hussein not yet tried, but I will.

@galal-hussein
Copy link
Contributor

should be solved by rancher/kubernetes-package#123, can be tested with v0.0.10-dev

@deniseschannon
Copy link

@de13 if the v0.0.10-dev release doesn't work, please re-open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants