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

Iscsi offload changes #136

Merged
merged 15 commits into from
Nov 12, 2024
Merged

Iscsi offload changes #136

merged 15 commits into from
Nov 12, 2024

Conversation

teclator
Copy link
Contributor

@teclator teclator commented Oct 30, 2024

Problem

Bugzilla: bsc#1231385

In the "iSCSI initiator" dialog, the offload card was not displayed correctly. Instead of bnx2i, the dialog showed "default (TCP)". I'm not sure what would have happened if I hadn't changed this to bnx2i.

In the "iBFT" dialog, the bnx2i transport was displayed correctly.

Solution

The selection of the offload card is relevant just in case we wanted to do some discover using that specific interface.

When a different offload card is selected it calls the iscsi_offload.sh script and select the related iscsi_iface to be used by discovery commands.

But the point is that the configuration is already done during in the initialization, so, doing it on selection doesn’t change anything at all.

What is even more important, the login and configuration most of the time is done automatically by firmware and the iscsi_offload script just creates redundant iscsi iface files… therefore, after some discussion it has been decided we could get rid of the script relying on the iscsiadm -m fw -l and iscsiadm -m discovery -t fw calls.

Out of the scope (to improve in the future)

During the review and testing we found that there are some behavior / bugs that could be addressed but not as part of this bug:

  • The iface selection should allow a multiselection.
  • The iBFT tab shows only the configuration of one iface instead of the whole configuration.

Testing

  • Tested manually

Screenshots

image

@coveralls
Copy link

coveralls commented Oct 31, 2024

Pull Request Test Coverage Report for Build 11739629419

Details

  • 127 of 183 (69.4%) changed or added relevant lines in 5 files are covered.
  • 24 unchanged lines in 4 files lost coverage.
  • Overall coverage decreased (-1.6%) to 28.866%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/clients/inst_iscsi-client.rb 0 2 0.0%
src/include/iscsi-client/helps.rb 0 4 0.0%
src/include/iscsi-client/dialogs.rb 0 6 0.0%
src/include/iscsi-client/widgets.rb 0 15 0.0%
src/modules/IscsiClientLib.rb 127 156 81.41%
Files with Coverage Reduction New Missed Lines %
src/include/iscsi-client/dialogs.rb 1 0.0%
src/include/iscsi-client/widgets.rb 1 0.0%
src/clients/inst_iscsi-client.rb 1 0.0%
src/modules/IscsiClientLib.rb 21 66.96%
Totals Coverage Status
Change from base Build 11122568581: -1.6%
Covered Lines: 728
Relevant Lines: 2522

💛 - Coveralls

@teclator teclator marked this pull request as ready for review October 31, 2024 11:48
@teclator teclator requested a review from ancorgs November 4, 2024 08:50
@teclator teclator requested a review from ancorgs November 8, 2024 11:19
Copy link
Contributor

@ancorgs ancorgs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is certainly far from being a trivial pull request. Generally it LGTM. I hope we are not overlooking something (neither in the code or at iSCSI behavior).

@teclator teclator merged commit 739cf7b into SLE-15-SP6 Nov 12, 2024
10 checks passed
@teclator teclator deleted the iscsi_offload_changes branch November 12, 2024 09:57
@yast-bot
Copy link
Contributor

✔️ Internal Jenkins job #8 successfully finished
✔️ Created IBS submit request #353343

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.

5 participants