question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TrueNAS Scale 21.08 - Could not log into all portals

See original GitHub issue

Hello there,

Firstly thank you for making the driver API only, can sleep better without having a root SSH key floating around.

I’m testing democratic-csi v1.3.0 - zfs-api-iscsi on TrueNAS Scale 21.08 however Im getting the error: {"code":19,"stdout":"Logging in to [iface: default, target: iqn.2005-10.org.freenas.ctl:csi-pvc-9e4c598a-ee71-4bec-8c36-bd0dfef99340-cluster, portal: 10.80.0.2,3260] (multiple)\\n","stderr":"iscsiadm: Could not login to [iface: default, target: iqn.2005-10.org.freenas.ctl:csi-pvc-9e4c598a-ee71-4bec-8c36-bd0dfef99340-cluster, portal: 10.80.0.2,3260].\\niscsiadm: initiator reported error (19 - encountered non-retryable iSCSI login failure)\\niscsiadm: Could not log into all portals\\n"}'

Cluster design is: TrueNAS Scale 21.08 - 2xNICs Rancher K3s running on 4 x Raspberry Pi 4 (3 manager, 1 worker)

My configuration is the following:

csiDriver:
  name: "org.democratic-csi.iscsi"
storageClasses:
- name: freenas-iscsi-csi
  defaultClass: true
  reclaimPolicy: Delete
  volumeBindingMode: Immediate
  allowVolumeExpansion: true
  parameters:
    fsType: xfs
  mountOptions: []
  secrets:
    provisioner-secret:
    controller-publish-secret:
    node-stage-secret:
    node-publish-secret:
    controller-expand-secret:
driver:
  config: 
    driver: freenas-api-iscsi
    instance_id: aquila
    httpConnection:
      protocol: https
      host: 192.168.50.10
      port: 443
      apiKey: <key>
      allowInsecure: true
      apiVersion: 2
    zfs:
      datasetParentName: cold/k8s/iscsi/v
      detachedSnapshotsDatasetParentName: cold/k8s/iscsi/s
      zvolCompression:
      zvolDedup:
      zvolEnableReservation: false
      zvolBlocksize:
    iscsi:
      targetPortal:  "10.80.0.2:3260"
      interface: eth0
      namePrefix: csi-
      nameSuffix: "-cluster"
      targetGroups:
        - targetGroupPortalGroup: 1
          targetGroupInitiatorGroup: 3
          targetGroupAuthType: None
          targetGroupAuthGroup: null
      extentInsecureTpc: true
      extentXenCompat: false
      extentDisablePhysicalBlocksize: true
      extentBlocksize: 4096
      extentRpm: "7200"
      extentAvailThreshold: 0

Everything on the TrueNAS side seems to be provisioning fine but its just the Kubernetes nodes side of things where the error seems to be.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
travisghansencommented, Sep 3, 2021

Note, it’s an issue if the system boots without any targets/luns (unlikely with ongoing usage). If you find yourself in this situation however the following is a work-around (to run directly on the SCALE cli) and must be done after a target/lun have been added: systemctl restart scst

0reactions
travisghansencommented, Sep 15, 2021

Great! The API key should already be in a secret (the whole config is a giant secret). At least if you used the helm chart…

Read more comments on GitHub >

github_iconTop Results From Across the Web

iscsi client not show all disks | TrueNAS Community
version: TrueNAS-SCALE-21.08-BETA.2.iso environment: VMwareWorkstation 16 pro i create three zvol device ,but iscsi client just show one [root@node1 ~]#...
Read more >
iscsiadm: Could not login to [iface: default, target: iqn.2021-10 ...
version: TrueNAS-SCALE-21.08-BETA.2.iso environment: ... login failed due to authorization failure) iscsiadm: Could not log into all portals.
Read more >
Truenas Scale Hosting iSCSI Targets - Unable to connect to ...
Everything is up and running, but I am unable to see the iSCSI shares from the Truenas scale setup on my Windows Server...
Read more >
SOLVED - Local Users Unable to Login | TrueNAS Community
1) from fresh install of TrueNAS-SCALE-21.08-BETA.1, log in as root user 2) Go to Credentials>LocalUsers 3) Select Add
Read more >
Docs Hub | Documentation Archive - TrueNAS
This can be a false positive that has been fixed in TrueNAS 13.0-U1 ... TrueNAS releases took all the FreeNAS changes up to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found