The ironic_python_agent.extensions.iscsi Module

class ironic_python_agent.extensions.iscsi.ISCSIExtension(agent=None)[source]

Bases: ironic_python_agent.extensions.base.BaseAgentExtension

start_iscsi_target(**command_params)[source]

Expose the disk as an ISCSI target.

Parameters:
  • iqn – IQN for iSCSI target. If None, a new IQN is generated.
  • wipe_disk_metadata – if the disk metadata should be wiped out before the disk is exposed.
  • portal_port – customized port for iSCSI port, can be None.
Returns:

a dict that provides IQN of iSCSI target.