-
Notifications
You must be signed in to change notification settings - Fork 91
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
CA-142451: Fail to report all LUNs advertised on targets sharing the sam... #207
Conversation
Coverage decreased (-0.0%) when pulling ad213c690e33bf299fc7566b44266fb1a4346afc on germanop:netapp-77 into bce4501 on xapi-project:master. |
…same IQN If a multicontroller array advertises its targets using the same IQN but different IPs and the LUNs in those targets are distinct, we are able to show only LUNs coming from the first IP address. The fix reinstates a line that was removed in commit 391bdf055dff in our old sm.hg repository. The purporse of the line is to first check that we have a valid active iscsi connection using the original pair IP,IQN. Only if it fails (it should not in my opinion) we fall back to other ip addresses. Signed-off-by: Germano Percossi <[email protected]>
util.SMlog("Path found: %s" % self.path) | ||
break | ||
self.address = self.tgtidx | ||
if not os.path.exists(self.path): |
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.
Could we move this functionality to a separate method, so that we could cover it with unit tests? What I am thinking about:
- commit 1 to apply a refactor - a simple extract method
- commit 2 to add Unit Tests for the existing functionality
- commit 3 to cover the new functionality.
What do you think?
Test with some basic configurations and it doesn't seem to introduce any regressions. Good to merge! |
This change did not come with unit tests, and it was merged, why did it happen? |
…e same IQN If a multicontroller array advertises its targets using the same IQN but different IPs and the LUNs in those targets are distinct, we are able to show only LUNs coming from the first IP address. The fix reinstates a line that was removed in commit 391bdf055dff in our old sm.hg repository. The purporse of the line is to first check that we have a valid active iscsi connection using the original pair IP,IQN. Only if it fails (it should not in my opinion) we fall back to other ip addresses. Signed-off-by: Germano Percossi <[email protected]> Reviewed-by: Chandrika Srinivasan <[email protected]> Imported-by: Siddharth Vinothkumar <[email protected]> GitHub: closes xapi-project#207 on xapi-project/sm (cherry picked from commit 66c89ea)
…e same IQN If a multicontroller array advertises its targets using the same IQN but different IPs and the LUNs in those targets are distinct, we are able to show only LUNs coming from the first IP address. The fix reinstates a line that was removed in commit 391bdf055dff in our old sm.hg repository. The purporse of the line is to first check that we have a valid active iscsi connection using the original pair IP,IQN. Only if it fails (it should not in my opinion) we fall back to other ip addresses. Signed-off-by: Germano Percossi <[email protected]> Reviewed-by: Chandrika Srinivasan <[email protected]> GitHub: closes xapi-project#207 on xapi-project/sm
@matelakat , unit tests are not mandatory. Morevoer, when it comes to fixes, especially (as in this case) for critical things, the golden |
…e same IQN If a multicontroller array advertises its targets using the same IQN but different IPs and the LUNs in those targets are distinct, we are able to show only LUNs coming from the first IP address. The fix reinstates a line that was removed in commit 391bdf055dff in our old sm.hg repository. The purporse of the line is to first check that we have a valid active iscsi connection using the original pair IP,IQN. Only if it fails (it should not in my opinion) we fall back to other ip addresses. Reviewed-by: Chandrika Srinivasan <[email protected]> GitHub: closes xapi-project#207 on xapi-project/sm
...e IQN
If a multicontroller array advertises its targets using the same IQN
but different IPs and the LUNs in those targets are distinct,
we are able to show only LUNs coming from the first IP address.
The fix reinstates a line that was removed in commit 391bdf055dff
in our old sm.hg repository.
Signed-off-by: Germano Percossi [email protected]