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: implement controller detach RPCs #7356

Merged
merged 3 commits into from
Mar 16, 2020

Conversation

tgross
Copy link
Member

@tgross tgross commented Mar 16, 2020

Fixes #7218 and #7332

This changeset implements the remaining controller detach RPCs: server-to-client and client-to-controller. The tests also uncovered a bug in our RPC for claims which is fixed here; the volume claim RPC is used for both claiming and releasing a claim on a volume. We should only submit a controller publish RPC when the claim is new and not when it's being released.

Much of this PR is copy-and-paste from the publish/attach workflows already written. Best reviewed commit-by-commit.

@tgross tgross added this to the 0.11.0 milestone Mar 16, 2020
@tgross tgross requested a review from langmartin March 16, 2020 14:43
The volume claim RPC is used for both claiming and releasing a claim
on a volume. We should only submit a controller publish RPC when the
claim is new and not when it's being released.
if args.Claim != structs.CSIVolumeClaimRelease {
err = v.srv.controllerPublishVolume(args, reply)
if err != nil {
return fmt.Errorf("controller publish: %v", err)
Copy link
Contributor

Choose a reason for hiding this comment

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

👍 taking pity on readers of error messages

@tgross tgross merged commit c2d5a7c into f-csi-volumes Mar 16, 2020
@tgross tgross deleted the f-csi-controller-detach-rpc branch March 16, 2020 19:59
tgross added a commit that referenced this pull request Mar 23, 2020
This changeset implements the remaining controller detach RPCs: server-to-client and client-to-controller. The tests also uncovered a bug in our RPC for claims which is fixed here; the volume claim RPC is used for both claiming and releasing a claim on a volume. We should only submit a controller publish RPC when the claim is new and not when it's being released.
tgross added a commit that referenced this pull request Mar 23, 2020
This changeset implements the remaining controller detach RPCs: server-to-client and client-to-controller. The tests also uncovered a bug in our RPC for claims which is fixed here; the volume claim RPC is used for both claiming and releasing a claim on a volume. We should only submit a controller publish RPC when the claim is new and not when it's being released.
@github-actions
Copy link

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 15, 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.

2 participants