pyanaconda.modules.storage.iscsi.iscsi_interface

Classes

ISCSIDiscoverTaskInterface

The interface for iSCSI discovery task.

ISCSIInterface

DBus interface for the iSCSI module.

Module Contents

class pyanaconda.modules.storage.iscsi.iscsi_interface.ISCSIDiscoverTaskInterface[source]

Bases: pyanaconda.modules.common.task.TaskInterface

The interface for iSCSI discovery task.

Returns a list of Node structures representing discovered nodes.

static convert_result(value)[source]

Convert the value of the result.

Convert the value into a variant.

Parameters:

value – a value of the result

Returns:

a variant with the value

Raises:

NoResultError by default

class pyanaconda.modules.storage.iscsi.iscsi_interface.ISCSIInterface[source]

Bases: pyanaconda.modules.common.base.KickstartModuleInterfaceTemplate

DBus interface for the iSCSI module.

connect_signals()[source]

Connect the signals.

IsSupported()[source]

Is this module supported?

Return type:

Bool

property Initiator: Str[source]

ISCSI initiator name.

Return type:

Str

CanSetInitiator()[source]

Can the iSCSI initator be set?

Initiator name can be changed when no sessions are active.

Return type:

Bool

GetInterfaceMode()[source]

Get the mode of interface used for iSCSI operations.

The mode is chosen during discovery of nodes. Once there there are active nodes logged in using particular mode, the mode can’t be changed.

Return values: IscsiInterfacesMode

Return type:

Str

DiscoverWithTask(portal, credentials, interfaces_mode)[source]

Discover an iSCSI device.

Parameters:
  • portal (Structure) – the portal information

  • credentials (Structure) – the iSCSI credentials

  • interfaces_mode (Str) – required mode specified by IscsiInterfacesMode string value

Returns:

a DBus path to a task

Return type:

ObjPath

LoginWithTask(portal, credentials, node)[source]

Login into an iSCSI node discovered on a portal.

Parameters:
  • portal (Structure) – the portal information

  • credentials (Structure) – the iSCSI credentials

  • node (Structure) – the node information

Returns:

a DBus path to a task

Return type:

ObjPath

IsNodeFromIbft(node)[source]

Is the node configured from iBFT table?.

Parameters:

node (Structure) – the node information

Return type:

Bool

GetInterface(iscsi_iface)[source]

Get network interface backing iscsi iface.

Parameters:

iscsi_iface (Str) – name of an iscsi interface (eg iface0)

Returns:

specification of interface backing the iscsi iface (eg ens3) or “” if there is none

Return type:

Str

GetDracutArguments(node)[source]

Get dracut arguments for iSCSI device backed by the node.

Parameters:

node (Structure) – the node information

Returns:

a list of dracut arguments

Return type:

List[Str]

FIXME: This is just a temporary method.

WriteConfiguration()[source]

Write the configuration to sysroot.

FIXME: This is just a temporary method.