ystia / yorc

Ystia Orchestrator
https://ystia.github.io
Apache License 2.0
67 stars 23 forks source link

Empty directories not removed after ansible executions can lead to inodes exhaustion #683

Closed laurentganne closed 4 years ago

laurentganne commented 4 years ago

Bug Report

Description

When an operation is executed, Yorc creates this directory tree: <working dir>/<deployment ID>/ansible/<task ID>_<timestamp>/<node name> and will create under this directory, subdirectories as well as files needed to run ansible playbooks.

Once the execution is done, a cleanup is done but not complete: this directory is not deleted, as well as a subdirectoty So one single execution will consume several linux inodes, one for each of the remaining directories, until the application is undeployed.

This can lead to inodes exhaustion, for example when the execution corresponds to the "run" operation of a job. This operation is executed every n seconds for the duration of the job. So for a job duration of several days, it represents a huge number of executions, and so a huge number of remaining directories (and consumed inodes).

Priority

Medium

(Please be aware that your priority may not match ours, we'll use this as guidance only).