fix #254: iscsi: add support for multipath targets

With this patch Proxmox now tries to login to all discovered portals
in case some of them are not logged yet.
In case of multipath configuration when initially configured portal is
missing for some reason Proxmox don't lose iSCSI storage now and can
successfully restore iSCSI connection between reboots.

Signed-off-by: Yuri Konotopov <ykonotopov@gnome.org>
Reviewed-By: Dominik Csapak <d.csapak@proxmox.com>
Tested-By: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Yuri Konotopov via pve-devel
2023-10-23 21:45:08 +04:00
committed by Thomas Lamprecht
parent 9bd1c95a71
commit 90c1b10cc5
2 changed files with 87 additions and 28 deletions

View File

@ -1445,7 +1445,7 @@ sub scan_iscsi {
die "unable to parse/resolve portal address '${portal_in}'\n";
}
return PVE::Storage::ISCSIPlugin::iscsi_discovery($portal);
return PVE::Storage::ISCSIPlugin::iscsi_discovery([ $portal ]);
}
sub storage_default_format {