`maas_run_scripts.py` does not clean up temporary directory

Bug #1999064 reported by Igor Brovtsin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Medium
Igor Brovtsin
3.2
New
Undecided
Unassigned
3.3
Triaged
Medium
Igor Brovtsin

Bug Description

Originally reported at https://discourse.maas.io/t/full-tmp-filesystem/6516 by ~bedfordc.

`maas_run_scripts.py` generates a temporary directory using `mkdtemp()` when no `base_path` is provided. Using `mkdtemp()` assumes that the caller is responsible for deleting the generated directory, but the script never does that, occupying free space on the `/tmp` partition.

Related branches

Changed in maas:
status: New → Triaged
importance: Undecided → Medium
Changed in maas:
milestone: none → 3.4.0
assignee: nobody → Igor Brovtsin (igor-brovtsin)
Changed in maas:
status: Triaged → Fix Committed
Alberto Donato (ack)
Changed in maas:
milestone: 3.4.0 → 3.4.0-beta1
Alberto Donato (ack)
Changed in maas:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.