Skip to content

Added Snapshot support for SyncIQ replicated volume#355

Merged
alikdell merged 27 commits into
mainfrom
usr/niranjan/synciq-vol-snapshot
Mar 5, 2025
Merged

Added Snapshot support for SyncIQ replicated volume#355
alikdell merged 27 commits into
mainfrom
usr/niranjan/synciq-vol-snapshot

Conversation

@niranjan-n1

@niranjan-n1 niranjan-n1 commented Feb 28, 2025

Copy link
Copy Markdown
Contributor

Description

This PR fixes the issue of snapshotting the replicated volume by directly fetching the Isipath from PV

GitHub Issues

List the GitHub issues impacted by this PR:

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

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
  • 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

vsc-definition

1

pvc

pv

vsc

array

@niranjan-n1 niranjan-n1 changed the title added function to update isiPath and added UT Updated isiPath for snapshot Feb 28, 2025
@niranjan-n1 niranjan-n1 self-assigned this Feb 28, 2025
@niranjan-n1 niranjan-n1 marked this pull request as ready for review March 5, 2025 09:47
@niranjan-n1 niranjan-n1 requested a review from atye as a code owner March 5, 2025 09:47
@niranjan-n1 niranjan-n1 changed the title Updated isiPath for snapshot Added Snapshot support for SyncIQ replicated volume Mar 5, 2025
Comment thread common/utils/utils_test.go
@github-actions

github-actions Bot commented Mar 5, 2025

Copy link
Copy Markdown
Contributor

Merging this branch will not change overall coverage

Impacted Packages Coverage Δ 🤖
github.com/dell/csi-powerscale/common/utils 0.00% (ø)
github.com/dell/csi-powerscale/service 0.00% (ø)

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/dell/csi-powerscale/common/utils/utils.go 0.00% (ø) 0 0 0
github.com/dell/csi-powerscale/service/controller.go 0.00% (ø) 0 0 0
github.com/dell/csi-powerscale/service/service.go 0.00% (ø) 0 0 0

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.

Changed unit test files

  • github.com/dell/csi-powerscale/common/utils/utils_test.go
  • github.com/dell/csi-powerscale/service/service_test.go
  • github.com/dell/csi-powerscale/service/step_defs_test.go

@satyakonduri satyakonduri requested a review from donatwork March 5, 2025 13:20
Comment thread service/features/controller_create_delete_snapshot.feature
| "volume2" | "volume2=_=_=19=_=_=System" | "existent_snapshot_name" | "already exists but is incompatible" |
| "volume2" | "volume2=_=_=19=_=_=System" | "existent_comp_snapshot_name" | "none" |
| "volume2" | "volume2=_=_=19=_=_=System" | "existent_comp_snapshot_name_longer_than_max" | "already exists but is incompatible" |
| "volume2" | "volume2=_=_=19" | "existent_comp_snapshot_name" | "cannot be split into tokens" |

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.

Is this a user visible message? Does not seem usable by an end user.

Comment thread service/service.go
Comment thread service/service.go

@santhoshatdell santhoshatdell 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.

LGTM. I see that restore/delete snapshot operations do not need any changes.

Please address Don's comments.

@alikdell alikdell merged commit fcbae0b into main Mar 5, 2025
@alikdell alikdell deleted the usr/niranjan/synciq-vol-snapshot branch March 5, 2025 21:02
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.

6 participants