-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PowerStore CSI driver Support for the multiple interface for iSCSI discovery + Increased UT Coverage #434
Conversation
if err != nil { | ||
log.Error("couldn't discover targets") | ||
continue | ||
} | ||
break | ||
} | ||
log.Debugf("Portal %s is not rechable from the node", address.Portal) | ||
log.Debugf("Portal is not rechable from the node") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason to not print the portal in the log?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ipAddress will not have any value populated at this line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@karthikk92 Could you print 'address.Portal' here.? It will be helpful in debugging.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add some more to the description regarding what was changed. A summary of changes perhaps?
cmd/csi-powerstore/main.go
Outdated
Controller: controllerService, | ||
Identity: identityService, | ||
Node: nodeService, | ||
Interceptors: interList, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
interList is not a good name, inter could be expanded into many things; interceptor, interface for example.
pkg/array/array.go
Outdated
@@ -109,7 +119,7 @@ func (s *Locker) UpdateArrays(configPath string, fs fs.Interface) error { | |||
return fmt.Errorf("can't get config for arrays: %s", err.Error()) | |||
} | |||
s.SetArrays(arrays) | |||
IPToArray = matcher | |||
updateIPToArray(matcher) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are not really updating, you are setting so should start the function with set*.
pkg/node/node.go
Outdated
var iscsiTargets []goiscsi.ISCSITarget | ||
for _, address := range infoList { | ||
// first check if this portal is reachable from this machine or not | ||
if ReachableEndPoint(address.Portal) { | ||
ipAddressList := strings.Split(address.Portal, ":") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We may not yet support IPv6 but what's the impact here? is using colons the right choice of separator?
var iscsiTargets []goiscsi.ISCSITarget | ||
for _, address := range infoList { | ||
// first check if this portal is reachable from this machine or not | ||
if ReachableEndPoint(address.Portal) { | ||
ipAddressList := strings.Split(address.Portal, ":") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here for use of colons. You could encapsulate this in a common utility function.
30e2882
@@ -356,7 +363,7 @@ func (s *Service) populateTargetsInCache(array *array.PowerStoreArray) { | |||
} | |||
break | |||
} | |||
log.Debugf("Portal %s is not rechable from the node", address.Portal) | |||
log.Debugf("Portal is not rechable from the node") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@karthikk92 Could you print 'address.Portal' here.? It will be helpful in debugging.
Description
Bug Fixes:
Refactoring and Unit Tests:
Concurrency and Safety:
GitHub Issues
List the GitHub issues impacted by this PR:
Checklist:
How Has This Been Tested?