ystia/yorc

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

laurentganne opened this issue · 0 comments

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

  • High = We should stop anything we are doing and do this. If you're writing this calmly, you should probably choose another option. If it's really that urgent, please make sure we read this.
  • Medium = It's important that we do this within a few days.
  • Low = We will consider this on our next sprint planning.

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