-
Notifications
You must be signed in to change notification settings - Fork 259
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
fix: correct snapshot path when using share parameter #461
fix: correct snapshot path when using share parameter #461
Conversation
Skipping CI for Draft Pull Request. |
/test all |
/cc @andyzhangx keeping as a draft for now, ptal at #459 (comment) |
let's fix this issue in master branch first, and for the existing issue, we could add a guide asking user to migrate. |
ack, in that case, the PR should be addressing the bug and is ready for review, thanks @andyzhangx! I will follow-up with a migration guide, I think what @saif-88 described in #459 (comment) is feasible. |
@wozniakjan thanks, if it cannot be automated, then provide the doc is ok assuming very few customers are using this snapshot feature on the new version. And I will publish a new release ASAP to make the impact as little as possible. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: andyzhangx, wozniakjan The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@@ -742,10 +742,10 @@ func TestCopyVolume(t *testing.T) { | |||
uuid: "dst-pv-name", | |||
}, | |||
prepare: func() error { | |||
if err := os.MkdirAll("/tmp/snapshot-name/share/snapshot-name/", 0777); err != nil { | |||
if err := os.MkdirAll("/tmp/snapshot-name/snapshot-name", 0777); err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What type of PR is this?
/kind bug
What this PR does / why we need it:
When using the
share
parameter on eitherStorageClass
orSnapshotVolumeClass
, the path to snapshots would contain theshare
parameter twice, e.g.This PR ensures it's the desired path.
Which issue(s) this PR fixes:
Fixes #459
Special notes for your reviewer:
Should I also introduce some special treatment regarding the old broken snapshot paths? For those who already have created some snapshots and they are stored in the broken path.
Does this PR introduce a user-facing change?: