MorphoCloud / MorphoCloudWorkflow

Reusable GitHub Workflows to manage JetStream2 backed on-demand virtual machines
BSD 2-Clause "Simplified" License
1 stars 1 forks source link

How to delete volumes for closed tickets? #42

Closed muratmaga closed 1 month ago

muratmaga commented 2 months ago

I have been using /delete followed by close ticket to remove unused instances. While this works for removing the instances, it does not remove the storage volume associated with the ticket. We have over 40 volumes created this way while we have only 10 open tickets (hence 10 active users) so over 30 volumes are sitting unused and taking about 2TB of our storage allocation.

It is nice to decouple the deletion of instance and volume, so perhaps we need /delete_volume command. Or even a third one, (e.g., /clear?, /delete_all?) which basically combines both actions (delete instance and the associated volume) and close the ticket.

jcfr commented 2 months ago

I suggest the following:

muratmaga commented 2 months ago

All sounds good.

jcfr commented 1 month ago

Closing. Implemented in https://github.com/MorphoCloud/MorphoCloudWorkflow/compare/d4e1ccba6dcd7ef99f4e97a7d54d0d87dd2e08ee...39f04ff528be2570012d61f6eaf75ea01e52eb48