Skip to content

PowerScale Create Snapshot fix: Get isiPath from source volume's export path, thus removing X_CSI_VOL_PREFIX env variable#1012

Closed
santhoshatdell wants to merge 0 commit into
mainfrom
create-snapshot-pscale
Closed

PowerScale Create Snapshot fix: Get isiPath from source volume's export path, thus removing X_CSI_VOL_PREFIX env variable#1012
santhoshatdell wants to merge 0 commit into
mainfrom
create-snapshot-pscale

Conversation

@santhoshatdell

@santhoshatdell santhoshatdell commented Jun 19, 2025

Copy link
Copy Markdown
Contributor

Description

For the PowerScale CreateSnapshot call, the required isiPath is now retrieved from the source volume's export path like it is done in the replication code. So, there will be no need to get PV's 'Path' value or remove any prefix. Hence, reverting the changes made in previous PR #974

Related PRs:
dell/csi-powerscale#406
dell/helm-charts#753
dell/csm-docs#1573

GitHub Issues

List the GitHub issues impacted by this PR:

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

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 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
  • I have maintained backward compatibility
  • I have executed the relevant end-to-end test scenarios

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

  • With 2.14 sample and 2.14 driver image:
    • tested create snapshot with "X_CSI_VOL_PREFIX=csivol" (default).
    • tested create snapshot with "X_CSI_VOL_PREFIX=k8s".
  • With 2.15 sample and driver image with fix: (Operator is not yet updated with 2.15 configVersion, so used it as 2.14)
    • tested create snapshot with "volume-name-prefix=csivol" (default).
    • tested create snapshot with "volume-name-prefix=k8s".
    • tested create snapshot for PV that was created with different prefix.
  • For detailed driver test results, please refer PR Create Snapshot fix: Get isiPath from source volume's export path csi-powerscale#406

niranjan-n1
niranjan-n1 previously approved these changes Jun 20, 2025
@santhoshatdell santhoshatdell marked this pull request as draft June 20, 2025 16:48
@santhoshatdell santhoshatdell marked this pull request as ready for review June 20, 2025 21:52
niranjan-n1
niranjan-n1 previously approved these changes Jun 23, 2025
@github-actions

Copy link
Copy Markdown
Contributor

Merging this branch will not change overall coverage

Impacted Packages Coverage Δ 🤖
github.com/dell/csm-operator/pkg/drivers 97.17% (ø)

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/dell/csm-operator/pkg/drivers/powerscale.go 98.92% (ø) 93 92 1

Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code.

@santhoshatdell

Copy link
Copy Markdown
Contributor Author

Changes are ported as fresh PR - #1018

@santhoshatdell santhoshatdell deleted the create-snapshot-pscale branch June 23, 2025 15:37
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.

2 participants