VOLTTRON / volttron

VOLTTRON Distributed Control System Platform
https://volttron.readthedocs.io/
Other
455 stars 216 forks source link

Temp files not fully cleaned up from /tmp #20

Closed ChrisFreeman closed 9 years ago

ChrisFreeman commented 9 years ago

Directories in /tmp are not being removed when volttron completes. An example is shown below

Edit: I am currently working off of the 2.x branch.

(volttron) chrisf@ubuntu:/tmp$ ls -d /tmp/tmp*
/tmp/tmp2fDIJo  /tmp/tmp5vjD8C  /tmp/tmpdLit2m  /tmp/tmpiQvEyl  /tmp/tmpocEUn2  /tmp/tmpqCnjz0  /tmp/tmpRm1qaB  /tmp/tmpUlwiga  /tmp/tmpwC7058
/tmp/tmp2iPjbX  /tmp/tmp7x050s  /tmp/tmpeONMVP  /tmp/tmpJG5Rju  /tmp/tmpOW6f_Z  /tmp/tmpqfX8OF  /tmp/tmpRR9Up_  /tmp/tmpupUMT9  /tmp/tmpxbzb1t
/tmp/tmp2pcrE9  /tmp/tmp8sLet9  /tmp/tmpFGb6q3  /tmp/tmpm36MxI  /tmp/tmppDokyw  /tmp/tmpQk4KqV  /tmp/tmpSMW_SM  /tmp/tmpVHg10P  /tmp/tmpXCqr7F
/tmp/tmp2zH6PQ  /tmp/tmp9MqmVa  /tmp/tmpFHeoIh  /tmp/tmpM5FJfX  /tmp/tmppiqu29  /tmp/tmpqqIGxf  /tmp/tmpSV_yZK  /tmp/tmpvOP8zG  /tmp/tmpZVJHUZ
/tmp/tmp4z6A_6  /tmp/tmpccB8sG  /tmp/tmpfTaHN7  /tmp/tmpMZtBYV  /tmp/tmpq8VNNP  /tmp/tmpRITpjh  /tmp/tmpszDUZo  /tmp/tmpVvcIQb
(volttron) chrisf@ubuntu:/tmp$ ls /tmp/tmp2fDIJo/
neighborconnectoragent-0.1.dist-info
(volttron) chrisf@ubuntu:/tmp$ ls -l /tmp/tmp2fDIJo/neighborconnectoragent-0.1.dist-info/
total 4
-rw-rw-r-- 1 chrisf chrisf 1116 Mar  2 21:22 RECORD
(volttron) chrisf@ubuntu:/tmp$ cat /tmp/tmp2fDIJo/neighborconnectoragent-0.1.dist-info/RECORD 
neighborconnector/adaptor.py,sha256=zP9Uo9nmnBpTC8Uce_OIZd056R9QzkSe-GMLMDJeXbw,9302
neighborconnector/agent.py,sha256=k46FLt29oezWn45Xbm5OxWVLwIL4m9mLjEOg1zAD034,10339
neighborconnector/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
neighborconnector/delmod.py,sha256=dHVOl4oOp8jRls0CDxXop1ZapL7McdX9pvTPzOOPTws,789
neighborconnectoragent-0.1.dist-info/top_level.txt,sha256=gA7lVWkWmSbbzF1CBrCUkPn0a5tuQsN6VjZB4_6DcUM,18
neighborconnectoragent-0.1.dist-info/WHEEL,sha256=54bVun1KfEBTJ68SHUmbxNPj80VxlQ0sHi4gZdGZXEY,92
neighborconnectoragent-0.1.dist-info/METADATA,sha256=bMuaW78NsGIhQ63QUDvNtjrEIdZlu1Q5UDIbqplOdH4,240
neighborconnectoragent-0.1.dist-info/DESCRIPTION.rst,sha256=OCTuuN6LcWulhHS3d5rfjdsQtW22n7HENFRh6jC6ego,10
neighborconnectoragent-0.1.dist-info/RECORD,,
neighborconnectoragent-0.1.dist-info/metadata.json,sha256=70q3LBysVzrCu0AvpPHpYPVdLjBvts8GwG2oQv-DPUQ,405
neighborconnectoragent-0.1.dist-info/entry_points.txt,sha256=F-4EGiovxfvLSXP81FosoqH0qsPu3iSyCRREQuXcBuM,71
neighborconnectoragent-0.1.dist-info/config,sha256=pN3C-E4j0WBAhNviUaX7eFWAyid9wRkmyuvqZQuk8gw,370
ChrisFreeman commented 9 years ago

The tempfile directory is being created during the volttron-pkg configure process. The command used is:

$ volttron-pkg configure /tmp/volttron_wheels/neighborconnectoragent-0.1-py2-none-any.whl Agents/NeighborConnector/QL02.config 
WARNING: renaming passed config file: Agents/NeighborConnector/QL02.config to config2015-03-06 21:22:20,881 () volttron.platform.packages WARNING: WARNING: renaming passed config file: Agents/NeighborConnector/QL02.config to config

$ ls -l /tmp/tmpksUnLD/
total 4
drwxrwxr-x 2 chrisf chrisf 4096 Mar  6 21:22 neighborconnectoragent-0.1.dist-info