-
Notifications
You must be signed in to change notification settings - Fork 70
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
Make the BIA in CSI plugin adopt v2. #177
Conversation
bad6dcc
to
3e62746
Compare
@sseago I'm not sure about whether to move the deleing VolumeSnapshot logic to the BIA v2 also. What's your opinion about this? Is it possible to limit the concurrent BIA v2 action numbers? |
After a discussion with @Lyndon-Li, we think it should be safe to move the VolumeSnapshot deletion logic into BIA v2. |
@blackpiglet when you say "move VolumeSnapshot deletion logic into BIA v2", I'm not sure where you mean to put it. We don't currently have a plugin API call that executes during Finalize. We could, however, move this logic from backup controller reconcile into finalize controller reconcile. Basically after persisting itemsToUpdate for the backup, then delete VolumeSnapshots. |
@blackpiglet backup operations controller isn't a good place for it, since that controller won't act on a backup if all async operations are completed when leaving the InProgress phase -- if all async operations are done when the backup controller reconcile is complete (i.e. upon uploading tarball, logs, etc.), then we go straight to finalize. Finalize is never skipped, so that's the place we want this. We had to do exactly this in our OADP velero fork to deal with the OADP datamover, since we needed VS to not be deleted during datamover plugin operations -- see this commit on our fork: |
@sseago Ideally, we take the second way, since the snapshot is created by the plugin so it make more sense to delete it by plugin as well. Moreover, we want to remove the CSI related logic from Velero as much as possible |
08f26d3
to
d9f7007
Compare
Do we have a Velero counterpart for this PR? Since we have moved some code from Velero |
db8852f
to
1e6d63e
Compare
Yes. It's PR vmware-tanzu/velero#6327 |
Move the polling VS ReadyToUse logic into Async operation. Read the Velero server's ResourceTimeout setting from backup annotation. Set the operation started time in the operationID. Also put VSC status polling into Async plugin. Add unit test. Patch annotations into VSC to make it work in restore. Signed-off-by: Xun Jiang <jxun@vmware.com>
@blackpiglet @Lyndon-Li Will there be a separate PR for datamover changes relaed to CSI plugin ? |
@shubham-pampattiwar Sure. I'm working on it. The BIA part is also in progress, and I will post a PR today, and I think most of rest work should be done in this week. Could you take another look at this PR? The data mover work depends on this change. |
Move the polling VS ReadyToUse logic into Async operation.