NAS-127348 / 24.10 / Add iSCSI test test_33_no_lun_zero #13693
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Now that SCST will allow REPORT LUNS to operate on an unsupported LUN (PR #223, present in EE), we can add a test to that effect, by creating a target that does not have an extent on LUN 0.
In
test_33_no_lun_zero
create a target with LUN 100 and 101 instead.Unfortunately
libiscsi
performs a TEST UNIT READY following a connect (which will fail), so we cannot use it to test connecting to a missing LUN 0.Instead enhance (and call) the existing
target_login_test
utility, adding an optionalcheck_surfaced_luns
parameter. This will using the test runner OS utility (e.g.iscsiadm
) to login the target, and then we will ensure that the expected LUNs are seen.Tested with HA and SINGLE.