Skip to content
This repository was archived by the owner on Mar 21, 2018. It is now read-only.

Chef/Berks creating tons of folders in /tmp directory. Regression? #324

@AnalogJ

Description

@AnalogJ

I'm creating a new issue for visibility:
This may be a regression of the issue fixed in #262

Basically the issue is that any time knife/berks commands are run, we're seeing a ton of new folders being created in the /tmp folder (in the same format as the issue referenced above)

drwx------     2 berkshelf berkshelf    4096 Nov  9 09:11 d20151109-11078-1orsbyz
drwx------     2 berkshelf berkshelf    4096 Nov  9 09:11 d20151109-11078-aficvo
drwx------     2 berkshelf berkshelf    4096 Nov  9 09:11 d20151109-11065-65gf8t
drwx------     2 berkshelf berkshelf    4096 Nov  9 09:11 d20151109-11065-tdio7h
drwx------     2 berkshelf berkshelf    4096 Nov  9 09:10 d20151109-11055-18z2bm4
drwx------     2 berkshelf berkshelf    4096 Nov  9 09:10 d20151109-11055-lppkms
drwx------     2 berkshelf berkshelf    4096 Nov  9 09:10 d20151109-11045-1kmoxcf
drwx------     2 berkshelf berkshelf    4096 Nov  9 09:10 d20151109-11045-y70ur1

Here's the debugging info that @jsirex provided in the berkshelf/berkshelf#1069 issue. Note, I wiped out the /tmp folder and then ran our script once and the following files were created. Our script uses the ridley gem, executes berks multiple times and also calls knife.

tmp]# ls | grep d2015 | wc
382     382    8987

Chef version information:

$chef --version
Chef Development Kit Version: 0.9.0
chef-client version: 12.5.1
berks version: 4.0.1
kitchen version: 1.4.2

Ruby & Gem version info

$ ruby --version
ruby 2.1.6p336 (2015-04-13 revision 50298) [x86_64-linux]

$ gem list | grep ridley
ridley (4.3.1, 4.1.1)

I didnt provide the Berksfile/Berksfile.lock/knife.rb nor full Gemlist but I can if needed.

This is a big deal because in CentOS there seems to be a limit of ~32000 subfolders in a single directory.
Our CI environment was completely clobbered as nothing could write to the /tmp folder anymore. We've noticed that we can hit that limit in as little as 2 days.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions