mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-14 01:01:27 +00:00
Transport Target mode server need to able to function when running in containerized form factor in a secure and multi-tenant platform. Solution: Such applications when containerized can run in any container based platform such as Kubernetes/OpenShift or a custom one. These applications are generic in nature and all they need is access to SCST user storage device driver (/dev/scst_user). The security policy of the platform may not allow these applications to manage Fibre Channel (FC) port and /sys file-system. The platform, however, can manage the FC ports on behalf of these applications. The containerized applications can remain generic in nature and run on any containerized platforms. The sequence of operations would be 1. The platform converts the desired FC ports to target mode prior to starting the containerized application 2. The application does device registration using exported the SCST user storage device driver 3. The platform, at this point, asynchronously adds FC port LUNs to the user device registered by the application. As the application inside the container can auto or manual restart asynchronously, the platform would add the LUNs every time the application does device registration. Patch description: The SCST event mechanism is leveraged to achieve the asynchronous LUN additions when application does device registration. The current set of SCST events is extended to send a new event whenever there is a virtual user device registration happens. The platform can watch for the specific event and make business logic decisions to allow target mode applications function securely. By extending the set of event, the SCST module will be friendly to containerized applications and platforms. Signed-off-by: Vikas Goel <vikas.goel@veritas.com> git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9210 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This is test/demo application for SCST events subsystem. For more information about this subsystem, see scst_event.h file.