K8s cant mount new iSCSI volumes

Asking for help? Comment out what you need so we can get more information to help you!

Cluster information:

Kubernetes version: 1.21.5
Cloud being used: (bare-metal)
Installation method: not sure
Host OS: CentOS
CNI and version: how can i check it?
CRI and version: how can i check it?

Hello team, we are facing problems to mount new volumes at TrueNAS via iSCSI sharing.
Logs are:
Apr 8 00:14:14 truenas 1 2022-04-08T00:14:14.147602-03:00 truenas.company,.com.br ctld 37543 - - 172.30.0.88 (iqn.1994-05.com.redhat:23c3b778d047): requested target "iqn.2^Cnated with exit status 1
Apr 8 00:14:18 truenas 1 2022-04-08T00:14:18.454092-03:00 truenas.company,.com.br ctld 37563 - - 172.30.0.87 (iqn.1994-05.com.redhat:23c3b778d047): error returned from CTL iSCSI handoff request: cfiscsi_ioctl_handoff: target not found; dropping connection
Apr 8 00:14:18 truenas 1 2022-04-08T00:14:18.454242-03:00 truenas.company,.com.br ctld 37562 - - 172.30.0.87 (iqn.1994-05.com.redhat:23c3b778d047): error returned from CTL iSCSI handoff request: cfiscsi_ioctl_handoff: target not found; dropping connection
Apr 8 00:14:18 truenas 1 2022-04-08T00:14:18.455689-03:00 truenas.company,.com.br ctld 1234 - - child process 37563 terminated with exit status 1
Apr 8 00:14:18 truenas 1 2022-04-08T00:14:18.455879-03:00 truenas.company,.com.br ctld 1234 - - child process 37562 terminated with exit status 1
Apr 8 00:14:19 truenas 1 2022-04-08T00:14:19.081316-03:00 truenas.company,.com.br ctld 37564 - - 172.30.0.83 (iqn.1994-05.com.redhat:23c3b778d047): error returned from CTL iSCSI handoff request: cfiscsi_ioctl_handoff: target not found; dropping connection
Apr 8 00:14:19 truenas 1 2022-04-08T00:14:19.082553-03:00 truenas.company,.com.br ctld 1234 - - child process 37564 terminated with exit status 1
Apr 8 00:14:19 truenas 1 2022-04-08T00:14:19.176426-03:00 truenas.company,.com.br ctld 37565 - - 172.30.0.88 (iqn.1994-05.com.redhat:23c3b778d047): error returned from CTL iSCSI handoff request: cfiscsi_ioctl_handoff: target not found; dropping connection
Apr 8 00:14:19 truenas 1 2022-04-08T00:14:19.176924-03:00 truenas.company,.com.b

pr 8 11:30:42 truenas 1 2022-04-08T11:30:42.040104-03:00 truenas.company,.com.br ctld 1234 - - no LUNs defined for target “iqn.2005-10.org.freenas.ctl:pvc-b7aa8dfd-a4ce-4cfc-87c7-2e6b0a6ceb80”
Apr 8 11:30:42 truenas 1 2022-04-08T11:30:42.040250-03:00 truenas.company,.com.br ctld 1234 - - no LUNs defined for target “iqn.2005-10.org.freenas.ctl:ricardo-target”
Apr 8 11:30:42 truenas 1 2022-04-08T11:30:42.063286-03:00 truenas.company,.com.br ctld 1234 - - LUN modification warning: error opening /dev/zvol/tank/labs/vols/pvc-3540a1a0-5e57-49dd-92b5-acd2e390b42f: 2
Apr 8 11:30:42 truenas 1 2022-04-08T11:30:42.063530-03:00 truenas.company,.com.br ctld 1234 - - LUN modification warning: error opening /dev/zvol/tank/labs/vols/pvc-faa52efb-b624-4ecc-a90c-7f35429165f8: 2
Apr 8 11:30:42 truenas 1 2022-04-08T11:30:42.064142-03:00 truenas.company,.com.br ctld 1234 - - LUN modification warning: error opening /dev/zvol/tank/labs/vols/pvc-252f06be-8033-4955-ae11-576f1f851642: 2
Apr 8 11:30:52 truenas 1 2022-04-08T11:30:52.827083-03:00 truenas.company,.com.br ctld 1234 - - no LUNs defined for target “iqn.2005-10.org.freenas.ctl:pvc-b7aa8dfd-a4ce-4cfc-87c7-2e6b0a6ceb80”
Apr 8 11:30:52 truenas 1 2022-04-08T11:30:52.850159-03:00 truenas.company,.com.br ctld 1234 - - LUN modification warning: error opening /dev/zvol/tank/labs/vols/pvc-3540a1a0-5e57-49dd-92b5-acd2e390b42f: 2
Apr 8 11:30:52 truenas 1 2022-04-08T11:30:52.850393-03:00 truenas.company,.com.br ctld 1234 - - LUN modification warning: error opening /dev/zvol/tank/labs/vols/pvc-faa52efb-b624-4ecc-a90c-7f35429165f8: 2
Apr 8 11:30:52 truenas 1 2022-04-08T11:30:52.851149-03:00 truenas.company,.com.br ctld 1234 - - LUN modification warning: error opening /dev/zvol/tank/labs/vols/pvc-252f06be-8033-4955-ae11-576f1f851642: 2

Can anyone help us? Thanks

Solved. It was a FreeBSD LUN limitation.

References:
(1) Other - ctld and ctladm | The FreeBSD Forums
ctl(4) (freebsd.org)

:gear: D12836 ctl: Make max_luns and max_ports tunable variables instead of hardcoded defines. (freebsd.org)