mirror of
https://github.com/democratic-csi/democratic-csi.git
synced 2026-10-19 05:06:39 +02:00
better doc and handling of portals
Signed-off-by: Travis Glenn Hansen <travisghansen@yahoo.com>
This commit is contained in:
@@ -169,7 +169,9 @@ create /backstores/block/${iscsiName}
|
||||
volume_context = {
|
||||
node_attach_driver: "iscsi",
|
||||
portal: this.options.iscsi.targetPortal,
|
||||
portals: this.options.iscsi.targetPortals.join(","),
|
||||
portals: this.options.iscsi.targetPortals
|
||||
? this.options.iscsi.targetPortals.join(",")
|
||||
: "",
|
||||
interface: this.options.iscsi.interface,
|
||||
iqn: iqn,
|
||||
lun: 0,
|
||||
|
||||
@@ -1232,27 +1232,13 @@ class FreeNASDriver extends ControllerZfsSshBaseDriver {
|
||||
[FREENAS_ISCSI_ASSETS_NAME_PROPERTY_NAME]: iscsiName,
|
||||
});
|
||||
|
||||
// iscsiadm -m discovery -t st -p 172.21.26.81
|
||||
// iscsiadm -m node -T iqn.2011-03.lan.bitness.istgt:test -p bitness.lan -l
|
||||
|
||||
// FROM driver config? no, node attachment should have everything required to remain independent
|
||||
// portal
|
||||
// portals
|
||||
// interface
|
||||
// chap discovery
|
||||
// chap session
|
||||
|
||||
// FROM context
|
||||
// iqn
|
||||
// lun
|
||||
|
||||
volume_context = {
|
||||
node_attach_driver: "iscsi",
|
||||
portal: this.options.iscsi.targetPortal,
|
||||
portals: this.options.iscsi.targetPortals.join(","),
|
||||
portals: this.options.iscsi.targetPortals
|
||||
? this.options.iscsi.targetPortals.join(",")
|
||||
: "",
|
||||
interface: this.options.iscsi.interface || "",
|
||||
//chapDiscoveryEnabled: this.options.iscsi.chapDiscoveryEnabled,
|
||||
//chapSessionEnabled: this.options.iscsi.chapSessionEnabled,
|
||||
iqn: iqn,
|
||||
lun: 0,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user