Per Jessen
I'm trying to build a storage cluster, to begin with a test setup. I'm using leap423, targetcli, Hawk, I have a drbd device with LVM on top.
Hi Per, This looks like a possible bug indeed. Would you mind filing a pull request upstream [1] with your patch? That would be the best place to get the patch evaluated. Cheers, Kristoffer [1]: https://github.com/ClusterLabs/resource-agents/pulls
When I try to start iSCSITarget:
2018-03-27T18:03:59+02:00 office31 iSCSITarget(t31)[15134]: INFO: Parameter auto_add_default_portal is now 'false'. 2018-03-27T18:04:00+02:00 office31 iSCSITarget(t31)[15145]: INFO: Created target iqn.2018-01.net.hostsuisse:server000816. Created TPG 1. 2018-03-27T18:04:00+02:00 office31 iSCSITarget(t31)[15156]: ERROR: This Target already exists in configFS 2018-03-27T18:04:02+02:00 office31 iSCSITarget(t31)[15223]: INFO: Deleted Target iqn.2018-01.net.hostsuisse:server000816.
The error is from rtslib, but it looks like the target creation is being attempted twice??
t31 is a member of a group 'klop99' which contains:
lvm start iscsitarget iscsilogicalunit
I believe the problem is in:
/usr/lib/ocf/resource.d/heartbeat/iSCSITarget
Patch attached.
-- Per Jessen, Zürich (7.2°C) http://www.cloudsuisse.com/ - your owncloud, hosted in Switzerland.
--- a/iSCSITarget 2017-05-17 23:07:09.000000000 +0200 +++ b/iSCSITarget 2018-03-27 21:56:41.064935364 +0200 @@ -346,7 +346,7 @@ IFS=':' read -a sep_portal <<< "$portal" ocf_run targetcli /iscsi/${OCF_RESKEY_iqn}/tpg1/portals create "${sep_portal[0]}" "${sep_portal[1]}" || exit $OCF_ERR_GENERIC else - ocf_run targetcli /iscsi create ${OCF_RESKEY_iqn} || exit $OCF_ERR_GENERIC + ocf_run targetcli /iscsi/${OCF_RESKEY_iqn}/tpg1/portals create || exit $OCF_ERR_GENERIC fi done # in lio, we can set target parameters by manipulating
-- // Kristoffer Grönlund // kgronlund@suse.com -- To unsubscribe, e-mail: opensuse-ha+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-ha+owner@opensuse.org