Advanced vfolder deletion features (aka trash bin) #767
Labels
comp:manager
Related to Manager component
comp:storage-proxy
Related to Storage proxy component
urgency:4
As soon as feasible, implementation is essential.
Milestone
Main idea
We can now determine the status of vfolders after #713.
Let's extend this feature for advanced deletion status such as
DELETE-PENDING
,DELETE-ONGOING
orDELETE-ERROR
.DELETE-PENDING
vfolders by the owner of the vfolder or any admin.It is recommended that deletion job change the status of vfolder and save the result of job at audit log rather purge the row in DB.
Updated (2023-10-04)
In 24.03, vfolder trash bin feature is implemented. Now vfolder delete API just update the status of vfolder to
DELETE_COMPLETE
.We need to implement a trash bin timer which periodically purges long-lasting VFolders in trash bin as @kyujin-cho mentioned.
Updated (2024-02-06)
We will refine the state transition as follows, with better namings:
PURGE_ONGOING
state and perform the actual filesystem-level removal inDELETE_ONGOING
.READY
vfolders only.DELETE_PENDING
andDELETE_ONGOING
vfolders only.DELETE_PENDING
: Users can no longer mount this vfolder when creating new sessions.DELETE_COMPLETE
vfolders are not shown in the WebUI but only in the CLI and the control panel.status_history
column in thevfolders
table, just like refactor: Replacesessions
,kernels
'sstatus_history
's typemap
withlist
#1662.Before:
After:
Additional technical considerations
DELETE_ERROR
but the state must be keptDELETE_ONGOING
for continuation after restart.DELETE_ONGOING
vfolders. It should be safe to make multiple duplicate removal requests to the same vfolder.clean-history
implementation to "purge" the vfolders in theDELETE_COMPLETE
state.Tasks
name
toid
#1905The text was updated successfully, but these errors were encountered: