Open acidrop opened 10 months ago
Thank you for the report. To be honest, tgt was not really a big consideration when implementing this feature. The main intent was to allow usage with scst.
Of course, it should also work just as well with tgt. I'll investigate.
Tested it with scst on Ubuntu 22.04 this time, and there seem to be issues with that too. I see the following line in the logs...
ocf-rs-wrapper[5165]: ocf-exit-reason:Unsupported iSCSI target implementation "scst"
modinfo scst|head
filename: /lib/modules/5.19.0-50-generic/updates/dkms/scst.ko
version: 3.7.0
description: SCSI target core
license: GPL
author: Vladislav Bolkhovitin
srcversion: 77B4564098FA1279F50855C
depends: dlm
retpoline: Y
name: scst
vermagic: 5.19.0-50-generic SMP preempt mod_unload modversions
dpkg -l|grep resource-agents
ii resource-agents 1:4.7.0-1ubuntu7.2 all Transitional package for the resource-agents
ii resource-agents-base 1:4.7.0-1ubuntu7.2 all Cluster Resource Agents curated by Ubuntu
ii resource-agents-common 1:4.7.0-1ubuntu7.2 amd64 Common files used by the Cluster Resource Agents
ii resource-agents-extra 1:4.7.0-1ubuntu7.2 amd64 Cluster Resource Agents
Attaching logs...
That I can probably explain.
scst support was only very recently added to resource-agents, with this pull request to be precise: https://github.com/ClusterLabs/resource-agents/pull/1890
That was only released in version 4.13.0 of resource-agents, so you should make sure you are running that version.
That I can probably explain.
scst support was only very recently added to resource-agents, with this pull request to be precise: ClusterLabs/resource-agents#1890
That was only released in version 4.13.0 of resource-agents, so you should make sure you are running that version.
Thanks for this. Sorry for drifting to a different subject from the original, but I installed v4.13.0 of resource-agents and this time it's showing a different error.. Do you think this that this is some kind of misconfiguration on my end ? scst kernel module seems to be loaded. LIO target (i.e without using --implementation argument) is working fine by the way, even with v4.13.0.
lsmod|grep scst
scst 3579904 0
dlm 237568 1 scst
Nov 07 14:02:43 pve1 ocf-rs-wrapper[47220]: Nov 07 14:02:43 ERROR: Collecting current configuration: done. -> Making requested changes. -> Creating target 'iqn.2019-08.com.linbit:iscsi-lu
n2' for driver 'iscsi': done. -> Done. WARNING: Received the following error: No such driver exists. All done.
Nov 07 14:02:43 pve1 ocf-rs-wrapper[47220]: Nov 07 14:02:43 ERROR: Collecting current configuration: done. -> Making requested changes. WARNING: Received the following error: targetAttrib
utes(): Driver 'iscsi' is not available -> Done. All done.
Nov 07 14:02:43 pve1 ocf-rs-wrapper[47220]: Nov 07 14:02:43 ERROR: Collecting current configuration: done. -> Making requested changes. -> Adding new group 'allowed' to driver/target 'isc
si/iqn.2019-08.com.linbit:iscsi-lun2': done. FATAL: Received the following error: No such driver exists.
Nov 07 14:02:43 pve1 ocf-rs-wrapper[47220]: Nov 07 14:02:43 INFO: Collecting current configuration: done. -> Making requested changes. WARNING: Received the following error: targetAttribu
tes(): Driver 'iscsi' is not available -> Done. All done.
Nov 07 14:02:43 pve1 ocf-rs-wrapper[47220]: /usr/lib/ocf/resource.d/heartbeat/iSCSITarget: line 430: /sys/kernel/scst_tgt/targets/iscsi/enabled: No such file or directory
Nov 07 14:02:43 pve1 ocf-rs-wrapper[47218]: ERROR [ocf_rs_wrapper] iSCSITarget:target_iscsi\x2dlun2,s-a-m,start: FAILED with exit code 7
You need to modprobe scst
, iscsi-scst
, and scst_vdisk
. Also, you need to start the iscsi-scstd
userspace daemon.
Should probably document that somewhere... :upside_down_face:
I'm testing linstor-gateway v1.3.0 and the new feature for iscsi tgt implementation, however I'm unable to get it working. Another user seem to have reported a similar issue in drbd-user mailing list...
https://lists.linbit.com/pipermail/drbd-user/2023-October/026493.html
Please also see attached log file.
linstor-gateway iscsi create iqn.2019-08.com.linbit:iscsi-lun1 10.10.3.10/24 10G --resource-group iscsi-group --implementation tgt
Resource is moving between the nodes, but never starts properly. HA VIP also does not respond to ping requests.
lgtgterr.log