-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed size /tmp in Fedora 19 box #188
Comments
@hectcastro Any idea how you turn this off for realzies on a Fedora box? I'd happily add it to some systemd unit or whatever if I knew how. |
Here's the full story: https://fedoraproject.org/wiki/Features/tmp-on-tmpfs It seems that Chef should possibly change from using
The systemd unit file it seems is created by default at:
Let me know if you'd like me to submit a ticket to CHEF. |
Although if Chef is already not using /tmp for file_cache_path on Fedora, wouldn't you be violating http://acrmp.github.io/foodcritic/#FC013? Trying to find the Chef code from my phone to confirm. |
Chef caching defaults to /var/chef/cache according to the code unless its configured differently (file_cache_path or chef-client cookbook attribute in my experience). |
A wild @bflad appears. After a closer look, this is being caused by the default location of Test Kitchen's cache: [vagrant@default-fedora-19 ~]$ cat /tmp/kitchen/solo.rb
node_name "default-fedora-19"
checksum_path "/tmp/kitchen/checksums"
file_cache_path "/tmp/kitchen/cache"
file_backup_path "/tmp/kitchen/backup"
cookbook_path ["/tmp/kitchen/cookbooks", "/tmp/kitchen/site-cookbooks"]
data_bag_path "/tmp/kitchen/data_bags"
environment_path "/tmp/kitchen/environments"
node_path "/tmp/kitchen/nodes"
role_path "/tmp/kitchen/roles"
client_path "/tmp/kitchen/clients"
user_path "/tmp/kitchen/users"
validation_key "/tmp/kitchen/validation.pem"
client_key "/tmp/kitchen/client.pem"
chef_server_url "http://127.0.0.1:8889"
encrypted_data_bag_secret "/tmp/kitchen/encrypted_data_bag_secret" Given Fedora's file system guidelines, I probably need to find a way to override the default provisioner |
@hectcastro Yes, and you should be able to do that within the driver config for test-kitchen -- I've done that successfully. |
For anyone who is interested, the real issue appears to be the |
Hopefully resolved in sous-chefs/java#150. |
Could you reconsider disabling tmp on tmprfs for Fedora? Like @hectcastro said all that would take is running |
/tmp
in the Fedora 19 box is currently~255MB
, which gets exhausted with almost any Chef run that extracts an archive into Chef's cache directory.Executing the following prevents
/tmp
from being created astmpfs
:The text was updated successfully, but these errors were encountered: