The iscsi-initiator interface allows snaps to act as iSCSI initiators, enabling them to discover, connect to, and manage iSCSI targets for block storage access. The interface loads kernel modules required for iSCSI operations including iscsi_tcp for transport and target_core_mod for LIO functionality.
Interface documentation:
See Interface management and Supported interfaces for further details on how interfaces are used.
Developer details
Auto-connect: yes
Super-privileged: yes
Code examples
The test code can be found in the snapd repository:
https://github.com/snapcore/snapd/blob/master/interfaces/builtin/iscsi_initiator_test.go
The source code for the interface is in the snapd repository:
https://github.com/snapcore/snapd/blob/master/interfaces/builtin/iscsi_initiator.go