{"action":"created","issue":{"url":"https://api.github.com/repos/chef/chef-zero/issues/130","labels_url":"https://api.github.com/repos/chef/chef-zero/issues/130/labels{/name}","comments_url":"https://api.github.com/repos/chef/chef-zero/issues/130/comments","events_url":"https://api.github.com/repos/chef/chef-zero/issues/130/events","html_url":"https://github.com/chef/chef-zero/issues/130","id":71313835,"number":130,"title":"SocketError getaddrinfo: nodename nor servname provided, or not known","user":{"login":"JoeReid-Korrelate","id":7227022,"avatar_url":"https://avatars.githubusercontent.com/u/7227022?v=3","gravatar_id":"","url":"https://api.github.com/users/JoeReid-Korrelate","html_url":"https://github.com/JoeReid-Korrelate","followers_url":"https://api.github.com/users/JoeReid-Korrelate/followers","following_url":"https://api.github.com/users/JoeReid-Korrelate/following{/other_user}","gists_url":"https://api.github.com/users/JoeReid-Korrelate/gists{/gist_id}","starred_url":"https://api.github.com/users/JoeReid-Korrelate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoeReid-Korrelate/subscriptions","organizations_url":"https://api.github.com/users/JoeReid-Korrelate/orgs","repos_url":"https://api.github.com/users/JoeReid-Korrelate/repos","events_url":"https://api.github.com/users/JoeReid-Korrelate/events{/privacy}","received_events_url":"https://api.github.com/users/JoeReid-Korrelate/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-27T15:15:39Z","updated_at":"2015-04-27T18:41:34Z","closed_at":null,"body":"Hey guys,\r\n\r\nI've got Chef-Zero runs that fail with the error `SocketError getaddrinfo: nodename nor servname provided, or not known`.\r\n\r\nIt looks like before that there is a `INFO: HTTP Request Returned 404 Not Found : Object not found: http://localhost:8889/nodes/tester`, where `tester` = my machine name.  \r\n\r\n[Full stack trace here.](https://gist.github.com/JoeReid-Korrelate/d2ef9abab69bcb284188)\r\n\r\n**To reproduce:**\r\n1) Install Chef DK release candidate 5\r\n2) Run `chef-client -z simple.rb`, where simple.rb looks something like the recipe posted below.\r\n\r\n**Recipe:**\r\n```\r\nrequire 'chef/provisioning/aws_driver'\r\n\r\nwith_driver 'aws::us-east-1'\r\n\r\n# Public subnet\r\nmachine 'tester' do\r\n  tag 'test_successful'\r\n  recipe 'hdp::hello_world'\r\n  machine_options :bootstrap_options => {\r\n    :key_name => 'korrelate2012',\r\n    :image_id => 'ami-b23009da',\r\n    :subnet => 'subnet-aebab1da',\r\n    :security_groups => [ 'hortonworks_chef' ],\r\n    :instance_type => 'm3.medium',\r\n    :associate_public_ip_address => true\r\n  }\r\nend\r\n```\r\n\r\n**knife.rb**\r\n```\r\ncurrent_dir = File.dirname(__FILE__)\r\nlog_level                :info\r\nlog_location             STDOUT\r\nnode_name                \"jreid.local\"\r\nchef_zero.enabled\t true\r\nlocal_mode\t\t true\r\nclient_key               \"/Users/jreid/.ssh/korrelate2012.pem\"\r\nchef_server_url          \"http://localhost:8889\"\r\ncache_type               'BasicFile'\r\ncache_options( :path => \"#{ENV['HOME']}/.chef/checksums\" )\r\ncookbook_path            [ \"/Users/jreid/repo/chef-repo/cookbooks\", \"/Users/jreid/repo/chef-repo/site-cookbooks\", \"/Users/jreid/repo/chef-repo/berks-cookbooks\" ]\r\n\r\n# Amazon AWS\r\nknife[:aws_access_key_id] = ENV['AWS_ACCESS_KEY_ID']\r\nknife[:aws_secret_access_key] = ENV['AWS_SECRET_ACCESS_KEY']\r\n\r\n# Bootstrap with Chef-Zero\r\nknife[:ssh_user] = \"ec2-user\"\r\nchef_zero[:port] = \"8889\"\r\n```\r\n\r\n**Versions:**  (Chef DK 5 release candidate for Mac OSX, per https://github.com/chef/chef-provisioning/issues/322)\r\n```\r\nchef (12.2.1)\r\nchef-dk (0.5.0.rc.5)\r\nchef-provisioning (1.0.1)\r\nchef-provisioning-aws (1.0.4, 1.0.3)\r\nchef-provisioning-azure (0.3.2)\r\nchef-provisioning-fog (0.13.2)\r\nchef-provisioning-vagrant (0.8.3)\r\nchef-vault (2.4.0)\r\nchef-zero (4.2.1, 1.5.6)\r\ncheffish (1.1.2, 1.1.0)\r\nchefspec (4.2.0)\r\n```\r\n- Edit - Note that I ran into this with Chef DK 4 too.\r\n\r\nIt looks like it's not creating the node resource it needs on the Chef-Zero instance before it attempts to execute the rest of the resource.  Can anyone confirm/deny?  Are there any knife.rb or other configs I need to change?"},"comment":{"url":"https://api.github.com/repos/chef/chef-zero/issues/comments/96775623","html_url":"https://github.com/chef/chef-zero/issues/130#issuecomment-96775623","issue_url":"https://api.github.com/repos/chef/chef-zero/issues/130","id":96775623,"user":{"login":"Joseph-R","id":763529,"avatar_url":"https://avatars.githubusercontent.com/u/763529?v=3","gravatar_id":"","url":"https://api.github.com/users/Joseph-R","html_url":"https://github.com/Joseph-R","followers_url":"https://api.github.com/users/Joseph-R/followers","following_url":"https://api.github.com/users/Joseph-R/following{/other_user}","gists_url":"https://api.github.com/users/Joseph-R/gists{/gist_id}","starred_url":"https://api.github.com/users/Joseph-R/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Joseph-R/subscriptions","organizations_url":"https://api.github.com/users/Joseph-R/orgs","repos_url":"https://api.github.com/users/Joseph-R/repos","events_url":"https://api.github.com/users/Joseph-R/events{/privacy}","received_events_url":"https://api.github.com/users/Joseph-R/received_events","type":"User","site_admin":false},"created_at":"2015-04-27T18:41:34Z","updated_at":"2015-04-27T18:41:34Z","body":"Cross-posted from https://github.com/chef/chef-provisioning/issues/330.  \r\n\r\nI am not, at this point, 100% sure if the issue lies with my use case, chef-zero, or chef-provisioning.  I appreciate all input on this.  "}}