tarmac doesn't clean up /tmp usage correctly

Bug #1099438 reported by Andreas Hasenack
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Tarmac
Confirmed
High
dobey

Bug Description

We got into a situation where /tmp was using up 3.6Gb. It was full of temporary directories created by tarmac as bzr branches.

Looking at the code, it only tries to remove the temporary directory in __del__() method in the Branch class:

    def __del__(self):
        """Do some potenetially necessary cleanup during deletion."""
        if self.temp_tree_dir is not None:
            shutil.rmtree(self.temp_tree_dir)

Apparently that does not always run.

dobey (dobey)
Changed in tarmac:
importance: Undecided → High
assignee: nobody → Rodney Dawes (dobey)
status: New → Confirmed
Revision history for this message
dobey (dobey) wrote :

For posterity, when running tarmac to land tarmac branches, the following occurs during tearDown of some of the tests:

Exception OSError: OSError(2, 'No such file or directory') in <bound method Branch.__del__ of <tarmac.branch.Branch object at 0x35b5690>> ignored

The tests pass and it appears __del__ is being called, albeit inconsistently. It's also still unclear why it wouldn't be called in normal usage, even in the worst case of when the python interpreter cleans up and exits.

tags: added: landscape
David Britton (dpb)
tags: removed: landscape
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.