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.

iscsi targets for pvc set on the wrong portal group

See original GitHub issue

Hi, I’m experiencing some weird behavior with the iscsi claims. Nfs works great. set up :

  • kubernetes 1.20.2
  • runtime : crio
  • os : debian 10
  • 2 network interfaces, 1 for services, 1 to access storage backend
  • iscsi portals on TrueNAS Core 12.0-U2
  • Created a 2nd portal for PVCs.

democratic-csi is installed using the command helm upgrade --install --create-namespace --values truenas-iscsi.yml -- namespace democratic-csi truenas-iscsi democratic-csi/democratic-csi truenas-iscsi.yml.txt

When deploying a test pod using a pvc of this class, the pvc is created correctly, but the pod can’t bind to it. output.txt Here is the pod definition : test-pod.yml.txt

The zvol is created on truenas and the initiator is created too. The problem is that the portalgroup defined in the target is not the one I defined for democratic. 1 instead of 2 in this screenshot. truenas-target

When I manually change the portal group to 2 in the target’s configuration on truenas, the pod is able to bind on the pv and the container creation can continue successfully.

I’m not sure if it’s an issue in my config, democratic-csi or the truenas api…

Thank you for any help for making this driver work correctly in this setup.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:21 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
infra-monkeycommented, Feb 16, 2021

True they made a big deal with the new ui and api stuff, i thought it was flawless. But still humans behind the whole thing. Thanks again and keep on the great work. I’ll close this issue

0reactions
travisghansencommented, Feb 16, 2021

@monkey-b I’ll bring it up with the iX team. I honestly only thought that was an issue with the old UI, I was under the impression the fancy new UI was showing the actual ID or I could have pinpointed sooner 😦

Read more comments on GitHub >

github_iconTop Results From Across the Web

Creating iSCSI Target Portal Groups - Managing Devices in ...
You can create a target portal group (TPG) to manage the discovery of multiple iSCSI and iSER targets. A TPG is a list...
Read more >
Persistent Storage using iSCSI - OpenShift Documentation
Multipathing ensures access to the persistent volume when one or more of the components in a path fail. Add additional target portals using...
Read more >
iscsiadm: initiator reported error (24 - iSCSI login failed due to ...
OCS 3.11 - Pod fails to start with MountVolume.WaitForAttach - iscsiadm: initiator reported error (24 - iSCSI login failed due to authorization ...
Read more >
Configuring iSCSI for Kubernetes - Docker Documentation
In a UCP cluster, the iSCSI initiator must be installed and running on any node where pods can be scheduled. Configuration, target discovery,...
Read more >
Configure iSCSI - Mirantis Kubernetes Engine - Docs
iscsiadm is a CLI tool that allows discovery, login to iSCSI targets, ... As PersistentVolumeClaims (PVCs) are created to consume storage, the iSCSI...
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