Skip to content
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

Closed
wants to merge 1 commit into from

Conversation

germanop
Copy link
Contributor

...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]

@coveralls
Copy link

Coverage Status

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]>
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.0%) when pulling 2fd6d12 on germanop:netapp-77 into bce4501 on xapi-project:master.

util.SMlog("Path found: %s" % self.path)
break
self.address = self.tgtidx
if not os.path.exists(self.path):
Copy link
Contributor

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?

@chandrikas
Copy link
Contributor

Test with some basic configurations and it doesn't seem to introduce any regressions. Good to merge!

@germanop germanop closed this in 66c89ea Aug 15, 2014
@matelakat
Copy link
Contributor

This change did not come with unit tests, and it was merged, why did it happen?

siddharthv pushed a commit to siddharthv/sm that referenced this pull request Aug 18, 2014
…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)
fquesnel pushed a commit to fquesnel/sm that referenced this pull request Aug 21, 2014
…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
@germanop
Copy link
Contributor Author

@matelakat , unit tests are not mandatory.
It is something we wanna have to make our development more robust but we never agreed to have
them as a mandatory thing.

Morevoer, when it comes to fixes, especially (as in this case) for critical things, the golden
rule is "just fix it".
Taking the chance to add more code (without considering the unit tests) it is not how we do things.
This fix is one line and it will be backported as it is for other 2 releases.
That's why @chandrikas closed the ticket once the review was OK.

andrey-podko pushed a commit to andrey-podko/sm that referenced this pull request Aug 16, 2022
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants