{"action":"opened","issue":{"url":"https://api.github.com/repos/chef/inspec/issues/1574","repository_url":"https://api.github.com/repos/chef/inspec","labels_url":"https://api.github.com/repos/chef/inspec/issues/1574/labels{/name}","comments_url":"https://api.github.com/repos/chef/inspec/issues/1574/comments","events_url":"https://api.github.com/repos/chef/inspec/issues/1574/events","html_url":"https://github.com/chef/inspec/issues/1574","id":215164378,"number":1574,"title":"Inspec appears to incorrectly fail os x 10.12.3 package verification.","user":{"login":"AndrewRussellHayes","id":1654144,"avatar_url":"https://avatars0.githubusercontent.com/u/1654144?v=3","gravatar_id":"","url":"https://api.github.com/users/AndrewRussellHayes","html_url":"https://github.com/AndrewRussellHayes","followers_url":"https://api.github.com/users/AndrewRussellHayes/followers","following_url":"https://api.github.com/users/AndrewRussellHayes/following{/other_user}","gists_url":"https://api.github.com/users/AndrewRussellHayes/gists{/gist_id}","starred_url":"https://api.github.com/users/AndrewRussellHayes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndrewRussellHayes/subscriptions","organizations_url":"https://api.github.com/users/AndrewRussellHayes/orgs","repos_url":"https://api.github.com/users/AndrewRussellHayes/repos","events_url":"https://api.github.com/users/AndrewRussellHayes/events{/privacy}","received_events_url":"https://api.github.com/users/AndrewRussellHayes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-03-18T03:56:36Z","updated_at":"2017-03-18T03:56:36Z","closed_at":null,"body":"### Description\r\n\r\nWhen running tests to verify packages currently installed on OS X, tests return failures.\r\n\r\n### InSpec and Platform Version\r\n\r\nThis has been tested and happens with inspec versions 1.7.1 and 1.16.1\r\nThe Operating system is OS X 10.12.3\r\n\r\n### Replication Case\r\n\r\nI have an OSX 10.12.3 laptop. I have used the install files for this os version with packer to make a virtualbox vm to use for chef testing.\r\n\r\nI am using a very simple chef recipe to test the vm:\r\n```\r\ninclude_recipe 'homebrew'\r\n\r\npackage 'tree' do\r\n  action :install\r\nend\r\n```\r\nas well as very simple inspec tests to do some easy verifications:\r\n```\r\nunless os.windows?\r\n  describe user('root') do\r\n    it { should exist }\r\n  end\r\nend\r\n\r\ndescribe package('brew') do\r\n  it { should be_installed }\r\nend\r\n\r\ndescribe package('tree') do\r\n  it { should be_installed }\r\nend\r\n\r\ndescribe package('bash') do\r\n  it { should be_installed }\r\nend\r\n```\r\n\r\nI run kitchen create and converge\r\n\r\nI use kitchen login to access the box and manually verify that the packages are installed (they are).\r\n\r\nI run kitchen verify and get failures for all the packages. \r\nI get success for the root test.\r\n\r\n![errorsfromhost](https://cloud.githubusercontent.com/assets/1654144/24068659/f5cc91fc-0b6a-11e7-88ba-485030c70825.jpg)\r\n\r\nThen, to further verify the problem I use kitchen login to get back into the VM. From inside the vm I use homebrew to install inspec version 1.7.1 then i run the tests from within the vm in the event that the problem was with test kitchen. when i run it from within the VM i get similar but slightly different errors:\r\n\r\n![errorsfromguest](https://cloud.githubusercontent.com/assets/1654144/24068684/c5c646be-0b6b-11e7-94fa-2b3af110b3fa.jpg)\r\n\r\nTo complicate matters a bit, I decided to run the same tests against my host system (with inspec 1.16.1) and in this case i get a success with tree and root but failure with the other two:\r\n\r\n![errorsonhost](https://cloud.githubusercontent.com/assets/1654144/24068747/1b04d784-0b6d-11e7-965c-bf26188da8b7.jpg)\r\n\r\n\r\n### Possible Solutions\r\nI haven't got any idea. But a point in the right direction would be awesome!\r\n\r\n### Stacktrace\r\nThis is the kitchen log output, if that's helpful:\r\n```\r\n\r\nmbp:laptop andrew$ cat .kitchen/logs/kitchen.log\r\nI, [2017-03-17T23:10:33.090630 #4260]  INFO -- Kitchen: -----> Starting Kitchen (v1.15.0)\r\nI, [2017-03-17T23:10:34.168098 #4260]  INFO -- Kitchen: -----> Verifying <default-sierra-10123>...\r\nE, [2017-03-17T23:10:34.460415 #4260] ERROR -- Kitchen: ------Exception-------\r\nE, [2017-03-17T23:10:34.460442 #4260] ERROR -- Kitchen: Class: Kitchen::ActionFailed\r\nE, [2017-03-17T23:10:34.460455 #4260] ERROR -- Kitchen: Message: 1 actions failed.\r\n>>>>>>     Verify failed on instance <default-sierra-10123>.  Please see .kitchen/logs/default-sierra-10123.log for more details\r\nE, [2017-03-17T23:10:34.460467 #4260] ERROR -- Kitchen: ----------------------\r\nE, [2017-03-17T23:10:34.460476 #4260] ERROR -- Kitchen: ------Backtrace-------\r\nE, [2017-03-17T23:10:34.460485 #4260] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.15.0/lib/kitchen/command.rb:183:in `report_errors'\r\nE, [2017-03-17T23:10:34.460498 #4260] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.15.0/lib/kitchen/command.rb:174:in `run_action'\r\nE, [2017-03-17T23:10:34.460507 #4260] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.15.0/lib/kitchen/command/action.rb:36:in `block in call'\r\nE, [2017-03-17T23:10:34.460517 #4260] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/2.3.0/benchmark.rb:293:in `measure'\r\nE, [2017-03-17T23:10:34.460526 #4260] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.15.0/lib/kitchen/command/action.rb:34:in `call'\r\nE, [2017-03-17T23:10:34.460535 #4260] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.15.0/lib/kitchen/cli.rb:53:in `perform'\r\nE, [2017-03-17T23:10:34.460544 #4260] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.15.0/lib/kitchen/cli.rb:187:in `block (2 levels) in <class:CLI>'\r\nE, [2017-03-17T23:10:34.460553 #4260] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'\r\nE, [2017-03-17T23:10:34.460563 #4260] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'\r\nE, [2017-03-17T23:10:34.460572 #4260] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.15.0/lib/kitchen/cli.rb:334:in `invoke_task'\r\nE, [2017-03-17T23:10:34.460616 #4260] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'\r\nE, [2017-03-17T23:10:34.460625 #4260] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'\r\nE, [2017-03-17T23:10:34.460637 #4260] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.15.0/bin/kitchen:13:in `block in <top (required)>'\r\nE, [2017-03-17T23:10:34.460647 #4260] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.15.0/lib/kitchen/errors.rb:171:in `with_friendly_errors'\r\nE, [2017-03-17T23:10:34.460656 #4260] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.15.0/bin/kitchen:13:in `<top (required)>'\r\nE, [2017-03-17T23:10:34.460665 #4260] ERROR -- Kitchen: /usr/local/bin/kitchen:21:in `load'\r\nE, [2017-03-17T23:10:34.460673 #4260] ERROR -- Kitchen: /usr/local/bin/kitchen:21:in `<main>'\r\nE, [2017-03-17T23:10:34.460682 #4260] ERROR -- Kitchen: ----End Backtrace-----\r\nE, [2017-03-17T23:10:34.460690 #4260] ERROR -- Kitchen: -Composite Exception--\r\nE, [2017-03-17T23:10:34.460699 #4260] ERROR -- Kitchen: Class: Kitchen::InstanceFailure\r\nE, [2017-03-17T23:10:34.460707 #4260] ERROR -- Kitchen: Message: Verify failed on instance <default-sierra-10123>.  Please see .kitchen/logs/default-sierra-10123.log for more details\r\nE, [2017-03-17T23:10:34.460716 #4260] ERROR -- Kitchen: ----------------------\r\nE, [2017-03-17T23:10:34.460725 #4260] ERROR -- Kitchen: ------Backtrace-------\r\nE, [2017-03-17T23:10:34.460733 #4260] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/kitchen-inspec-0.17.0/lib/kitchen/verifier/inspec.rb:96:in `call'\r\nE, [2017-03-17T23:10:34.460742 #4260] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.15.0/lib/kitchen/instance.rb:434:in `block in verify_action'\r\nE, [2017-03-17T23:10:34.460768 #4260] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.15.0/lib/kitchen/instance.rb:527:in `synchronize_or_call'\r\nE, [2017-03-17T23:10:34.460779 #4260] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.15.0/lib/kitchen/instance.rb:489:in `block in action'\r\nE, [2017-03-17T23:10:34.460788 #4260] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/2.3.0/benchmark.rb:293:in `measure'\r\nE, [2017-03-17T23:10:34.460797 #4260] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.15.0/lib/kitchen/instance.rb:488:in `action'\r\nE, [2017-03-17T23:10:34.460806 #4260] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.15.0/lib/kitchen/instance.rb:426:in `verify_action'\r\nE, [2017-03-17T23:10:34.460815 #4260] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.15.0/lib/kitchen/instance.rb:359:in `block in transition_to'\r\nE, [2017-03-17T23:10:34.460824 #4260] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.15.0/lib/kitchen/instance.rb:358:in `each'\r\nE, [2017-03-17T23:10:34.460833 #4260] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.15.0/lib/kitchen/instance.rb:358:in `transition_to'\r\nE, [2017-03-17T23:10:34.460842 #4260] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.15.0/lib/kitchen/instance.rb:157:in `verify'\r\nE, [2017-03-17T23:10:34.460851 #4260] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.15.0/lib/kitchen/command.rb:197:in `public_send'\r\nE, [2017-03-17T23:10:34.460860 #4260] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.15.0/lib/kitchen/command.rb:197:in `run_action_in_thread'\r\nE, [2017-03-17T23:10:34.460872 #4260] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.15.0/lib/kitchen/command.rb:169:in `block (2 levels) in run_action'\r\nE, [2017-03-17T23:10:34.460881 #4260] ERROR -- Kitchen: ----End Backtrace-----\r\nE, [2017-03-17T23:10:34.460890 #4260] ERROR -- Kitchen: ---Nested Exception---\r\nE, [2017-03-17T23:10:34.460898 #4260] ERROR -- Kitchen: Class: Kitchen::ActionFailed\r\nE, [2017-03-17T23:10:34.460907 #4260] ERROR -- Kitchen: Message: Inspec Runner returns 1\r\nE, [2017-03-17T23:10:34.460915 #4260] ERROR -- Kitchen: ----------------------\r\nE, [2017-03-17T23:10:34.460924 #4260] ERROR -- Kitchen: ------Backtrace-------\r\nE, [2017-03-17T23:10:34.460932 #4260] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/kitchen-inspec-0.17.0/lib/kitchen/verifier/inspec.rb:96:in `call'\r\nE, [2017-03-17T23:10:34.460941 #4260] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.15.0/lib/kitchen/instance.rb:434:in `block in verify_action'\r\nE, [2017-03-17T23:10:34.460950 #4260] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.15.0/lib/kitchen/instance.rb:527:in `synchronize_or_call'\r\nE, [2017-03-17T23:10:34.460959 #4260] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.15.0/lib/kitchen/instance.rb:489:in `block in action'\r\nE, [2017-03-17T23:10:34.460997 #4260] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/2.3.0/benchmark.rb:293:in `measure'\r\nE, [2017-03-17T23:10:34.461007 #4260] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.15.0/lib/kitchen/instance.rb:488:in `action'\r\nE, [2017-03-17T23:10:34.461019 #4260] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.15.0/lib/kitchen/instance.rb:426:in `verify_action'\r\nE, [2017-03-17T23:10:34.461029 #4260] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.15.0/lib/kitchen/instance.rb:359:in `block in transition_to'\r\nE, [2017-03-17T23:10:34.461038 #4260] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.15.0/lib/kitchen/instance.rb:358:in `each'\r\nE, [2017-03-17T23:10:34.461053 #4260] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.15.0/lib/kitchen/instance.rb:358:in `transition_to'\r\nE, [2017-03-17T23:10:34.461063 #4260] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.15.0/lib/kitchen/instance.rb:157:in `verify'\r\nE, [2017-03-17T23:10:34.461072 #4260] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.15.0/lib/kitchen/command.rb:197:in `public_send'\r\nE, [2017-03-17T23:10:34.461081 #4260] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.15.0/lib/kitchen/command.rb:197:in `run_action_in_thread'\r\nE, [2017-03-17T23:10:34.461090 #4260] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.15.0/lib/kitchen/command.rb:169:in `block (2 levels) in run_action'\r\nE, [2017-03-17T23:10:34.461099 #4260] ERROR -- Kitchen: ----End Backtrace-----\r\nmbp:laptop andrew$\r\n```\r\n"}}
{"actor":{"display_login":"AndrewRussellHayes"}}