{"action":"created","issue":{"url":"https://api.github.com/repos/chef/bento/issues/609","repository_url":"https://api.github.com/repos/chef/bento","labels_url":"https://api.github.com/repos/chef/bento/issues/609/labels{/name}","comments_url":"https://api.github.com/repos/chef/bento/issues/609/comments","events_url":"https://api.github.com/repos/chef/bento/issues/609/events","html_url":"https://github.com/chef/bento/issues/609","id":159308014,"number":609,"title":"ubuntu-16.04: unattended updates locking dpkg","user":{"login":"tpetchel","id":7142397,"avatar_url":"https://avatars.githubusercontent.com/u/7142397?v=3","gravatar_id":"","url":"https://api.github.com/users/tpetchel","html_url":"https://github.com/tpetchel","followers_url":"https://api.github.com/users/tpetchel/followers","following_url":"https://api.github.com/users/tpetchel/following{/other_user}","gists_url":"https://api.github.com/users/tpetchel/gists{/gist_id}","starred_url":"https://api.github.com/users/tpetchel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tpetchel/subscriptions","organizations_url":"https://api.github.com/users/tpetchel/orgs","repos_url":"https://api.github.com/users/tpetchel/repos","events_url":"https://api.github.com/users/tpetchel/events{/privacy}","received_events_url":"https://api.github.com/users/tpetchel/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/chef/bento/labels/Bug","name":"Bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2016-06-09T00:50:46Z","updated_at":"2016-07-04T14:27:45Z","closed_at":null,"body":"Test Kitchen fails to converge bento/ubuntu-16.04 version 2.2.7 when multiple CPUs are specified in `.kitchen.yml`. \r\n\r\nThe error message is:\r\n\r\n> dpkg: error: dpkg status database is locked by another process\r\n\r\n### Repro steps\r\n\r\nstep 1. Create a cookbook. For example:\r\n\r\n```\r\n$ chef generate cookbook ubuntu-test\r\n```\r\n\r\nstep 2. Modify `.kitchen.yml` to specify 2 CPUs.\r\n\r\n```\r\n---\r\ndriver:\r\n  name: vagrant\r\n\r\nprovisioner:\r\n  name: chef_zero\r\n\r\nplatforms:\r\n  - name: ubuntu-16.04\r\n    driver:\r\n      customize:\r\n        cpus: 2\r\n\r\nsuites:\r\n  - name: default\r\n    run_list:\r\n      - recipe[ubuntu-test::default]\r\n    attributes:\r\n```\r\n\r\nstep 3. Run `kitchen converge`\r\n\r\n### Result\r\n\r\nhttps://gist.github.com/tpetchel/0b38bb72f296e330c4d90d5c002a63b7\r\n\r\n### More info\r\n\r\nThis was reported on Learn Chef: https://learn.chef.io/manage-a-web-app/ubuntu/run-your-web-application-on-a-node/#comment-2717043449.\r\n\r\nAfter seeing the user's `.kitchen.yml`, I was able to repo on an empty cookbook. The issue does not repro when you do not specify the `customize` section. That's not to say that it's strictly caused by running more than 1 CPU, but perhaps the timing with multi CPUs just happens to make it repro more consistently."},"comment":{"url":"https://api.github.com/repos/chef/bento/issues/comments/230302652","html_url":"https://github.com/chef/bento/issues/609#issuecomment-230302652","issue_url":"https://api.github.com/repos/chef/bento/issues/609","id":230302652,"user":{"login":"loren","id":42840,"avatar_url":"https://avatars.githubusercontent.com/u/42840?v=3","gravatar_id":"","url":"https://api.github.com/users/loren","html_url":"https://github.com/loren","followers_url":"https://api.github.com/users/loren/followers","following_url":"https://api.github.com/users/loren/following{/other_user}","gists_url":"https://api.github.com/users/loren/gists{/gist_id}","starred_url":"https://api.github.com/users/loren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loren/subscriptions","organizations_url":"https://api.github.com/users/loren/orgs","repos_url":"https://api.github.com/users/loren/repos","events_url":"https://api.github.com/users/loren/events{/privacy}","received_events_url":"https://api.github.com/users/loren/received_events","type":"User","site_admin":false},"created_at":"2016-07-04T14:27:45Z","updated_at":"2016-07-04T14:27:45Z","body":"@guusdk You can use this as your chef_omnibus_url in .kitchen.yml: https://gist.github.com/loren/80d42f115fedbdd7635489ecbcfeb121\r\n\r\nContext: https://learn.chef.io/manage-a-web-app/ubuntu/run-your-web-application-on-a-node/#comment-2717043449"}}
{"actor":{"display_login":"loren"}}