Skip to content

Updates scsi rescan to use the LUN number in rescan command#54

Merged
delldubey merged 1 commit into
mainfrom
lun_rescan
Jul 18, 2024
Merged

Updates scsi rescan to use the LUN number in rescan command#54
delldubey merged 1 commit into
mainfrom
lun_rescan

Conversation

@delldubey

Copy link
Copy Markdown
Contributor

Description

This PR:

  • This updates the rescan logic in findHCTLsForFCHBA function to use LUN number instead of '-', which scans for all the luns on a host.
  • The LUN number is primarily part of NodeStageRequest.
  • This saves us the issue of having a ghost/invalid sd* disk post NodeUnstage and there is a rescan for new devices at the same time.

GitHub Issues

List the GitHub issues impacted by this PR:

GitHub Issue #
https://github.com/dell/csm/issues/1379

Checklist:

  • I have performed a self-review of my own code to ensure there are no formatting, vetting, linting, or security issues
  • I have verified that new and existing unit tests pass locally with my changes
  • I have not allowed coverage numbers to degenerate
  • I have maintained at least 90% code coverage
  • I have commented on my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • Backward compatibility is not broken

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Please also list any relevant details for your test configuration

  • Unit test
  • Cluster test

@donatwork donatwork left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We can definitely do some regression testing with PowerStore.

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