-
Notifications
You must be signed in to change notification settings - Fork 245
Open
Description
Describe the bug
In this line of code
Line 506 in 9e3b007
Logc(ctx).Errorf("Portal '%v' is missing target IQN; it may not be considered for iSCSI self-healing.", |
an error is logged even though
publishInfo.IscsiTargetPortal
is an empty string. In our case it is an empty string when using NFS.The error message was a bit confusing when we tried to debug another problem.
The error was:
time="2024-12-16T09:18:33Z" level=error msg="Portal '' is missing target IQN; it may not be considered for iSCSI self-healing." logLayer=csi_frontend requestID=<requestID> requestSource="Internal workflow="plugin=activate"
Environment
Provide accurate information about the environment to help us reproduce the issue.
- Trident version: [e.g. 19.10] 24.10
- Trident installation flags used: [e.g. -d -n trident --use-custom-yaml]
- Container runtime: [e.g. Docker 19.03.1-CE] containerd
- Kubernetes version: [e.g. 1.15.1] 1.30.7
- Kubernetes orchestrator: [e.g. OpenShift v3.11, Rancher v2.3.3] Rancher
- Kubernetes enabled feature gates: [e.g. CSINodeInfo]
- OS: [e.g. RHEL 7.6, Ubuntu 16.04] SLES 15 SP6
- NetApp backend types: [e.g. CVS for AWS, ONTAP AFF 9.5, HCI 1.7]
- Other:
To Reproduce
Use NFS and watch the log of trident pods.
Expected behavior
No error when using NFS regarding iSCSI self-healing.