glance unit test runs leave files in /tmp
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Been seeing errors about too many links in TMPDIR pile up.
Reference:
https:/
[TOX] ERROR: invocation failed, logfile: /home/jenkins/
[TOX] ERROR: /home/jenkins/
The --no-site-packages flag is deprecated; it is now the default behavior.
New python executable in jenkins26/
Also creating executable in jenkins26/
Installing distribute.
File "/usr/local/
main()
File "/usr/local/
never_
File "/usr/local/
search_
File "/usr/local/
search_
File "/usr/local/
cwd = tempfile.mkdtemp()
File "/usr/lib/
_os.mkdir(file, 0700)
OSError: [Errno 31] Too many links: '/tmp/tmpeM7Ni4'
There's no way for jenkins to know what side effects may occur from jobs that it runs, including files that are left in /tmp. The glance unit tests do leave lots of files in /tmp and they should be removed after the tests run. That's a bug in glance.
Since for the moment, we can't count on glance to do that, we've started working on bug 925774 to clean up /tmp based on file modification times.
However, glance really should clean up temp files from unit test runs (for developer machines as well), so I'm reassigning this bug to glance.