Hello, I mentioned this before, but this patch must have been dropped when Dan committed storage stuff to CVS. In order for iSCSI login to work properly, you must properly --sendtargets before trying to login, otherwise your logins will fail. This patch just adds a --sendtargets command right before the login to make sure things succeed. Signed-off-by: Chris Lalancette <clalance@xxxxxxxxxx>
--- /home/boston/clalance/devel/libvirt--devel/src/storage_backend_iscsi.c 2008-02-13 13:48:32.497466000 -0500 +++ libvirt-0.4.0/src/storage_backend_iscsi.c 2008-02-11 17:19:35.000000000 -0500 @@ -143,6 +143,14 @@ static int virStorageBackendISCSIConnect "--targetname", pool->def->source.devices[0].path, action, NULL }; + const char *cmdsendtarget[] = { + ISCSIADM, "--mode", "discovery", "--type", "sendtargets", + "--portal", portal, NULL + }; + + if (virRun(conn, (char **)cmdsendtarget, NULL) < 0) + return -1; + if (virRun(conn, (char **)cmdargv, NULL) < 0) return -1;
-- Libvir-list mailing list Libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list