You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems like iscsi is being properly set up by the plugin, but the plugin can't do anything with it once it's set up. iscsiadm in the container is wrapped to force a chroot, so my assumption is that the container should be able to see all of the iscsi sessions the host can see. At one point, I had all of the capabilities that @olljanat mentioned in #368 in the plugin config, but that didn't change anything, so I'm back to just CAP_SYS_ADMIN.
iscsiadm -m discoverydb -P1 on the host shows No targets found.
iscsiadm -m session on the host returns No active sessions.
lsblk doesn't show any additional disks
docker volume create --driver csi-freenas-iscsi [...] nginx-iscsi does its magic and I see a zvol in TrueNAS.
docker service create --mount type=cluster,src=nginx-iscsi [...] hangs forever.
After creating the service:
iscsiadm -m discoverydb -P1 both inside and outside the plugin container shows the correct target
iscsiadm -m session on the host shows a session but within the container it shows No active sessions
lsblk now shows /dev/sdb both inside and outside the plugin container
I don't think this has anything to do with freenas-iscsi.yaml since zvols and iscsi targets are dynamically created and removed by the plugin without an issue. (Except for one hangup where the iscsi session isn't cleaned up by the plugin container since it can't see it. Once the sessions are manually logged out on the host, volumes are automatically removed by the plugin.)
Side note: I built a plugin for freenas-nfs, filled out the sample configuration yaml and was able to create and mount an nfs share without any issues. Super cool!
The text was updated successfully, but these errors were encountered:
Even with "ipchost": true" in plugin's config.json, I still see rpc error: code = Unknown desc = unable to find iscsi session for iqn: [...] in the docker logs. The iscsi target and session is still being created successfully on the host, which is the behavior that's throwing me off here.
It seems like iscsi is being properly set up by the plugin, but the plugin can't do anything with it once it's set up.
iscsiadm
in the container is wrapped to force a chroot, so my assumption is that the container should be able to see all of the iscsi sessions the host can see. At one point, I had all of the capabilities that @olljanat mentioned in #368 in the plugin config, but that didn't change anything, so I'm back to justCAP_SYS_ADMIN
.Here's what I'm doing to get to where I'm at:
iscsiadm -m discoverydb -P1
on the host showsNo targets found.
iscsiadm -m session
on the host returnsNo active sessions.
lsblk
doesn't show any additional disksdocker volume create --driver csi-freenas-iscsi [...] nginx-iscsi
does its magic and I see a zvol in TrueNAS.docker service create --mount type=cluster,src=nginx-iscsi [...]
hangs forever.iscsiadm -m discoverydb -P1
both inside and outside the plugin container shows the correct targetiscsiadm -m session
on the host shows a session but within the container it showsNo active sessions
lsblk
now shows/dev/sdb
both inside and outside the plugin containerI don't think this has anything to do with
freenas-iscsi.yaml
since zvols and iscsi targets are dynamically created and removed by the plugin without an issue. (Except for one hangup where the iscsi session isn't cleaned up by the plugin container since it can't see it. Once the sessions are manually logged out on the host, volumes are automatically removed by the plugin.)Here's the plugin config:
Side note: I built a plugin for freenas-nfs, filled out the sample configuration yaml and was able to create and mount an nfs share without any issues. Super cool!
The text was updated successfully, but these errors were encountered: