I'm attempting to use the following recipe to create a docker image on a CentOS 7 Virtualbox VM (for testing purposes):
require 'chef/provisioning/docker_driver'
machine_image 'zookeeper-test' do
recipe 'zookeeper'
driver 'docker'
machine_options :docker_options => {
:base_image => {
:name => 'ubuntu',
:repository => 'ubuntu',
:tag => '14.04'
}
}
end
And here is the relevant part of the output from "chef-client -l debug" when I run this recipe:
[2015-04-14T12:43:41-07:00] INFO: Processing machine_image[zookeeper-test] action create (tests::machine_image_test line 3)
[2015-04-14T12:43:41-07:00] DEBUG: providers for generic machine_image resource enabled on node include: []
[2015-04-14T12:43:41-07:00] DEBUG: providers that refused resource machine_image[zookeeper-test] were: []
[2015-04-14T12:43:41-07:00] DEBUG: providers that support resource machine_image[zookeeper-test] include: []
[2015-04-14T12:43:41-07:00] DEBUG: no providers supported the resource, falling back to enabled handlers
[2015-04-14T12:43:41-07:00] DEBUG: providers that survived replacement include: []
[2015-04-14T12:43:41-07:00] DEBUG: dynamic provider resolver FAILED to resolve a provider
[2015-04-14T12:43:41-07:00] DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_request
[2015-04-14T12:43:41-07:00] DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_request
[2015-04-14T12:43:41-07:00] DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_request
[2015-04-14T12:43:41-07:00] DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_request
[2015-04-14T12:43:41-07:00] DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_request
[2015-04-14T12:43:41-07:00] DEBUG: Signing the request as kube-master
[2015-04-14T12:43:41-07:00] DEBUG: String to sign: 'Method:GET
Hashed Path:7Z7zFOSXUinpODHzpJ+EIsUyzbA=
X-Ops-Content-Hash:2jmj7l5rSw0yVb/vlWAYkK/YBwk=
X-Ops-Timestamp:2015-04-14T19:43:41Z
X-Ops-UserId:kube-master'
Header hash: {"X-Ops-Sign"=>"algorithm=sha1;version=1.0;", "X-Ops-Userid"=>"kube-master", "X-Ops-Timestamp"=>"2015-04-14T19:43:41Z", "X-Ops-Content-Hash"=>"2jmj7l5rSw0yVb/vlWAYkK/YBwk=", "X-Ops-Authorization-1"=>"VMjVnN3HqhuKP7SjUGQxCcRWzdNNdZamISuIIbkWSJri8X9w4fB06pcZDcB1", "X-Ops-Authorization-2"=>"hoVhpSsVEpHhmPAAI4cyMmBA2XqIJ+Yqk7ORe6T+QfuZ3+M9fkZwdFrgVT2q", "X-Ops-Authorization-3"=>"jXY0OEABe3ZGwnrJTVtP3nR2gzi8oSbP3bSB4MfDdGIlhXH18h7zFE0xmCI8", "X-Ops-Authorization-4"=>"jhjfeCN3k+gMDINV3L6ngoOuVKfQ0x+ljL46V/3DIDd4Uy254j87jCxC6vzZ", "X-Ops-Authorization-5"=>"QnhrjUUg7zM0m4lOjv8yKipcISezYcqFkTTzFKITeaysNoRHqu7B5qzJf6WP", "X-Ops-Authorization-6"=>"ADkZ4/fvJdVHJg0j/dMY3YCs4gP1OBUufG+WtrxDPw=="}
[2015-04-14T12:43:41-07:00] DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_request
[2015-04-14T12:43:41-07:00] DEBUG: Initiating GET to https://chef-server-centos.com/organizations/tcga/data/machine_image/zookeeper-test
[2015-04-14T12:43:41-07:00] DEBUG: ---- HTTP Request Header Data: ----
[2015-04-14T12:43:41-07:00] DEBUG: Accept: application/json
[2015-04-14T12:43:41-07:00] DEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3
[2015-04-14T12:43:41-07:00] DEBUG: X-OPS-SIGN: algorithm=sha1;version=1.0;
[2015-04-14T12:43:41-07:00] DEBUG: X-OPS-USERID: kube-master
[2015-04-14T12:43:41-07:00] DEBUG: X-OPS-TIMESTAMP: 2015-04-14T19:43:41Z
[2015-04-14T12:43:41-07:00] DEBUG: X-OPS-CONTENT-HASH: 2jmj7l5rSw0yVb/vlWAYkK/YBwk=
[2015-04-14T12:43:41-07:00] DEBUG: X-OPS-AUTHORIZATION-1: VMjVnN3HqhuKP7SjUGQxCcRWzdNNdZamISuIIbkWSJri8X9w4fB06pcZDcB1
[2015-04-14T12:43:41-07:00] DEBUG: X-OPS-AUTHORIZATION-2: hoVhpSsVEpHhmPAAI4cyMmBA2XqIJ+Yqk7ORe6T+QfuZ3+M9fkZwdFrgVT2q
[2015-04-14T12:43:41-07:00] DEBUG: X-OPS-AUTHORIZATION-3: jXY0OEABe3ZGwnrJTVtP3nR2gzi8oSbP3bSB4MfDdGIlhXH18h7zFE0xmCI8
[2015-04-14T12:43:41-07:00] DEBUG: X-OPS-AUTHORIZATION-4: jhjfeCN3k+gMDINV3L6ngoOuVKfQ0x+ljL46V/3DIDd4Uy254j87jCxC6vzZ
[2015-04-14T12:43:41-07:00] DEBUG: X-OPS-AUTHORIZATION-5: QnhrjUUg7zM0m4lOjv8yKipcISezYcqFkTTzFKITeaysNoRHqu7B5qzJf6WP
[2015-04-14T12:43:41-07:00] DEBUG: X-OPS-AUTHORIZATION-6: ADkZ4/fvJdVHJg0j/dMY3YCs4gP1OBUufG+WtrxDPw==
[2015-04-14T12:43:41-07:00] DEBUG: HOST: chef-server-centos.com:443
[2015-04-14T12:43:41-07:00] DEBUG: X-REMOTE-REQUEST-ID: dbe4a079-ac26-43f4-a244-90ca08b0c21e
[2015-04-14T12:43:41-07:00] DEBUG: ---- End HTTP Request Header Data ----
[2015-04-14T12:43:41-07:00] DEBUG: ---- HTTP Status and Header Data: ----
[2015-04-14T12:43:41-07:00] DEBUG: HTTP 1.1 404 Object Not Found
[2015-04-14T12:43:41-07:00] DEBUG: server: ngx_openresty/1.4.3.6
[2015-04-14T12:43:41-07:00] DEBUG: date: Tue, 14 Apr 2015 12:43:40 GMT
[2015-04-14T12:43:41-07:00] DEBUG: content-length: 81
[2015-04-14T12:43:41-07:00] DEBUG: connection: close
[2015-04-14T12:43:41-07:00] DEBUG: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=1.5.0
[2015-04-14T12:43:41-07:00] DEBUG: ---- End HTTP Status/Header Data ----
[2015-04-14T12:43:41-07:00] DEBUG: ---- HTTP Response Body ----
[2015-04-14T12:43:41-07:00] DEBUG: {"error":["Cannot load data bag item zookeeper-test for data bag machine_image"]}
[2015-04-14T12:43:41-07:00] DEBUG: ---- End HTTP Response Body -----
[2015-04-14T12:43:41-07:00] DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_response
[2015-04-14T12:43:41-07:00] DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_response
[2015-04-14T12:43:41-07:00] DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_response
[2015-04-14T12:43:41-07:00] DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_response
[2015-04-14T12:43:41-07:00] DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_response
[2015-04-14T12:43:41-07:00] DEBUG: Expected JSON response, but got content-type ''
[2015-04-14T12:43:41-07:00] DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_response
[2015-04-14T12:43:41-07:00] INFO: HTTP Request Returned 404 Object Not Found: error
[2015-04-14T12:43:41-07:00] DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_request
[2015-04-14T12:43:41-07:00] DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_request
[2015-04-14T12:43:41-07:00] DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_request
[2015-04-14T12:43:41-07:00] DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_request
[2015-04-14T12:43:41-07:00] DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_request
[2015-04-14T12:43:41-07:00] DEBUG: Signing the request as kube-master
[2015-04-14T12:43:41-07:00] DEBUG: String to sign: 'Method:GET
Hashed Path:AMDCmRLYENS9SExi5vSX0/wD12w=
X-Ops-Content-Hash:2jmj7l5rSw0yVb/vlWAYkK/YBwk=
X-Ops-Timestamp:2015-04-14T19:43:41Z
X-Ops-UserId:kube-master'
Header hash: {"X-Ops-Sign"=>"algorithm=sha1;version=1.0;", "X-Ops-Userid"=>"kube-master", "X-Ops-Timestamp"=>"2015-04-14T19:43:41Z", "X-Ops-Content-Hash"=>"2jmj7l5rSw0yVb/vlWAYkK/YBwk=", "X-Ops-Authorization-1"=>"Gv7TrJGhytYk+yhWo9jzccfSsVWB0jUJ7M1t5R6adgZDfHKJdja+Ve+W+VkZ", "X-Ops-Authorization-2"=>"Uxk0sZHNSyY8XVXW+B8ZQdXVCPzmO/R5YFgHsnVQCDs67WweeqpncQw4ZFc9", "X-Ops-Authorization-3"=>"mRsyPMrPXLHsKtXvVERdEzKlXZC4KMHf74AZsptSLE63608kIPVy7CfLnY6a", "X-Ops-Authorization-4"=>"zWAc2iWNaC5tyhdGxOjK6Nm9RvXg+a2SUmMEgBIediT3IuLABSCh1YNUXkXd", "X-Ops-Authorization-5"=>"qj0sjXCfYdJbwsW1dEC1CnaPNpy946nmaRWqQ5HnpMZpLmUrti/BwwguIYMs", "X-Ops-Authorization-6"=>"J9WBf7gFPcna7ih0+D8s8zIZmSWxfOm5tK5ngu6nEA=="}
[2015-04-14T12:43:41-07:00] DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_request
[2015-04-14T12:43:41-07:00] DEBUG: Initiating GET to https://chef-server-centos.com/organizations/tcga/data/images/zookeeper-test
[2015-04-14T12:43:41-07:00] DEBUG: ---- HTTP Request Header Data: ----
[2015-04-14T12:43:41-07:00] DEBUG: Accept: application/json
[2015-04-14T12:43:41-07:00] DEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3
[2015-04-14T12:43:41-07:00] DEBUG: X-OPS-SIGN: algorithm=sha1;version=1.0;
[2015-04-14T12:43:41-07:00] DEBUG: X-OPS-USERID: kube-master
[2015-04-14T12:43:41-07:00] DEBUG: X-OPS-TIMESTAMP: 2015-04-14T19:43:41Z
[2015-04-14T12:43:41-07:00] DEBUG: X-OPS-CONTENT-HASH: 2jmj7l5rSw0yVb/vlWAYkK/YBwk=
[2015-04-14T12:43:41-07:00] DEBUG: X-OPS-AUTHORIZATION-1: Gv7TrJGhytYk+yhWo9jzccfSsVWB0jUJ7M1t5R6adgZDfHKJdja+Ve+W+VkZ
[2015-04-14T12:43:41-07:00] DEBUG: X-OPS-AUTHORIZATION-2: Uxk0sZHNSyY8XVXW+B8ZQdXVCPzmO/R5YFgHsnVQCDs67WweeqpncQw4ZFc9
[2015-04-14T12:43:41-07:00] DEBUG: X-OPS-AUTHORIZATION-3: mRsyPMrPXLHsKtXvVERdEzKlXZC4KMHf74AZsptSLE63608kIPVy7CfLnY6a
[2015-04-14T12:43:41-07:00] DEBUG: X-OPS-AUTHORIZATION-4: zWAc2iWNaC5tyhdGxOjK6Nm9RvXg+a2SUmMEgBIediT3IuLABSCh1YNUXkXd
[2015-04-14T12:43:41-07:00] DEBUG: X-OPS-AUTHORIZATION-5: qj0sjXCfYdJbwsW1dEC1CnaPNpy946nmaRWqQ5HnpMZpLmUrti/BwwguIYMs
[2015-04-14T12:43:41-07:00] DEBUG: X-OPS-AUTHORIZATION-6: J9WBf7gFPcna7ih0+D8s8zIZmSWxfOm5tK5ngu6nEA==
[2015-04-14T12:43:41-07:00] DEBUG: HOST: chef-server-centos.com:443
[2015-04-14T12:43:41-07:00] DEBUG: X-REMOTE-REQUEST-ID: dbe4a079-ac26-43f4-a244-90ca08b0c21e
[2015-04-14T12:43:41-07:00] DEBUG: ---- End HTTP Request Header Data ----
[2015-04-14T12:43:42-07:00] DEBUG: ---- HTTP Status and Header Data: ----
[2015-04-14T12:43:42-07:00] DEBUG: HTTP 1.1 404 Object Not Found
[2015-04-14T12:43:42-07:00] DEBUG: server: ngx_openresty/1.4.3.6
[2015-04-14T12:43:42-07:00] DEBUG: date: Tue, 14 Apr 2015 12:43:40 GMT
[2015-04-14T12:43:42-07:00] DEBUG: content-length: 74
[2015-04-14T12:43:42-07:00] DEBUG: connection: close
[2015-04-14T12:43:42-07:00] DEBUG: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=1.5.0
[2015-04-14T12:43:42-07:00] DEBUG: ---- End HTTP Status/Header Data ----
[2015-04-14T12:43:42-07:00] DEBUG: ---- HTTP Response Body ----
[2015-04-14T12:43:42-07:00] DEBUG: {"error":["Cannot load data bag item zookeeper-test for data bag images"]}
[2015-04-14T12:43:42-07:00] DEBUG: ---- End HTTP Response Body -----
[2015-04-14T12:43:42-07:00] DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_response
[2015-04-14T12:43:42-07:00] DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_response
[2015-04-14T12:43:42-07:00] DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_response
[2015-04-14T12:43:42-07:00] DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_response
[2015-04-14T12:43:42-07:00] DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_response
[2015-04-14T12:43:42-07:00] DEBUG: Expected JSON response, but got content-type ''
[2015-04-14T12:43:42-07:00] DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_response
[2015-04-14T12:43:42-07:00] INFO: HTTP Request Returned 404 Object Not Found: error
[2015-04-14T12:43:42-07:00] DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_request
[2015-04-14T12:43:42-07:00] DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_request
[2015-04-14T12:43:42-07:00] DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_request
[2015-04-14T12:43:42-07:00] DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_request
[2015-04-14T12:43:42-07:00] DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_request
[2015-04-14T12:43:42-07:00] DEBUG: Signing the request as kube-master
[2015-04-14T12:43:42-07:00] DEBUG: String to sign: 'Method:GET
Hashed Path:EXE2LPExbDohXR8mehvp+dZnBfw=
X-Ops-Content-Hash:2jmj7l5rSw0yVb/vlWAYkK/YBwk=
X-Ops-Timestamp:2015-04-14T19:43:42Z
X-Ops-UserId:kube-master'
Header hash: {"X-Ops-Sign"=>"algorithm=sha1;version=1.0;", "X-Ops-Userid"=>"kube-master", "X-Ops-Timestamp"=>"2015-04-14T19:43:42Z", "X-Ops-Content-Hash"=>"2jmj7l5rSw0yVb/vlWAYkK/YBwk=", "X-Ops-Authorization-1"=>"lesf0+354i3049yCUcSNLBBIQj3nBDxHtSgQRW8M3Gb4dVE9BK6OPHLomgEL", "X-Ops-Authorization-2"=>"Hx97QRuPQ/muClI1wXlP1BKVJGAn2bhAZSbf4ZDqIPlkWn1s3agC2ePUB0rg", "X-Ops-Authorization-3"=>"k1+GO4Dow3mrfog/AW24sX/l/vDOZy8C/ROAjYg8EaLIf847/caAyO6wt3R1", "X-Ops-Authorization-4"=>"Vln/PLWxQ/EkZq/H9JpskAp7TI5Qrioz4kku2iLa4OhvAB95meMCQYY1yBM3", "X-Ops-Authorization-5"=>"eNo6Y2l7KYmJJW0qJYJ47wpK1q3LD40mTHGXoO+xzIk76WF0pzEYnlNSSHCl", "X-Ops-Authorization-6"=>"yuTEYx7A4miGPN87j5+IDTaTVdpkIASi61ee5/7QTA=="}
[2015-04-14T12:43:42-07:00] DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_request
[2015-04-14T12:43:42-07:00] DEBUG: Initiating GET to https://chef-server-centos.com/organizations/tcga/nodes/zookeeper-test
[2015-04-14T12:43:42-07:00] DEBUG: ---- HTTP Request Header Data: ----
[2015-04-14T12:43:42-07:00] DEBUG: Accept: application/json
[2015-04-14T12:43:42-07:00] DEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3
[2015-04-14T12:43:42-07:00] DEBUG: X-OPS-SIGN: algorithm=sha1;version=1.0;
[2015-04-14T12:43:42-07:00] DEBUG: X-OPS-USERID: kube-master
[2015-04-14T12:43:42-07:00] DEBUG: X-OPS-TIMESTAMP: 2015-04-14T19:43:42Z
[2015-04-14T12:43:42-07:00] DEBUG: X-OPS-CONTENT-HASH: 2jmj7l5rSw0yVb/vlWAYkK/YBwk=
[2015-04-14T12:43:42-07:00] DEBUG: X-OPS-AUTHORIZATION-1: lesf0+354i3049yCUcSNLBBIQj3nBDxHtSgQRW8M3Gb4dVE9BK6OPHLomgEL
[2015-04-14T12:43:42-07:00] DEBUG: X-OPS-AUTHORIZATION-2: Hx97QRuPQ/muClI1wXlP1BKVJGAn2bhAZSbf4ZDqIPlkWn1s3agC2ePUB0rg
[2015-04-14T12:43:42-07:00] DEBUG: X-OPS-AUTHORIZATION-3: k1+GO4Dow3mrfog/AW24sX/l/vDOZy8C/ROAjYg8EaLIf847/caAyO6wt3R1
[2015-04-14T12:43:42-07:00] DEBUG: X-OPS-AUTHORIZATION-4: Vln/PLWxQ/EkZq/H9JpskAp7TI5Qrioz4kku2iLa4OhvAB95meMCQYY1yBM3
[2015-04-14T12:43:42-07:00] DEBUG: X-OPS-AUTHORIZATION-5: eNo6Y2l7KYmJJW0qJYJ47wpK1q3LD40mTHGXoO+xzIk76WF0pzEYnlNSSHCl
[2015-04-14T12:43:42-07:00] DEBUG: X-OPS-AUTHORIZATION-6: yuTEYx7A4miGPN87j5+IDTaTVdpkIASi61ee5/7QTA==
[2015-04-14T12:43:42-07:00] DEBUG: HOST: chef-server-centos.com:443
[2015-04-14T12:43:42-07:00] DEBUG: X-REMOTE-REQUEST-ID: dbe4a079-ac26-43f4-a244-90ca08b0c21e
[2015-04-14T12:43:42-07:00] DEBUG: ---- End HTTP Request Header Data ----
[2015-04-14T12:43:42-07:00] DEBUG: ---- HTTP Status and Header Data: ----
[2015-04-14T12:43:42-07:00] DEBUG: HTTP 1.1 200 OK
[2015-04-14T12:43:42-07:00] DEBUG: server: ngx_openresty/1.4.3.6
[2015-04-14T12:43:42-07:00] DEBUG: date: Tue, 14 Apr 2015 12:43:40 GMT
[2015-04-14T12:43:42-07:00] DEBUG: content-type: application/json
[2015-04-14T12:43:42-07:00] DEBUG: transfer-encoding: chunked
[2015-04-14T12:43:42-07:00] DEBUG: connection: close
[2015-04-14T12:43:42-07:00] DEBUG: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=1.5.0
[2015-04-14T12:43:42-07:00] DEBUG: content-encoding: gzip
[2015-04-14T12:43:42-07:00] DEBUG: ---- End HTTP Status/Header Data ----
[2015-04-14T12:43:42-07:00] DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_response
[2015-04-14T12:43:42-07:00] DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_response
[2015-04-14T12:43:42-07:00] DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_response
[2015-04-14T12:43:42-07:00] DEBUG: decompressing gzip response
[2015-04-14T12:43:42-07:00] DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_response
[2015-04-14T12:43:42-07:00] DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_response
[2015-04-14T12:43:42-07:00] DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_response
[2015-04-14T12:43:42-07:00] INFO: Processing chef_node[zookeeper-test] action create (basic_chef_client::block line 57)
[2015-04-14T12:43:42-07:00] DEBUG: providers for generic chef_node resource enabled on node include: []
[2015-04-14T12:43:42-07:00] DEBUG: providers that refused resource chef_node[zookeeper-test] were: []
[2015-04-14T12:43:42-07:00] DEBUG: providers that support resource chef_node[zookeeper-test] include: []
[2015-04-14T12:43:42-07:00] DEBUG: no providers supported the resource, falling back to enabled handlers
[2015-04-14T12:43:42-07:00] DEBUG: providers that survived replacement include: []
[2015-04-14T12:43:42-07:00] DEBUG: dynamic provider resolver FAILED to resolve a provider
[2015-04-14T12:43:42-07:00] DEBUG: Platform basic_chef_client not found, using all defaults. (Unsupported platform?)
[2015-04-14T12:43:42-07:00] DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_request
[2015-04-14T12:43:42-07:00] DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_request
[2015-04-14T12:43:42-07:00] DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_request
[2015-04-14T12:43:42-07:00] DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_request
[2015-04-14T12:43:42-07:00] DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_request
[2015-04-14T12:43:42-07:00] DEBUG: Signing the request as kube-master
[2015-04-14T12:43:42-07:00] DEBUG: String to sign: 'Method:GET
Hashed Path:EXE2LPExbDohXR8mehvp+dZnBfw=
X-Ops-Content-Hash:2jmj7l5rSw0yVb/vlWAYkK/YBwk=
X-Ops-Timestamp:2015-04-14T19:43:42Z
X-Ops-UserId:kube-master'
Header hash: {"X-Ops-Sign"=>"algorithm=sha1;version=1.0;", "X-Ops-Userid"=>"kube-master", "X-Ops-Timestamp"=>"2015-04-14T19:43:42Z", "X-Ops-Content-Hash"=>"2jmj7l5rSw0yVb/vlWAYkK/YBwk=", "X-Ops-Authorization-1"=>"lesf0+354i3049yCUcSNLBBIQj3nBDxHtSgQRW8M3Gb4dVE9BK6OPHLomgEL", "X-Ops-Authorization-2"=>"Hx97QRuPQ/muClI1wXlP1BKVJGAn2bhAZSbf4ZDqIPlkWn1s3agC2ePUB0rg", "X-Ops-Authorization-3"=>"k1+GO4Dow3mrfog/AW24sX/l/vDOZy8C/ROAjYg8EaLIf847/caAyO6wt3R1", "X-Ops-Authorization-4"=>"Vln/PLWxQ/EkZq/H9JpskAp7TI5Qrioz4kku2iLa4OhvAB95meMCQYY1yBM3", "X-Ops-Authorization-5"=>"eNo6Y2l7KYmJJW0qJYJ47wpK1q3LD40mTHGXoO+xzIk76WF0pzEYnlNSSHCl", "X-Ops-Authorization-6"=>"yuTEYx7A4miGPN87j5+IDTaTVdpkIASi61ee5/7QTA=="}
[2015-04-14T12:43:42-07:00] DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_request
[2015-04-14T12:43:42-07:00] DEBUG: Initiating GET to https://chef-server-centos.com/organizations/tcga/nodes/zookeeper-test
[2015-04-14T12:43:42-07:00] DEBUG: ---- HTTP Request Header Data: ----
[2015-04-14T12:43:42-07:00] DEBUG: Accept: application/json
[2015-04-14T12:43:42-07:00] DEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3
[2015-04-14T12:43:42-07:00] DEBUG: X-OPS-SIGN: algorithm=sha1;version=1.0;
[2015-04-14T12:43:42-07:00] DEBUG: X-OPS-USERID: kube-master
[2015-04-14T12:43:42-07:00] DEBUG: X-OPS-TIMESTAMP: 2015-04-14T19:43:42Z
[2015-04-14T12:43:42-07:00] DEBUG: X-OPS-CONTENT-HASH: 2jmj7l5rSw0yVb/vlWAYkK/YBwk=
[2015-04-14T12:43:42-07:00] DEBUG: X-OPS-AUTHORIZATION-1: lesf0+354i3049yCUcSNLBBIQj3nBDxHtSgQRW8M3Gb4dVE9BK6OPHLomgEL
[2015-04-14T12:43:42-07:00] DEBUG: X-OPS-AUTHORIZATION-2: Hx97QRuPQ/muClI1wXlP1BKVJGAn2bhAZSbf4ZDqIPlkWn1s3agC2ePUB0rg
[2015-04-14T12:43:42-07:00] DEBUG: X-OPS-AUTHORIZATION-3: k1+GO4Dow3mrfog/AW24sX/l/vDOZy8C/ROAjYg8EaLIf847/caAyO6wt3R1
[2015-04-14T12:43:42-07:00] DEBUG: X-OPS-AUTHORIZATION-4: Vln/PLWxQ/EkZq/H9JpskAp7TI5Qrioz4kku2iLa4OhvAB95meMCQYY1yBM3
[2015-04-14T12:43:42-07:00] DEBUG: X-OPS-AUTHORIZATION-5: eNo6Y2l7KYmJJW0qJYJ47wpK1q3LD40mTHGXoO+xzIk76WF0pzEYnlNSSHCl
[2015-04-14T12:43:42-07:00] DEBUG: X-OPS-AUTHORIZATION-6: yuTEYx7A4miGPN87j5+IDTaTVdpkIASi61ee5/7QTA==
[2015-04-14T12:43:42-07:00] DEBUG: HOST: chef-server-centos.com:443
[2015-04-14T12:43:42-07:00] DEBUG: X-REMOTE-REQUEST-ID: dbe4a079-ac26-43f4-a244-90ca08b0c21e
[2015-04-14T12:43:42-07:00] DEBUG: ---- End HTTP Request Header Data ----
[2015-04-14T12:43:42-07:00] DEBUG: ---- HTTP Status and Header Data: ----
[2015-04-14T12:43:42-07:00] DEBUG: HTTP 1.1 200 OK
[2015-04-14T12:43:42-07:00] DEBUG: server: ngx_openresty/1.4.3.6
[2015-04-14T12:43:42-07:00] DEBUG: date: Tue, 14 Apr 2015 12:43:40 GMT
[2015-04-14T12:43:42-07:00] DEBUG: content-type: application/json
[2015-04-14T12:43:42-07:00] DEBUG: transfer-encoding: chunked
[2015-04-14T12:43:42-07:00] DEBUG: connection: close
[2015-04-14T12:43:42-07:00] DEBUG: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=1.5.0
[2015-04-14T12:43:42-07:00] DEBUG: content-encoding: gzip
[2015-04-14T12:43:42-07:00] DEBUG: ---- End HTTP Status/Header Data ----
[2015-04-14T12:43:42-07:00] DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_response
[2015-04-14T12:43:42-07:00] DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_response
[2015-04-14T12:43:42-07:00] DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_response
[2015-04-14T12:43:42-07:00] DEBUG: decompressing gzip response
[2015-04-14T12:43:42-07:00] DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_response
[2015-04-14T12:43:42-07:00] DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_response
[2015-04-14T12:43:42-07:00] DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_response
[2015-04-14T12:43:42-07:00] DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_request
[2015-04-14T12:43:42-07:00] DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_request
[2015-04-14T12:43:42-07:00] DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_request
[2015-04-14T12:43:42-07:00] DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_request
[2015-04-14T12:43:42-07:00] DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_request
[2015-04-14T12:43:42-07:00] DEBUG: Signing the request as kube-master
[2015-04-14T12:43:42-07:00] DEBUG: String to sign: 'Method:PUT
Hashed Path:EXE2LPExbDohXR8mehvp+dZnBfw=
X-Ops-Content-Hash:73ker5e4SW7j/QWKhueUImjIA5M=
X-Ops-Timestamp:2015-04-14T19:43:42Z
X-Ops-UserId:kube-master'
Header hash: {"X-Ops-Sign"=>"algorithm=sha1;version=1.0;", "X-Ops-Userid"=>"kube-master", "X-Ops-Timestamp"=>"2015-04-14T19:43:42Z", "X-Ops-Content-Hash"=>"73ker5e4SW7j/QWKhueUImjIA5M=", "X-Ops-Authorization-1"=>"TQ30Gh05GFfQ5fCnoKcXnA3bYUanlhnLqfR1s87L5+yiOF+THTKYZ/HEVSz2", "X-Ops-Authorization-2"=>"HInCsGlAmuQ8NUSb6syJk4bB8VrnyQDewB2ZWqj4jUdTSFz+OM1f14IsokmF", "X-Ops-Authorization-3"=>"vvkptFSJb29xpaJTHEZDlmAmOZmKK+IReBFxfx+I5YvjKrrT5KUPtNfSpcuN", "X-Ops-Authorization-4"=>"FIzslulwoPCXmjHcjZID/1em90NkuLVpZXKk8a/pT3st5I3STHl/IF+uQoLn", "X-Ops-Authorization-5"=>"1FpL8wrkpaj0tqC45RHQY/InJ89Niix3Qw0tVg52BAZViEzfWKLph0a5xsdq", "X-Ops-Authorization-6"=>"7Gqz3RuXJR34dYV7KFmo4jHpglAPVPZ94MPksqqAow=="}
[2015-04-14T12:43:42-07:00] DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_request
[2015-04-14T12:43:42-07:00] DEBUG: Initiating PUT to https://chef-server-centos.com/organizations/tcga/nodes/zookeeper-test
[2015-04-14T12:43:42-07:00] DEBUG: ---- HTTP Request Header Data: ----
[2015-04-14T12:43:42-07:00] DEBUG: Content-Type: application/json
[2015-04-14T12:43:42-07:00] DEBUG: Accept: application/json
[2015-04-14T12:43:42-07:00] DEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3
[2015-04-14T12:43:42-07:00] DEBUG: X-OPS-SIGN: algorithm=sha1;version=1.0;
[2015-04-14T12:43:42-07:00] DEBUG: X-OPS-USERID: kube-master
[2015-04-14T12:43:42-07:00] DEBUG: X-OPS-TIMESTAMP: 2015-04-14T19:43:42Z
[2015-04-14T12:43:42-07:00] DEBUG: X-OPS-CONTENT-HASH: 73ker5e4SW7j/QWKhueUImjIA5M=
[2015-04-14T12:43:42-07:00] DEBUG: X-OPS-AUTHORIZATION-1: TQ30Gh05GFfQ5fCnoKcXnA3bYUanlhnLqfR1s87L5+yiOF+THTKYZ/HEVSz2
[2015-04-14T12:43:42-07:00] DEBUG: X-OPS-AUTHORIZATION-2: HInCsGlAmuQ8NUSb6syJk4bB8VrnyQDewB2ZWqj4jUdTSFz+OM1f14IsokmF
[2015-04-14T12:43:42-07:00] DEBUG: X-OPS-AUTHORIZATION-3: vvkptFSJb29xpaJTHEZDlmAmOZmKK+IReBFxfx+I5YvjKrrT5KUPtNfSpcuN
[2015-04-14T12:43:42-07:00] DEBUG: X-OPS-AUTHORIZATION-4: FIzslulwoPCXmjHcjZID/1em90NkuLVpZXKk8a/pT3st5I3STHl/IF+uQoLn
[2015-04-14T12:43:42-07:00] DEBUG: X-OPS-AUTHORIZATION-5: 1FpL8wrkpaj0tqC45RHQY/InJ89Niix3Qw0tVg52BAZViEzfWKLph0a5xsdq
[2015-04-14T12:43:42-07:00] DEBUG: X-OPS-AUTHORIZATION-6: 7Gqz3RuXJR34dYV7KFmo4jHpglAPVPZ94MPksqqAow==
[2015-04-14T12:43:42-07:00] DEBUG: HOST: chef-server-centos.com:443
[2015-04-14T12:43:42-07:00] DEBUG: X-REMOTE-REQUEST-ID: dbe4a079-ac26-43f4-a244-90ca08b0c21e
[2015-04-14T12:43:42-07:00] DEBUG: Content-Length: 471
[2015-04-14T12:43:42-07:00] DEBUG: ---- End HTTP Request Header Data ----
[2015-04-14T12:43:42-07:00] DEBUG: ---- HTTP Status and Header Data: ----
[2015-04-14T12:43:42-07:00] DEBUG: HTTP 1.1 200 OK
[2015-04-14T12:43:42-07:00] DEBUG: server: ngx_openresty/1.4.3.6
[2015-04-14T12:43:42-07:00] DEBUG: date: Tue, 14 Apr 2015 12:43:40 GMT
[2015-04-14T12:43:42-07:00] DEBUG: content-type: application/json
[2015-04-14T12:43:42-07:00] DEBUG: transfer-encoding: chunked
[2015-04-14T12:43:42-07:00] DEBUG: connection: close
[2015-04-14T12:43:42-07:00] DEBUG: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=1.5.0
[2015-04-14T12:43:42-07:00] DEBUG: content-encoding: gzip
[2015-04-14T12:43:42-07:00] DEBUG: ---- End HTTP Status/Header Data ----
[2015-04-14T12:43:42-07:00] DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_response
[2015-04-14T12:43:42-07:00] DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_response
[2015-04-14T12:43:42-07:00] DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_response
[2015-04-14T12:43:42-07:00] DEBUG: decompressing gzip response
[2015-04-14T12:43:42-07:00] DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_response
[2015-04-14T12:43:42-07:00] DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_response
[2015-04-14T12:43:42-07:00] DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_response
[2015-04-14T12:43:42-07:00] DEBUG: No matching images for chef:zookeeper-test, creating!
[2015-04-14T12:44:05-07:00] DEBUG: Allocated Docker::Image { :id => d0955f21bf24, :info => {"id"=>"d0955f21bf24", :headers=>{}}, :connection => Docker::Connection { :url => unix:///, :options => {:socket=>"/var/run/docker.sock"} } }
[2015-04-14T12:44:05-07:00] DEBUG: Tagged image Docker::Image { :id => d0955f21bf24, :info => {"id"=>"d0955f21bf24", :headers=>{}, "RepoTags"=>["chef:zookeeper-test"]}, :connection => Docker::Connection { :url => unix:///, :options => {:socket=>"/var/run/docker.sock"} } }
[2015-04-14T12:44:05-07:00] DEBUG: Start machine for container zookeeper-test using base image chef:zookeeper-test with options {:base_image=>{:name=>"ubuntu", :repository=>"ubuntu", :tag=>"14.04"}}
๏ฟฝ[0m
================================================================================๏ฟฝ[0m
๏ฟฝ[31mError executing action `create` on resource 'machine_image[zookeeper-test]'๏ฟฝ[0m
================================================================================๏ฟฝ[0m
๏ฟฝ[0mNoMethodError๏ฟฝ[0m
-------------๏ฟฝ[0m
undefined method `id' for nil:NilClass๏ฟฝ[0m
๏ฟฝ[0mResource Declaration:๏ฟฝ[0m
---------------------๏ฟฝ[0m
# In /var/chef/cache/cookbooks/tests/recipes/machine_image_test.rb
๏ฟฝ[0m
๏ฟฝ[0m 3: machine_image 'zookeeper-test' do
๏ฟฝ[0m 4: recipe 'zookeeper'
๏ฟฝ[0m 5: driver 'docker'
๏ฟฝ[0m 6: machine_options :docker_options => {
๏ฟฝ[0m 7: :base_image => {
๏ฟฝ[0m 8: :name => 'ubuntu',
๏ฟฝ[0m 9: :repository => 'ubuntu',
๏ฟฝ[0m 10: :tag => '14.04'
๏ฟฝ[0m 11: }
๏ฟฝ[0m 12: }
๏ฟฝ[0m 13: end
๏ฟฝ[0m
๏ฟฝ[0mCompiled Resource:๏ฟฝ[0m
------------------๏ฟฝ[0m
# Declared in /var/chef/cache/cookbooks/tests/recipes/machine_image_test.rb:3:in `from_file'
๏ฟฝ[0m
๏ฟฝ[0mmachine_image("zookeeper-test") do
๏ฟฝ[0m action :create
๏ฟฝ[0m retries 0
๏ฟฝ[0m retry_delay 2
๏ฟฝ[0m default_guard_interpreter :default
๏ฟฝ[0m chef_server {:chef_server_url=>"https://chef-server-centos.com/organizations/tcga", :options=>{:client_name=>"kube-master", :signing_key_filename=>"/etc/chef/client.pem"}}
๏ฟฝ[0m driver "docker"
๏ฟฝ[0m machine_options {:docker_options=>{:base_image=>{:name=>"ubuntu", :repository=>"ubuntu", :tag=>"14.04"}}}
๏ฟฝ[0m declared_type :machine_image
๏ฟฝ[0m cookbook_name "tests"
๏ฟฝ[0m recipe_name "machine_image_test"
๏ฟฝ[0m run_list_modifiers [#<Chef::RunList::RunListItem:0x00000003521ef0 @version=nil, @type=:recipe, @name="zookeeper">]
๏ฟฝ[0mend
๏ฟฝ[0m
๏ฟฝ[0m[2015-04-14T12:44:06-07:00] INFO: Running queued delayed notifications before re-raising exception
[2015-04-14T12:44:06-07:00] DEBUG: Re-raising exception: NoMethodError - machine_image[zookeeper-test] (tests::machine_image_test line 3) had an error: NoMethodError: undefined method `id' for nil:NilClass
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-provisioning-docker-0.5.2/lib/chef/provisioning/docker_driver/driver.rb:200:in `rescue in start_machine'
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-provisioning-docker-0.5.2/lib/chef/provisioning/docker_driver/driver.rb:194:in `start_machine'
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-provisioning-docker-0.5.2/lib/chef/provisioning/docker_driver/driver.rb:88:in `ready_machine'
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-provisioning-0.20.1/lib/chef/provider/machine.rb:38:in `block in <class:Machine>'
/opt/chef/embedded/apps/chef/lib/chef/provider/lwrp_base.rb:60:in `instance_eval'
/opt/chef/embedded/apps/chef/lib/chef/provider/lwrp_base.rb:60:in `recipe_eval_with_update_check'
/opt/chef/embedded/apps/chef/lib/chef/provider/lwrp_base.rb:45:in `block in action'
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-provisioning-0.20.1/lib/chef/provider/machine.rb:55:in `block in <class:Machine>'
/opt/chef/embedded/apps/chef/lib/chef/provider/lwrp_base.rb:60:in `instance_eval'
/opt/chef/embedded/apps/chef/lib/chef/provider/lwrp_base.rb:60:in `recipe_eval_with_update_check'
/opt/chef/embedded/apps/chef/lib/chef/provider/lwrp_base.rb:45:in `block in action'
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-provisioning-0.20.1/lib/chef/provider/machine_image.rb:60:in `create_image'
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-provisioning-0.20.1/lib/chef/provider/machine_image.rb:35:in `block in <class:MachineImage>'
/opt/chef/embedded/apps/chef/lib/chef/provider/lwrp_base.rb:138:in `instance_eval'
/opt/chef/embedded/apps/chef/lib/chef/provider/lwrp_base.rb:138:in `block in action'
/opt/chef/embedded/apps/chef/lib/chef/provider.rb:149:in `run_action'
/opt/chef/embedded/apps/chef/lib/chef/resource.rb:561:in `run_action'
/opt/chef/embedded/apps/chef/lib/chef/runner.rb:49:in `run_action'
/opt/chef/embedded/apps/chef/lib/chef/runner.rb:81:in `block (2 levels) in converge'
/opt/chef/embedded/apps/chef/lib/chef/runner.rb:81:in `each'
/opt/chef/embedded/apps/chef/lib/chef/runner.rb:81:in `block in converge'
/opt/chef/embedded/apps/chef/lib/chef/resource_collection/resource_list.rb:83:in `block in execute_each_resource'
/opt/chef/embedded/apps/chef/lib/chef/resource_collection/stepable_iterator.rb:116:in `call'
/opt/chef/embedded/apps/chef/lib/chef/resource_collection/stepable_iterator.rb:116:in `call_iterator_block'
/opt/chef/embedded/apps/chef/lib/chef/resource_collection/stepable_iterator.rb:85:in `step'
/opt/chef/embedded/apps/chef/lib/chef/resource_collection/stepable_iterator.rb:104:in `iterate'
/opt/chef/embedded/apps/chef/lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index'
/opt/chef/embedded/apps/chef/lib/chef/resource_collection/resource_list.rb:81:in `execute_each_resource'
/opt/chef/embedded/apps/chef/lib/chef/runner.rb:80:in `converge'
/opt/chef/embedded/apps/chef/lib/chef/client.rb:331:in `block in converge'
/opt/chef/embedded/apps/chef/lib/chef/client.rb:326:in `catch'
/opt/chef/embedded/apps/chef/lib/chef/client.rb:326:in `converge'
/opt/chef/embedded/apps/chef/lib/chef/client.rb:345:in `converge_and_save'
/opt/chef/embedded/apps/chef/lib/chef/client.rb:449:in `run'
/opt/chef/embedded/apps/chef/lib/chef/application.rb:271:in `block in fork_chef_client'
/opt/chef/embedded/apps/chef/lib/chef/application.rb:259:in `fork'
/opt/chef/embedded/apps/chef/lib/chef/application.rb:259:in `fork_chef_client'
/opt/chef/embedded/apps/chef/lib/chef/application.rb:225:in `block in run_chef_client'
/opt/chef/embedded/apps/chef/lib/chef/local_mode.rb:38:in `with_server_connectivity'
/opt/chef/embedded/apps/chef/lib/chef/application.rb:213:in `run_chef_client'
/opt/chef/embedded/apps/chef/lib/chef/application/client.rb:392:in `block in interval_run_chef_client'
/opt/chef/embedded/apps/chef/lib/chef/application/client.rb:382:in `loop'
/opt/chef/embedded/apps/chef/lib/chef/application/client.rb:382:in `interval_run_chef_client'
/opt/chef/embedded/apps/chef/lib/chef/application/client.rb:372:in `run_application'
/opt/chef/embedded/apps/chef/lib/chef/application.rb:60:in `run'
/opt/chef/embedded/apps/chef/bin/chef-client:26:in `<top (required)>'
/bin/chef-client:51:in `load'
/bin/chef-client:51:in `<main>'
[2015-04-14T12:44:06-07:00] ERROR: Running exception handlers
[2015-04-14T12:44:06-07:00] ERROR: Exception handlers complete
[2015-04-14T12:44:06-07:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2015-04-14T12:44:06-07:00] DEBUG: NoMethodError: machine_image[zookeeper-test] (tests::machine_image_test line 3) had an error: NoMethodError: undefined method `id' for nil:NilClass
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-provisioning-docker-0.5.2/lib/chef/provisioning/docker_driver/driver.rb:200:in `rescue in start_machine'
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-provisioning-docker-0.5.2/lib/chef/provisioning/docker_driver/driver.rb:194:in `start_machine'
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-provisioning-docker-0.5.2/lib/chef/provisioning/docker_driver/driver.rb:88:in `ready_machine'
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-provisioning-0.20.1/lib/chef/provider/machine.rb:38:in `block in <class:Machine>'
/opt/chef/embedded/apps/chef/lib/chef/provider/lwrp_base.rb:60:in `instance_eval'
/opt/chef/embedded/apps/chef/lib/chef/provider/lwrp_base.rb:60:in `recipe_eval_with_update_check'
/opt/chef/embedded/apps/chef/lib/chef/provider/lwrp_base.rb:45:in `block in action'
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-provisioning-0.20.1/lib/chef/provider/machine.rb:55:in `block in <class:Machine>'
/opt/chef/embedded/apps/chef/lib/chef/provider/lwrp_base.rb:60:in `instance_eval'
/opt/chef/embedded/apps/chef/lib/chef/provider/lwrp_base.rb:60:in `recipe_eval_with_update_check'
/opt/chef/embedded/apps/chef/lib/chef/provider/lwrp_base.rb:45:in `block in action'
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-provisioning-0.20.1/lib/chef/provider/machine_image.rb:60:in `create_image'
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-provisioning-0.20.1/lib/chef/provider/machine_image.rb:35:in `block in <class:MachineImage>'
/opt/chef/embedded/apps/chef/lib/chef/provider/lwrp_base.rb:138:in `instance_eval'
/opt/chef/embedded/apps/chef/lib/chef/provider/lwrp_base.rb:138:in `block in action'
/opt/chef/embedded/apps/chef/lib/chef/provider.rb:149:in `run_action'
/opt/chef/embedded/apps/chef/lib/chef/resource.rb:561:in `run_action'
/opt/chef/embedded/apps/chef/lib/chef/runner.rb:49:in `run_action'
/opt/chef/embedded/apps/chef/lib/chef/runner.rb:81:in `block (2 levels) in converge'
/opt/chef/embedded/apps/chef/lib/chef/runner.rb:81:in `each'
/opt/chef/embedded/apps/chef/lib/chef/runner.rb:81:in `block in converge'
/opt/chef/embedded/apps/chef/lib/chef/resource_collection/resource_list.rb:83:in `block in execute_each_resource'
/opt/chef/embedded/apps/chef/lib/chef/resource_collection/stepable_iterator.rb:116:in `call'
/opt/chef/embedded/apps/chef/lib/chef/resource_collection/stepable_iterator.rb:116:in `call_iterator_block'
/opt/chef/embedded/apps/chef/lib/chef/resource_collection/stepable_iterator.rb:85:in `step'
/opt/chef/embedded/apps/chef/lib/chef/resource_collection/stepable_iterator.rb:104:in `iterate'
/opt/chef/embedded/apps/chef/lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index'
/opt/chef/embedded/apps/chef/lib/chef/resource_collection/resource_list.rb:81:in `execute_each_resource'
/opt/chef/embedded/apps/chef/lib/chef/runner.rb:80:in `converge'
/opt/chef/embedded/apps/chef/lib/chef/client.rb:331:in `block in converge'
/opt/chef/embedded/apps/chef/lib/chef/client.rb:326:in `catch'
/opt/chef/embedded/apps/chef/lib/chef/client.rb:326:in `converge'
/opt/chef/embedded/apps/chef/lib/chef/client.rb:345:in `converge_and_save'
/opt/chef/embedded/apps/chef/lib/chef/client.rb:449:in `run'
/opt/chef/embedded/apps/chef/lib/chef/application.rb:271:in `block in fork_chef_client'
/opt/chef/embedded/apps/chef/lib/chef/application.rb:259:in `fork'
/opt/chef/embedded/apps/chef/lib/chef/application.rb:259:in `fork_chef_client'
/opt/chef/embedded/apps/chef/lib/chef/application.rb:225:in `block in run_chef_client'
/opt/chef/embedded/apps/chef/lib/chef/local_mode.rb:38:in `with_server_connectivity'
/opt/chef/embedded/apps/chef/lib/chef/application.rb:213:in `run_chef_client'
/opt/chef/embedded/apps/chef/lib/chef/application/client.rb:392:in `block in interval_run_chef_client'
/opt/chef/embedded/apps/chef/lib/chef/application/client.rb:382:in `loop'
/opt/chef/embedded/apps/chef/lib/chef/application/client.rb:382:in `interval_run_chef_client'
/opt/chef/embedded/apps/chef/lib/chef/application/client.rb:372:in `run_application'
/opt/chef/embedded/apps/chef/lib/chef/application.rb:60:in `run'
/opt/chef/embedded/apps/chef/bin/chef-client:26:in `<top (required)>'
/bin/chef-client:51:in `load'
/bin/chef-client:51:in `<main>'
[2015-04-14T12:44:06-07:00] DEBUG: Server doesn't support resource history, skipping resource report.
[2015-04-14T12:44:06-07:00] DEBUG: Audit Reports are disabled. Skipping sending reports.
[2015-04-14T12:44:06-07:00] ERROR: machine_image[zookeeper-test] (tests::machine_image_test line 3) had an error: NoMethodError: undefined method `id' for nil:NilClass
[2015-04-14T12:44:06-07:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
After the recipe fails, I can see in the output of "docker images" that the image was created and tagged as chef:zookeeper-test, but when I run the container the chef-client executable is nowhere to be found.
I spent some time yesterday inserting debug statements into the code for the chef-provisioning and chef-provisioning-docker gems to see if I could figure out what might be causing this, and I noticed that the docker driver's allocate_image method (on line 65 of the machine_image provider in the chef-provisioning gem) doesn't appear to actually get called, which is what I would expect to happen based on what I've read of the code so far. If any of this is in error, I would be happy to learn if there's something I've missed here and any suggestions would be much appreciated.