{"action":"created","issue":{"url":"https://api.github.com/repos/chef/chef/issues/6977","repository_url":"https://api.github.com/repos/chef/chef","labels_url":"https://api.github.com/repos/chef/chef/issues/6977/labels{/name}","comments_url":"https://api.github.com/repos/chef/chef/issues/6977/comments","events_url":"https://api.github.com/repos/chef/chef/issues/6977/events","html_url":"https://github.com/chef/chef/issues/6977","id":304520056,"number":6977,"title":"Cleanup of old gems","user":{"login":"phoolish","id":160523,"avatar_url":"https://avatars3.githubusercontent.com/u/160523?v=4","gravatar_id":"","url":"https://api.github.com/users/phoolish","html_url":"https://github.com/phoolish","followers_url":"https://api.github.com/users/phoolish/followers","following_url":"https://api.github.com/users/phoolish/following{/other_user}","gists_url":"https://api.github.com/users/phoolish/gists{/gist_id}","starred_url":"https://api.github.com/users/phoolish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phoolish/subscriptions","organizations_url":"https://api.github.com/users/phoolish/orgs","repos_url":"https://api.github.com/users/phoolish/repos","events_url":"https://api.github.com/users/phoolish/events{/privacy}","received_events_url":"https://api.github.com/users/phoolish/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-03-12T20:04:09Z","updated_at":"2018-03-13T01:19:29Z","closed_at":null,"author_association":"NONE","body":"## Description\r\nWe noticed that several of our /opt/chef folders are around 1.5-2GB in size. This is all due to `/opt/chef/embedded/lib/ruby/gems/2.3.0/gems`. The problem seems to be related to the cleanup of  old gems.\r\n\r\n## Chef Version\r\n12.22.1 and 13.8.5\r\n\r\n## Platform Version\r\nAmazon Linux 2017.09\r\nCentos 6.7\r\n\r\n## Replication Case\r\n* Create a simple test cookbook (1 recipe with a single resource)\r\n* Add a `gem 'aws-sdk', '~> 2'` to the metadata.rb file.\r\n* Use kitchen-test to converge the cookbook.\r\n* Update the gem version constraint to be more stringent `= 2.10.134`\r\n* Rerun kitchen-test converge.\r\n* Login to kitchen-test instance and `ls /opt/chef/embedded/lib/ruby/gems/2.3.0/gems | grep aws`\r\n\r\n```\r\naws-sdk-2.10.134\r\naws-sdk-2.11.11\r\naws-sdk-core-2.10.134\r\naws-sdk-core-2.11.11\r\naws-sdk-resources-2.10.134\r\naws-sdk-resources-2.11.11\r\naws-sigv4-1.0.2\r\n```"},"comment":{"url":"https://api.github.com/repos/chef/chef/issues/comments/372514161","html_url":"https://github.com/chef/chef/issues/6977#issuecomment-372514161","issue_url":"https://api.github.com/repos/chef/chef/issues/6977","id":372514161,"user":{"login":"phoolish","id":160523,"avatar_url":"https://avatars3.githubusercontent.com/u/160523?v=4","gravatar_id":"","url":"https://api.github.com/users/phoolish","html_url":"https://github.com/phoolish","followers_url":"https://api.github.com/users/phoolish/followers","following_url":"https://api.github.com/users/phoolish/following{/other_user}","gists_url":"https://api.github.com/users/phoolish/gists{/gist_id}","starred_url":"https://api.github.com/users/phoolish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phoolish/subscriptions","organizations_url":"https://api.github.com/users/phoolish/orgs","repos_url":"https://api.github.com/users/phoolish/repos","events_url":"https://api.github.com/users/phoolish/events{/privacy}","received_events_url":"https://api.github.com/users/phoolish/received_events","type":"User","site_admin":false},"created_at":"2018-03-13T01:19:29Z","updated_at":"2018-03-13T01:19:29Z","author_association":"NONE","body":"That makes sense, but I am surprised other folks haven't run into this. Especially with such a widely used gem like aws-sdk. Thanks for the explanation. "}}
{"actor":{"display_login":"phoolish"}}