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

csi: checkpoint volume claim garbage collection #7782

Merged
merged 1 commit into from
Apr 23, 2020

Conversation

tgross
Copy link
Member

@tgross tgross commented Apr 22, 2020

Part of fixing #7629
Pulled out of #7708

Adds a CSIVolumeClaim type to be tracked as current and past claims
on a volume. Allows for a client RPC failure during node or controller
detachment without having to keep the allocation around after the
first garbage collection eval.

This changeset lays groundwork for moving the actual detachment RPCs
into a volume watching loop outside the GC eval.

@tgross tgross added this to the 0.11.2 milestone Apr 22, 2020
@tgross tgross requested a review from langmartin April 22, 2020 20:07
@tgross
Copy link
Member Author

tgross commented Apr 22, 2020

@lang I need to make sure this works end-to-end but it should be ready for an overall review.

@tgross tgross force-pushed the b-csi-volume-claim-tracking branch from cb44287 to 6acde46 Compare April 22, 2020 20:29
@tgross
Copy link
Member Author

tgross commented Apr 22, 2020

I've tested this with both nomad job stop and nomad job stop -purge cases and I've got properly detached EBS volumes and released claims. Marking this ready for review.

@tgross tgross marked this pull request as ready for review April 22, 2020 20:47
Copy link
Contributor

@langmartin langmartin left a comment

Choose a reason for hiding this comment

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

I've just got the one question, this seems pretty straightforward!

nomad/structs/csi.go Show resolved Hide resolved
Adds a `CSIVolumeClaim` type to be tracked as current and past claims
on a volume. Allows for a client RPC failure during node or controller
detachment without having to keep the allocation around after the
first garbage collection eval.

This changeset lays groundwork for moving the actual detachment RPCs
into a volume watching loop outside the GC eval.
@tgross tgross force-pushed the b-csi-volume-claim-tracking branch from 6acde46 to d7f1a5e Compare April 23, 2020 14:04
@tgross tgross merged commit 22d4b88 into master Apr 23, 2020
@tgross tgross deleted the b-csi-volume-claim-tracking branch April 23, 2020 15:06
@github-actions
Copy link

github-actions bot commented Jan 9, 2023

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants