Steps to reproduce
- Add multiple NICs/IPs to QNAP, either as virtual-switch or dedicated network-interface
- optional - configure only one (the desired) interface as portal on existing LUN
- Configure a QNAP backend using:
- storageDriverName: qnap-nas
- dedicated storage IP 192.168.2.50
- dedicated interface selection:
networkInterfaces:
- "Adapter 4"
- Restart trident-controller
- Verify the runtime backend reflects the config:
networkInterfaces:
- Adapter 4
- Create a brand new PVC and a Pod using that PVC
- Inspect the resulting VolumeAttachment
Expected behavior
The published iSCSI portal metadata should contain only valid portals.
For a single intended storage interface/IP, we would expect something like:
iscsiTargetPortalCount: "1"
p1: "192.168.2.50"
At minimum, the driver should never publish an empty portal entry.
Actual behavior
The driver publishes invalid portal metadata like:
iscsiTargetPortalCount: "2"
p1: ""
p2: "192.168.2.50"
This happens for:
- existing volumes
- volumes re-published to another node
- newly created PVCs after networkInterfaces is configured
Relevant logs
Node-side staging logs show:
Failed to discover targets
iscsiadm: Cannot resolve host . getaddrinfo error: [Name does not resolve]
iscsiadm: No portals found
portal=":3260"
and:
Failed to add portal to self-healing map; err: portal value cannot be empty
Environment
- Kubernetes: v1.33.3
- Talos Linux: v1.12.6
- Kernel: 6.18.18-talos
- Container runtime: containerd://2.1.6
QNAP CSI / Trident
- qnapsystem/qnap-csi:v1.6.0
- qnapsystem/qnap-csi-backend-qts-sidecar:v1.6.0
- qnapsystem/qnap-csi-operator:v1.6.0
- reported orchestrator version: v1.06.0
Backend
- storageDriverName: qnap-nas
- storageAddress: 192.168.2.50
- networkInterfaces: ["Adapter 4"]
Additional notes
- networkInterfaces is accepted by the backend config
- after restarting trident-controller, the runtime backend also shows:
networkInterfaces:
- Adapter 4
- despite that, new VolumeAttachments still contain:
p1: ""
p2: "192.168.2.50"
This suggests the problem is not only stale state from older volumes.
Questions
- Is this a known issue?
- Should networkInterfaces restrict published iSCSI portals to the selected interface only?
- Should the driver ignore empty/disabled portal entries returned by the backend?
- Is this behavior specific to qnap-nas?
- Would qnap-iscsi behave differently?
- What happens if multiple network-interfaces are configured on iSCSI-LUNs (QNAP) while having only one networkInterface configured? (Multi-Path or Single-Path?)
Steps to reproduce
Expected behavior
The published iSCSI portal metadata should contain only valid portals.
For a single intended storage interface/IP, we would expect something like:
At minimum, the driver should never publish an empty portal entry.
Actual behavior
The driver publishes invalid portal metadata like:
This happens for:
Relevant logs
Node-side staging logs show:
and:
Environment
QNAP CSI / Trident
Backend
Additional notes
This suggests the problem is not only stale state from older volumes.
Questions