Skip to content
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

Fill SnapshotId in Disk structure - v0.X #798

Merged
merged 1 commit into from
Jan 19, 2024

Conversation

outscale-mdr
Copy link
Contributor

Is this a bug fix or adding new feature?
This PR is to fix a bug o idempotency in CreateVolume call. Indeed, if another call is submited with the same parameter with snapshotId, the second call with failed with an error.

E0117 17:39:32.587993       1 driver.go:112] GRPC error: rpc error: code = AlreadyExists desc = Volume already exists, but was restored from a different snapshot than snap-XXXX

What is this PR about? / Why do we need it?
All calls must be idempotent therefore this is necessary in order not to be stuck

What testing is done?
Test of the cloud Call have been added to detect any future regression on this.

@outscale-mdr outscale-mdr force-pushed the idempotency_snapshot_create branch from 794e61b to 10a718b Compare January 18, 2024 09:36
@outscale-mdr outscale-mdr marked this pull request as draft January 18, 2024 09:38
@outscale-mdr outscale-mdr changed the title Fill SnapshotId in Disk structure Fill SnapshotId in Disk structure - v0.X Jan 18, 2024
Signed-off-by: Maxime Dufour <maxime.dufour@outscale.com>
@outscale-mdr outscale-mdr force-pushed the idempotency_snapshot_create branch from 10a718b to 6910f61 Compare January 18, 2024 13:46
@outscale-mdr outscale-mdr marked this pull request as ready for review January 18, 2024 13:48
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

LGTM

@outscale-mdr outscale-mdr merged commit 6ae506b into OSC-MIGRATION Jan 19, 2024
3 checks passed
@jerome-jutteau jerome-jutteau deleted the idempotency_snapshot_create branch January 19, 2024 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant