Skip to content

Commit 751dabf

Browse files
authored
Adds extra logging for chap gathering during self-healing
1 parent 9d1f5f0 commit 751dabf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

frontend/csi/node_server.go

+4
Original file line numberDiff line numberDiff line change
@@ -2640,8 +2640,12 @@ func (p *Plugin) updateCHAPInfoForSessions(
26402640
if errs != nil {
26412641
Logc(cancelCtx).WithError(errs).Error("Failed to get updated CHAP info for portal(s).")
26422642
return errs
2643+
} else if len(iqnToCHAP) == 0 {
2644+
Logc(cancelCtx).Debug("No outdated CHAP info found in published sessions.")
2645+
return nil
26432646
}
26442647

2648+
Logc(cancelCtx).Debug("Updated CHAP info for published sessions.")
26452649
return nil
26462650
}
26472651

0 commit comments

Comments
 (0)