-
Notifications
You must be signed in to change notification settings - Fork 148
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
Enhance overall VFolder removal experience #2376
Labels
type:feature
Add new features
Milestone
Comments
We made a glossary related to VFolder deletion.
Does this issue suggest to replace |
Since the filesystem-level deletion process can take a long time, or gets failed and retried afterwards, we should show a small notice to the users like: "The deletion process and restoring the available storage space may take up to 12 hours." |
This was referenced Jul 8, 2024
lablup-octodog
pushed a commit
that referenced
this issue
Jul 9, 2024
…2404) refs #2376 Remove the foreign/check constraints preventing decoupling of user/vfolder deletions. **Checklist:** (if applicable) - [x] Milestone metadata specifying the target backport version - [x] Mention to the original issue Backported-from: main (24.09) Backported-to: 24.03 Backport-of: 2404
lablup-octodog
added a commit
that referenced
this issue
Jul 13, 2024
…2404) (#2406) refs #2376 Co-authored-by: achimnol <[email protected]> Remove the foreign/check constraints preventing decoupling of user/vfolder deletions. Backported-from: main (24.09) Backported-to: 24.03 Backport-of: 2404
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Motivation
File operations take a long time and are very fragile.
Backend.AI should assume that vfolder deletion process can fail at any time.
Currently, there are two design issues:
This is a follow-up to:
and the completion of:
Proposed implementation details
Decoupling user account purging and vfolder deletion
Moving to trash bin
DELETE /vfolders
orDELETE /vfolders/{name}
APIDELETE_PENDING
.Deleting forever
DELETE /vfolders/delete-from-trash-bin
APIDELETE_{ONGOING|ERROR}
state.DELETE_PENDING
state with their owner users/projects gone.POST /vfolders/flush
,...
API,DELETE_ONGOING
.DELETE_COMPLETED
.DELETE_ERROR
(and store the error log somewhere?)DELETE_{ONGOING|ERROR}
states multiple times, we need refactor: Replacevfolder
'sstatus_history
's typemap
withlist
#2116 as well.History cleanup
DELETE_COMPLETE
state after the data rentention period.User removes database record of VFolder inDELETE_COMPLETED
status by callingDELETE /vfolders/purge
APIbackend.ai mgr clear-history
.The text was updated successfully, but these errors were encountered: