glance unit test runs leave files in /tmp

Bug #958027 reported by Jay Pipes
6
This bug affects 1 person
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://jenkins.openstack.org/job/gate-glance-python26/146/console

[TOX] ERROR: invocation failed, logfile: /home/jenkins/workspace/gate-glance-python26/.tox/jenkins26/log/0.log
[TOX] ERROR: /home/jenkins/workspace/gate-glance-python26/.tox$ /usr/bin/python2.6 /usr/local/lib/python2.7/dist-packages/virtualenv.py --distribute --no-site-packages jenkins26 >jenkins26/log/0.log
The --no-site-packages flag is deprecated; it is now the default behavior.
New python executable in jenkins26/bin/python2.6
Also creating executable in jenkins26/bin/python
Installing distribute...Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/virtualenv.py", line 2098, in <module>
    main()
  File "/usr/local/lib/python2.7/dist-packages/virtualenv.py", line 928, in main
    never_download=options.never_download)
  File "/usr/local/lib/python2.7/dist-packages/virtualenv.py", line 1037, in create_environment
    search_dirs=search_dirs, never_download=never_download)
  File "/usr/local/lib/python2.7/dist-packages/virtualenv.py", line 598, in install_distribute
    search_dirs=search_dirs, never_download=never_download)
  File "/usr/local/lib/python2.7/dist-packages/virtualenv.py", line 556, in _install_req
    cwd = tempfile.mkdtemp()
  File "/usr/lib/python2.6/tempfile.py", line 318, in mkdtemp
    _os.mkdir(file, 0700)
OSError: [Errno 31] Too many links: '/tmp/tmpeM7Ni4'

Revision history for this message
James E. Blair (corvus) wrote :

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.

summary: - glance-gate-python26 job apparently not cleaning up TMPDIR enough...
+ glance unit test runs leave files in /tmp
no longer affects: openstack-ci
Revision history for this message
Brian Waldon (bcwaldon) wrote :

Is there anything to do in glance here?

Revision history for this message
Jay Pipes (jaypipes) wrote :

This was an issue in Jenkins... marked Invalid.

Changed in glance:
status: New → Invalid
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.