Created
April 26, 2014 01:23
-
-
Save rberger/11309161 to your computer and use it in GitHub Desktop.
chef-client chef-metal-docker failure with_provisioner_options 'base_image' => 'ubuntu:precise'
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
chef-client -z -o min_app::min -l info | |
[2014-04-26T01:15:09+00:00] WARN: No config file found or specified on command line, using command line options. | |
[2014-04-26T01:15:09+00:00] INFO: Auto-discovered chef repository at /metal | |
[2014-04-26T01:15:09+00:00] INFO: Starting chef-zero on port 8889 with repository at repository at /metal | |
One version per cookbook | |
[2014-04-26T01:15:09+00:00] INFO: Forking chef instance to converge... | |
[2014-04-26T01:15:09+00:00] WARN: | |
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | |
SSL validation of HTTPS requests is disabled. HTTPS connections are still | |
encrypted, but chef is not able to detect forged replies or man in the middle | |
attacks. | |
To fix this issue add an entry like this to your configuration file: | |
``` | |
# Verify all HTTPS connections (recommended) | |
ssl_verify_mode :verify_peer | |
# OR, Verify only connections to chef-server | |
verify_api_cert true | |
``` | |
To check your SSL configuration, or troubleshoot errors, you can use the | |
`knife ssl check` command like so: | |
``` | |
knife ssl check -c | |
``` | |
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | |
Starting Chef Client, version 11.12.2 | |
[2014-04-26T01:15:09+00:00] INFO: *** Chef 11.12.2 *** | |
[2014-04-26T01:15:09+00:00] INFO: Chef-client pid: 30272 | |
[2014-04-26T01:15:16+00:00] INFO: HTTP Request Returned 404 Not Found : Object not found: http://127.0.0.1:8889/nodes/docker-test | |
[2014-04-26T01:15:16+00:00] WARN: Run List override has been provided. | |
[2014-04-26T01:15:16+00:00] WARN: Original Run List: [] | |
[2014-04-26T01:15:16+00:00] WARN: Overridden Run List: [recipe[min_app::min]] | |
[2014-04-26T01:15:16+00:00] INFO: Run List is [recipe[min_app::min]] | |
[2014-04-26T01:15:16+00:00] INFO: Run List expands to [min_app::min] | |
[2014-04-26T01:15:16+00:00] INFO: Starting Chef Run for docker-test | |
[2014-04-26T01:15:16+00:00] INFO: Running start handlers | |
[2014-04-26T01:15:16+00:00] INFO: Start handlers complete. | |
[2014-04-26T01:15:16+00:00] INFO: HTTP Request Returned 404 Not Found : Object not found: /reports/nodes/docker-test/runs | |
resolving cookbooks for run list: ["min_app::min"] | |
[2014-04-26T01:15:18+00:00] INFO: Loading cookbooks [min_app@0.1.0, apt@2.3.10] | |
Synchronizing Cookbooks: | |
- min_app | |
- apt | |
Compiling Cookbooks... | |
Converging 1 resources | |
Recipe: min_app::min | |
* machine[min] action create[2014-04-26T01:15:18+00:00] INFO: Processing machine[min] action create (min_app::min line 12) | |
[2014-04-26T01:15:18+00:00] INFO: HTTP Request Returned 404 Not Found : Object not found: http://127.0.0.1:8889/nodes/min | |
- Tag base image ubuntu:precise as min_image | |
- create rsa private key none (2048 bits) | |
- create directory /etc/chef on min | |
- write file /etc/chef/client.pem on min[2014-04-26T01:15:29+00:00] INFO: HTTP Request Returned 404 Not Found : Object not found: http://127.0.0.1:8889/clients/min | |
- create client min at http://127.0.0.1:8889 | |
- add public_key = "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqCUvqd4Fhj9oK9PqWtyV\nm+wAN64XOuhUMgt+H4bFSrS/ps+yX08TCCo5CC1uLM3HcjBvQr8UQJeYd6SHTety\nVXntNkk6etMH/PvkFbMyp57vsQj1mEyBKgCZy+IWswW3GpPGqQIKrgl0en3ULd14\nJpDDi3bIqGlUpf2mprSmkKAJCo36/Q8VTOyKrDmldJCmeD2sCtifIzKtoQbSydSZ\nFBsULRYh0pLtvJ5YTiLY6nXnnGN9QmJtCcjMWn10cvvebUwqk1S6K9D9GZJOyXrB\nZ+g5M7cx0MSB/GYneqWIrFrOzuJjyOH4ytBFqKbhN4ZHp6Pu66B3sE5cQz9hpaYb\neQIDAQAB\n-----END PUBLIC KEY-----\n"[2014-04-26T01:15:29+00:00] INFO: HTTP Request Returned 404 Not Found : Object not found: http://127.0.0.1:8889/nodes/min | |
- create node min at http://127.0.0.1:8889 | |
- add normal.tags = nil | |
- add normal.provisioner_options = {"base_image"=>"ubuntu:precise"} | |
- add normal.provisioner_output = {"provisioner_url"=>"docker:", "repository_name"=>"min_image", "container_name"=>"min"} | |
- update run_list from [] to ["recipe[apt]"] | |
- write file /etc/chef/client.rb on min | |
- write file /tmp/detect.sh on min | |
- upload file /home/vagrant/.chef/package_cache/chef_11.12.2-1_amd64.deb to /tmp/chef_11.12.2-1_amd64.deb on min | |
- run 'dpkg -i "/tmp/chef_11.12.2-1_amd64.deb"' on min[2014-04-26T01:16:10+00:00] INFO: Forking chef instance to converge... | |
[2014-04-26T01:16:10+00:00] WARN: | |
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | |
SSL validation of HTTPS requests is disabled. HTTPS connections are still | |
encrypted, but chef is not able to detect forged replies or man in the middle | |
attacks. | |
To fix this issue add an entry like this to your configuration file: | |
``` | |
# Verify all HTTPS connections (recommended) | |
ssl_verify_mode :verify_peer | |
# OR, Verify only connections to chef-server | |
verify_api_cert true | |
``` | |
To check your SSL configuration, or troubleshoot errors, you can use the | |
`knife ssl check` command like so: | |
``` | |
knife ssl check -c /etc/chef/client.rb | |
``` | |
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | |
[2014-04-26T01:16:10+00:00] INFO: *** Chef 11.12.2 *** | |
[2014-04-26T01:16:10+00:00] INFO: Chef-client pid: 9 | |
[[:srv, :conn_complete]] | |
[[:connected]] | |
[[:connection, | |
"GET /nodes/min HTTP/1.1\r\nAccept: application/json\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nX-Ops-Sign: algorithm=sha1;version=1.0;\r\nX-Ops-Userid: min\r\nX-Ops-Timestamp: 2014-04-26T01:16:12Z\r\nX-Ops-Content-Hash: 2jmj7l5rSw0yVb/vlWAYkK/YBwk=\r\nX-Ops-Authorization-1: DfvPhEH2rtrgMXq6JjLxuOvxUOXYcNfNo44CC/+jqUPU+tf7RbPo8/2YFcgY\r\nX-Ops-Authorization-2: FUQMkuSKyA9uOBmGMt4SDIu1UPA3IIp/ZklYLSnel6WhDnbVmqLgL004mC59\r\nX-Ops-Authorization-3: QaIUomYItHEaCi4BeUBTKFhqxMxDWl1qPO3ro5GTQ4gZzWkQPtdARaI4ldqj\r\nX-Ops-Authorization-4: qrHE8OHWED21rji2vqxUMGM2gRZmvu6b7Tv7NA1mfJ82EQeeTrqQHCjG/w1o\r\nX-Ops-Authorization-5: crx+yLqJL12hNKeCxMmUuzu5BWe1yI05rNajvfYUiuPs7v720MzHHCcn9aqS\r\nX-Ops-Authorization-6: cVrzHLZq88sSeHxxUNWS29t6a+Mm/OKwJzD/inAkww==\r\nHost: 172.17.42.1:8889\r\nX-Remote-Request-Id: cecda66e-f16d-4f62-8ffe-3872fb79e5f8\r\nX-Chef-Version: 11.12.2\r\nUser-Agent: Chef Client/11.12.2 (ruby-1.9.3-p484; ohai-7.0.2; x86_64-linux; +http://opscode.com)\r\nConnection: close\r\n\r\n"]] | |
[[:srv, :unbind]] | |
[[:unbind_backend, :srv]] | |
[[:unbind, :connection]] | |
================================================================================ | |
Chef encountered an error attempting to load the node data for "min" | |
================================================================================ | |
Unexpected Error: | |
----------------- | |
EOFError: end of file reached | |
[2014-04-26T01:16:42+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out | |
[2014-04-26T01:16:42+00:00] ERROR: end of file reached | |
[2014-04-26T01:16:42+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1) | |
================================================================================ | |
Error executing action `create` on resource 'machine[min]' | |
================================================================================ | |
Mixlib::ShellOut::ShellCommandFailed | |
------------------------------------ | |
Expected process to exit with [0], but received '1' | |
---- Begin output of docker run --name min min_image:latest chef-client -l info ---- | |
STDOUT: [2014-04-26T01:16:10+00:00] INFO: Forking chef instance to converge... | |
[2014-04-26T01:16:10+00:00] WARN: | |
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | |
SSL validation of HTTPS requests is disabled. HTTPS connections are still | |
encrypted, but chef is not able to detect forged replies or man in the middle | |
attacks. | |
To fix this issue add an entry like this to your configuration file: | |
``` | |
# Verify all HTTPS connections (recommended) | |
ssl_verify_mode :verify_peer | |
# OR, Verify only connections to chef-server | |
verify_api_cert true | |
``` | |
To check your SSL configuration, or troubleshoot errors, you can use the | |
`knife ssl check` command like so: | |
``` | |
knife ssl check -c /etc/chef/client.rb | |
``` | |
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | |
[2014-04-26T01:16:10+00:00] INFO: *** Chef 11.12.2 *** | |
[2014-04-26T01:16:10+00:00] INFO: Chef-client pid: 9 | |
================================================================================ | |
Chef encountered an error attempting to load the node data for "min" | |
================================================================================ | |
Unexpected Error: | |
----------------- | |
EOFError: end of file reached | |
[2014-04-26T01:16:42+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out | |
[2014-04-26T01:16:42+00:00] ERROR: end of file reached | |
[2014-04-26T01:16:42+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1) | |
STDERR: | |
---- End output of docker run --name min min_image:latest chef-client -l info ---- | |
Ran docker run --name min min_image:latest chef-client -l info returned 1 | |
Resource Declaration: | |
--------------------- | |
# In /home/vagrant/.chef/local-mode-cache/cache/cookbooks/min_app/recipes/min.rb | |
12: machine 'min' do | |
13: recipe 'apt' | |
14: action :create | |
15: end | |
16: | |
Compiled Resource: | |
------------------ | |
# Declared in /home/vagrant/.chef/local-mode-cache/cache/cookbooks/min_app/recipes/min.rb:12:in `from_file' | |
machine("min") do | |
action [:create] | |
updated true | |
updated_by_last_action true | |
retries 0 | |
retry_delay 2 | |
guard_interpreter :default | |
chef_server {:chef_server_url=>"http://127.0.0.1:8889", :options=>{:client_name=>"docker-test", :signing_key_filename=>nil}} | |
provisioner #<ChefMetalDocker::DockerProvisioner:0x00000003a43528 @credentials=nil, @connection=#<Docker::Connection:0x00000003a43438 @url="unix:///", @options={:socket=>"/var/run/docker.sock"}>> | |
provisioner_options {"base_image"=>"ubuntu:precise"} | |
cookbook_name "min_app" | |
recipe_name "min" | |
run_list_modifiers [#<Chef::RunList::RunListItem:0x00000003a414d0 @version=nil, @type=:recipe, @name="apt">] | |
end | |
[2014-04-26T01:16:50+00:00] INFO: Running queued delayed notifications before re-raising exception | |
Running handlers: | |
[2014-04-26T01:16:50+00:00] ERROR: Running exception handlers | |
Running handlers complete | |
[2014-04-26T01:16:50+00:00] ERROR: Exception handlers complete | |
[2014-04-26T01:16:50+00:00] FATAL: Stacktrace dumped to /home/vagrant/.chef/local-mode-cache/cache/chef-stacktrace.out | |
Chef Client failed. 0 resources updated in 101.154357595 seconds | |
[2014-04-26T01:16:50+00:00] ERROR: machine[min] (min_app::min line 12) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1' | |
---- Begin output of docker run --name min min_image:latest chef-client -l info ---- | |
STDOUT: [2014-04-26T01:16:10+00:00] INFO: Forking chef instance to converge... | |
[2014-04-26T01:16:10+00:00] WARN: | |
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | |
SSL validation of HTTPS requests is disabled. HTTPS connections are still | |
encrypted, but chef is not able to detect forged replies or man in the middle | |
attacks. | |
To fix this issue add an entry like this to your configuration file: | |
``` | |
# Verify all HTTPS connections (recommended) | |
ssl_verify_mode :verify_peer | |
# OR, Verify only connections to chef-server | |
verify_api_cert true | |
``` | |
To check your SSL configuration, or troubleshoot errors, you can use the | |
`knife ssl check` command like so: | |
``` | |
knife ssl check -c /etc/chef/client.rb | |
``` | |
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | |
[2014-04-26T01:16:10+00:00] INFO: *** Chef 11.12.2 *** | |
[2014-04-26T01:16:10+00:00] INFO: Chef-client pid: 9 | |
================================================================================ | |
Chef encountered an error attempting to load the node data for "min" | |
================================================================================ | |
Unexpected Error: | |
----------------- | |
EOFError: end of file reached | |
[2014-04-26T01:16:42+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out | |
[2014-04-26T01:16:42+00:00] ERROR: end of file reached | |
[2014-04-26T01:16:42+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1) | |
STDERR: | |
---- End output of docker run --name min min_image:latest chef-client -l info ---- | |
Ran docker run --name min min_image:latest chef-client -l info returned 1 | |
[2014-04-26T01:16:50+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment