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

rest: incorrect disk quota update when overwriting files #454

Open
mdonadoni opened this issue Jun 14, 2022 · 0 comments
Open

rest: incorrect disk quota update when overwriting files #454

mdonadoni opened this issue Jun 14, 2022 · 0 comments

Comments

@mdonadoni
Copy link
Member

mdonadoni commented Jun 14, 2022

How to reproduce:

  1. Enable disk quota accounting
--- a/helm/reana/values.yaml
+++ b/helm/reana/values.yaml
@@ -142,4 +142,4 @@ quota:
   workflow_termination_update_policy: "{{ .Values.quota.termination_update_policy }}"
   # backward compatibility
   disk_update: "0 3 * * *"  # everyday at 3am
-  termination_update_policy: ""
+  termination_update_policy: "disk,cpu"
  1. Create a new demo workflow: reana-client create -f reana.yaml -w helloworld
  2. Upload the workflow's files multiple times: reana-client upload -w helloworld

Each time the files are uploaded, the user and workflow disk usages are increased by the size of the uploaded files. This happens even when, from the second upload onwards, the files are being overwritten. In this case, the disk usage should not increase, given that the disk space used by the workflow stays the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant