8181 // TODO (pshashan): Unify both csiNodeLockTimeout and csiKubeletTimeout
8282 csiKubeletTimeout = 110 * time .Second
8383 topologyLabels = make (map [string ]string )
84- iscsiUtils = utils .IscsiUtils
84+ iscsiUtils = iscsi .IscsiUtils
8585 fcpUtils = utils .FcpUtils
8686
8787 publishedISCSISessions , currentISCSISessions models.ISCSISessions
@@ -753,7 +753,7 @@ func (p *Plugin) nodeGetInfo(ctx context.Context) *models.Node {
753753 }
754754
755755 iscsiWWN := ""
756- iscsiWWNs , err := utils .GetInitiatorIqns (ctx )
756+ iscsiWWNs , err := iscsi .GetInitiatorIqns (ctx )
757757 if err != nil {
758758 Logc (ctx ).WithError (err ).Warn ("Problem getting iSCSI initiator name." )
759759 } else if len (iscsiWWNs ) == 0 {
@@ -1206,7 +1206,7 @@ func unstashIscsiTargetPortals(publishInfo *models.VolumePublishInfo, reqPublish
12061206}
12071207
12081208func (p * Plugin ) populatePublishedSessions (ctx context.Context ) {
1209- volumeIDs := utils .GetAllVolumeIDs (ctx , tridentDeviceInfoPath )
1209+ volumeIDs := iscsi .GetAllVolumeIDs (ctx , tridentDeviceInfoPath )
12101210 for _ , volumeID := range volumeIDs {
12111211 trackingInfo , err := p .nodeHelper .ReadTrackingInfo (ctx , volumeID )
12121212 if err != nil || trackingInfo == nil {
@@ -1221,7 +1221,7 @@ func (p *Plugin) populatePublishedSessions(ctx context.Context) {
12211221
12221222 publishInfo := & trackingInfo .VolumePublishInfo
12231223 if publishInfo .SANType != sa .NVMe {
1224- newCtx := context .WithValue (ctx , iscsi .SessionInfoSource , utils .SessionSourceTrackingInfo )
1224+ newCtx := context .WithValue (ctx , iscsi .SessionInfoSource , iscsi .SessionSourceTrackingInfo )
12251225 p .iscsi .AddSession (newCtx , & publishedISCSISessions , publishInfo , volumeID , "" , models .NotInvalid )
12261226 } else {
12271227 p .nvmeHandler .AddPublishedNVMeSession (& publishedNVMeSessions , publishInfo )
@@ -1232,7 +1232,7 @@ func (p *Plugin) populatePublishedSessions(ctx context.Context) {
12321232
12331233func (p * Plugin ) readAllTrackingFiles (ctx context.Context ) []models.VolumePublishInfo {
12341234 publishInfos := make ([]models.VolumePublishInfo , 0 )
1235- volumeIDs := utils .GetAllVolumeIDs (ctx , tridentDeviceInfoPath )
1235+ volumeIDs := iscsi .GetAllVolumeIDs (ctx , tridentDeviceInfoPath )
12361236 for _ , volumeID := range volumeIDs {
12371237 trackingInfo , err := p .nodeHelper .ReadTrackingInfo (ctx , volumeID )
12381238 if err != nil || trackingInfo == nil {
@@ -2553,7 +2553,7 @@ func (p *Plugin) selfHealingRectifySession(ctx context.Context, portal string, a
25532553 return fmt .Errorf ("failed to get LUNs for portal: %s; %w" , portal , err )
25542554 }
25552555
2556- if err = utils .InitiateScanForLuns (ctx , luns , publishInfo .IscsiTargetIQN ); err != nil {
2556+ if err = iscsi .InitiateScanForLuns (ctx , luns , publishInfo .IscsiTargetIQN ); err != nil {
25572557 Logc (ctx ).WithError (err ).Error ("Could not initiate scan for some LUNs." )
25582558 return fmt .Errorf ("failed to initiate scan for LUNs in portal: %s; %w" , portal , err )
25592559 }
@@ -2576,7 +2576,7 @@ func (p *Plugin) selfHealingRectifySession(ctx context.Context, portal string, a
25762576func (p * Plugin ) deprecatedIgroupInUse (ctx context.Context ) bool {
25772577 volumeTrackingInfo , _ := p .nodeHelper .ListVolumeTrackingInfo (ctx )
25782578 for id , info := range volumeTrackingInfo {
2579- if ! utils .IsPerNodeIgroup (info .IscsiIgroup ) {
2579+ if ! iscsi .IsPerNodeIgroup (info .IscsiIgroup ) {
25802580 Logc (ctx ).WithFields (LogFields {
25812581 "volumeID" : id ,
25822582 "lunID" : info .IscsiLunNumber ,
0 commit comments