{"action":"closed","issue":{"url":"https://api.github.com/repos/chef-cookbooks/audit/issues/108","repository_url":"https://api.github.com/repos/chef-cookbooks/audit","labels_url":"https://api.github.com/repos/chef-cookbooks/audit/issues/108/labels{/name}","comments_url":"https://api.github.com/repos/chef-cookbooks/audit/issues/108/comments","events_url":"https://api.github.com/repos/chef-cookbooks/audit/issues/108/events","html_url":"https://github.com/chef-cookbooks/audit/issues/108","id":183011807,"number":108,"title":"cookbook in master fails to converge","user":{"login":"alexpop","id":107378,"avatar_url":"https://avatars.githubusercontent.com/u/107378?v=3","gravatar_id":"","url":"https://api.github.com/users/alexpop","html_url":"https://github.com/alexpop","followers_url":"https://api.github.com/users/alexpop/followers","following_url":"https://api.github.com/users/alexpop/following{/other_user}","gists_url":"https://api.github.com/users/alexpop/gists{/gist_id}","starred_url":"https://api.github.com/users/alexpop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexpop/subscriptions","organizations_url":"https://api.github.com/users/alexpop/orgs","repos_url":"https://api.github.com/users/alexpop/repos","events_url":"https://api.github.com/users/alexpop/events{/privacy}","received_events_url":"https://api.github.com/users/alexpop/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/chef-cookbooks/audit/labels/in%20progress","name":"in progress","color":"ededed"},{"url":"https://api.github.com/repos/chef-cookbooks/audit/labels/Priority:%20High","name":"Priority: High","color":"b30000"},{"url":"https://api.github.com/repos/chef-cookbooks/audit/labels/Type:%20Bug","name":"Type: Bug","color":"e11d21"}],"state":"closed","locked":false,"assignee":{"login":"alexpop","id":107378,"avatar_url":"https://avatars.githubusercontent.com/u/107378?v=3","gravatar_id":"","url":"https://api.github.com/users/alexpop","html_url":"https://github.com/alexpop","followers_url":"https://api.github.com/users/alexpop/followers","following_url":"https://api.github.com/users/alexpop/following{/other_user}","gists_url":"https://api.github.com/users/alexpop/gists{/gist_id}","starred_url":"https://api.github.com/users/alexpop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexpop/subscriptions","organizations_url":"https://api.github.com/users/alexpop/orgs","repos_url":"https://api.github.com/users/alexpop/repos","events_url":"https://api.github.com/users/alexpop/events{/privacy}","received_events_url":"https://api.github.com/users/alexpop/received_events","type":"User","site_admin":false},"assignees":[{"login":"alexpop","id":107378,"avatar_url":"https://avatars.githubusercontent.com/u/107378?v=3","gravatar_id":"","url":"https://api.github.com/users/alexpop","html_url":"https://github.com/alexpop","followers_url":"https://api.github.com/users/alexpop/followers","following_url":"https://api.github.com/users/alexpop/following{/other_user}","gists_url":"https://api.github.com/users/alexpop/gists{/gist_id}","starred_url":"https://api.github.com/users/alexpop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexpop/subscriptions","organizations_url":"https://api.github.com/users/alexpop/orgs","repos_url":"https://api.github.com/users/alexpop/repos","events_url":"https://api.github.com/users/alexpop/events{/privacy}","received_events_url":"https://api.github.com/users/alexpop/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2016-10-14T10:06:41Z","updated_at":"2016-10-14T11:49:04Z","closed_at":"2016-10-14T11:49:04Z","body":"### Cookbook version\r\nmaster\r\n\r\n### Chef-client version\r\n12.14.89\r\n\r\n### Platform Details\r\nCentOS 6.6, kitchen vagrant\r\nInSpec `1.2.0`\r\n\r\n### Scenario:\r\nTrying to converge using collector: 'chef-compliance'\r\n\r\n### Steps to Reproduce:\r\nPoint Berkshelf to master:\r\n```\r\ncookbook 'audit', github: 'chef-cookbooks/audit'\r\n```\r\n\r\n### Expected Result:\r\nSuccessful converge\r\n\r\n### Actual Result:\r\nFailed converge\r\n```\r\n       Recipe: audit::default\r\n         * audit_token[Compliance Token] action create[2016-10-14T09:50:54+00:00] INFO: Processing audit_token[Compliance Token] action create (audit::default line 30)\r\n       [2016-10-14T09:50:54+00:00] INFO: Using refresh_token to exchange for an access token.\r\n\r\n           - compliance server auth token setup\r\n         * directory[/tmp/kitchen/cache/compliance] action create[2016-10-14T09:50:54+00:00] INFO: Processing directory[/tmp/kitchen/cache/compliance] action create (audit::default line 48)\r\n       [2016-10-14T09:50:54+00:00] INFO: directory[/tmp/kitchen/cache/compliance] created directory /tmp/kitchen/cache/compliance\r\n\r\n           - create new directory /tmp/kitchen/cache/compliance\r\n           - restore selinux security context\r\n         * file[/tmp/kitchen/cache/compliance/ssh] action nothing[2016-10-14T09:50:54+00:00] INFO: Processing file[/tmp/kitchen/cache/compliance/ssh] action nothing (audit::default line 66)\r\n        (skipped due to action :nothing)\r\n         * audit_profile[ssh] action fetch[2016-10-14T09:50:54+00:00] INFO: Processing audit_profile[ssh] action fetch (audit::default line 71)\r\n\r\n           - load required inspec modules\r\n           * directory[/tmp/kitchen/cache/compliance] action create[2016-10-14T09:50:54+00:00] INFO: Processing directory[/tmp/kitchen/cache/compliance] action create (/tmp/kitchen/cache/cookbooks/audit/resources/profile.rb line 41)\r\n        (up to date)\r\n           - create cache directory[2016-10-14T09:50:54+00:00] INFO: Fetch compliance profile base/ssh\r\n       [2016-10-14T09:50:54+00:00] INFO: Load profile from: https://ap-cc6.opschef.tv/api/owners/base/compliance/ssh/tar\r\n\r\n           - fetch compliance profile\r\n           * directory[/tmp/kitchen/cache/compliance] action create[2016-10-14T09:50:54+00:00] INFO: Processing directory[/tmp/kitchen/cache/compliance] action create (/tmp/kitchen/cache/cookbooks/audit/resources/profile.rb line 41)\r\n        (up to date)\r\n\r\n       [2016-10-14T09:50:54+00:00] INFO: audit_profile[ssh] sending touch action to file[/tmp/kitchen/cache/compliance/ssh] (immediate)\r\n         * file[/tmp/kitchen/cache/compliance/ssh] action touch[2016-10-14T09:50:54+00:00] INFO: Processing file[/tmp/kitchen/cache/compliance/ssh] action touch (audit::default line 66)\r\n       [2016-10-14T09:50:54+00:00] INFO: file[/tmp/kitchen/cache/compliance/ssh] created file /tmp/kitchen/cache/compliance/ssh\r\n\r\n           - create new file /tmp/kitchen/cache/compliance/ssh\r\n           - restore selinux security context[2016-10-14T09:50:54+00:00] INFO: file[/tmp/kitchen/cache/compliance/ssh] updated atime and mtime to 2016-10-14 09:50:54 +0000\r\n\r\n           - update utime on file /tmp/kitchen/cache/compliance/ssh\r\n         * audit_profile[ssh] action execute[2016-10-14T09:50:54+00:00] INFO: Processing audit_profile[ssh] action execute (audit::default line 71)\r\n\r\n           - load required inspec modules\r\n           * directory[/tmp/kitchen/cache/compliance] action create[2016-10-14T09:50:54+00:00] INFO: Processing directory[/tmp/kitchen/cache/compliance] action create (/tmp/kitchen/cache/cookbooks/audit/resources/profile.rb line 103)\r\n        (up to date)\r\n           - create/verify cache directory[2016-10-14T09:50:54+00:00] INFO: Executing: /tmp/kitchen/cache/compliance/base_ssh.tgz\r\n\r\n           - execute compliance profile\r\n           * directory[/tmp/kitchen/cache/compliance] action create[2016-10-14T09:50:55+00:00] INFO: Processing directory[/tmp/kitchen/cache/compliance] action create (/tmp/kitchen/cache/cookbooks/audit/resources/profile.rb line 103)\r\n        (up to date)\r\n           * file[/tmp/kitchen/cache/compliance/base_ssh_report.json] action create[2016-10-14T09:50:55+00:00] INFO: Processing file[/tmp/kitchen/cache/compliance/base_ssh_report.json] action create (/tmp/kitchen/cache/cookbooks/audit/resources/profile.rb line 131)\r\n       [2016-10-14T09:50:55+00:00] INFO: file[/tmp/kitchen/cache/compliance/base_ssh_report.json] created file /tmp/kitchen/cache/compliance/base_ssh_report.json\r\n\r\n             - create new file /tmp/kitchen/cache/compliance/base_ssh_report.json[2016-10-14T09:50:55+00:00] INFO: file[/tmp/kitchen/cache/compliance/base_ssh_report.json] updated file contents /tmp/kitchen/cache/compliance/base_ssh_report.json\r\n\r\n             - update content in file /tmp/kitchen/cache/compliance/base_ssh_report.json from none to 4fa098\r\n             - suppressed sensitive resource\r\n             - restore selinux security context\r\n\r\n       [2016-10-14T09:50:55+00:00] INFO: audit_profile[ssh] sending touch action to file[/tmp/kitchen/cache/compliance/ssh] (immediate)\r\n         * file[/tmp/kitchen/cache/compliance/ssh] action touch[2016-10-14T09:50:55+00:00] INFO: Processing file[/tmp/kitchen/cache/compliance/ssh] action touch (audit::default line 66)\r\n       [2016-10-14T09:50:55+00:00] INFO: file[/tmp/kitchen/cache/compliance/ssh] updated atime and mtime to 2016-10-14 09:50:55 +0000\r\n\r\n           - update utime on file /tmp/kitchen/cache/compliance/ssh\r\n         * audit_report[chef-compliance] action execute[2016-10-14T09:50:55+00:00] INFO: Processing audit_report[chef-compliance] action execute (audit::default line 84)\r\n\r\n\r\n           ================================================================================\r\n           Error executing action `execute` on resource 'audit_report[chef-compliance]'\r\n           ================================================================================\r\n\r\n           NameError\r\n           ---------\r\n           uninitialized constant Custom resource audit_report from cookbook audit::ComplianceProfile\r\n\r\n           Cookbook Trace:\r\n           ---------------\r\n           /tmp/kitchen/cache/cookbooks/audit/resources/report.rb:93:in `block in profiles'\r\n           /tmp/kitchen/cache/cookbooks/audit/resources/report.rb:92:in `profiles'\r\n           /tmp/kitchen/cache/cookbooks/audit/resources/report.rb:24:in `block (2 levels) in class_from_file'\r\n           /tmp/kitchen/cache/cookbooks/audit/resources/report.rb:23:in `block in class_from_file'\r\n\r\n           Resource Declaration:\r\n           ---------------------\r\n           # In /tmp/kitchen/cache/cookbooks/audit/recipes/default.rb\r\n\r\n            84: compliance_report report_collector do\r\n            85:   owner node['audit']['owner']\r\n            86:   server server\r\n            87:   collector report_collector\r\n            88:   quiet node['audit']['quiet'] unless node['audit']['quiet'].nil?\r\n            89:   action :execute\r\n            90: end if node['audit']['profiles'].values.any?\r\n\r\n           Compiled Resource:\r\n           ------------------\r\n           # Declared in /tmp/kitchen/cache/cookbooks/audit/recipes/default.rb:84:in `from_file'\r\n\r\n           audit_report(\"chef-compliance\") do\r\n             action [:execute]\r\n             retries 0\r\n             retry_delay 2\r\n             default_guard_interpreter :default\r\n             declared_type :compliance_report\r\n             cookbook_name \"audit\"\r\n             recipe_name \"default\"\r\n             owner \"admin\"\r\n             server \"https://ap-cc6.opschef.tv/api/\"\r\n             collector \"chef-compliance\"\r\n             quiet true\r\n           end\r\n\r\n           Platform:\r\n           ---------\r\n           x86_64-linux\r\n\r\n       [2016-10-14T09:50:55+00:00] INFO: Running queued delayed notifications before re-raising exception\r\n\r\n       Running handlers:\r\n       [2016-10-14T09:50:55+00:00] ERROR: Running exception handlers\r\n       Running handlers complete\r\n       [2016-10-14T09:50:55+00:00] ERROR: Exception handlers complete\r\n       Chef Client failed. 9 resources updated in 11 seconds\r\n       [2016-10-14T09:50:55+00:00] FATAL: Stacktrace dumped to /tmp/kitchen/cache/chef-stacktrace.out\r\n       [2016-10-14T09:50:55+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report\r\n       [2016-10-14T09:50:55+00:00] ERROR: audit_report[chef-compliance] (audit::default line 84) had an error: NameError: uninitialized constant Custom resource audit_report from cookbook audit::ComplianceProfile\r\n       [2016-10-14T09:50:55+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)\r\n```\r\n"}}
{"actor":{"display_login":"chris-rock"}}