Skip to content

Instantly share code, notes, and snippets.

@rberger
Created April 26, 2014 01:09
Show Gist options
  • Save rberger/11308954 to your computer and use it in GitHub Desktop.
Save rberger/11308954 to your computer and use it in GitHub Desktop.
Failing chef-client run with with_provisioner_options 'base_image' => 'ubuntu:precise', 'create_container' => { 'command' => 'echo "++++++ HELLO ++++"'}
[2014-04-26T00:47:19+00:00] WARN: No config file found or specified on command line, using command line options.
[2014-04-26T00:47:19+00:00] INFO: Auto-discovered chef repository at /metal
[2014-04-26T00:47:19+00:00] INFO: Starting chef-zero on port 8889 with repository at repository at /metal
One version per cookbook
[2014-04-26T00:47:19+00:00] INFO: Forking chef instance to converge...
Starting Chef Client, version 11.12.2
[2014-04-26T00:47:19+00:00] INFO: *** Chef 11.12.2 ***
[2014-04-26T00:47:19+00:00] INFO: Chef-client pid: 27464
[2014-04-26T00:47:27+00:00] INFO: HTTP Request Returned 404 Not Found : Object not found: http://127.0.0.1:8889/nodes/docker-test
[2014-04-26T00:47:27+00:00] WARN: Run List override has been provided.
[2014-04-26T00:47:27+00:00] WARN: Original Run List: []
[2014-04-26T00:47:27+00:00] WARN: Overridden Run List: [recipe[min_app::min]]
[2014-04-26T00:47:27+00:00] INFO: Run List is [recipe[min_app::min]]
[2014-04-26T00:47:27+00:00] INFO: Run List expands to [min_app::min]
[2014-04-26T00:47:27+00:00] INFO: Starting Chef Run for docker-test
[2014-04-26T00:47:27+00:00] INFO: Running start handlers
[2014-04-26T00:47:27+00:00] INFO: Start handlers complete.
[2014-04-26T00:47:27+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-26T00:47:29+00:00] INFO: Loading cookbooks [min_app@0.1.0, apt@2.3.10]
Synchronizing Cookbooks:
[2014-04-26T00:47:29+00:00] INFO: Storing updated cookbooks/min_app/recipes/min.rb in the cache.
[2014-04-26T00:47:29+00:00] INFO: Storing updated cookbooks/min_app/metadata.rb in the cache.
- min_app
- apt
Compiling Cookbooks...
Converging 1 resources
Recipe: min_app::min
* machine[min] action create[2014-04-26T00:47:30+00:00] INFO: Processing machine[min] action create (min_app::min line 12)
[2014-04-26T00:47:30+00:00] INFO: HTTP Request Returned 404 Not Found : Object not found: http://127.0.0.1:8889/nodes/min
- Create new container and run container_configuration['Cmd']
================================================================================
Error executing action `create` on resource 'machine[min]'
================================================================================
Docker::Error::NotFoundError
----------------------------
Expected(200..204) <=> Actual(404 Not Found)
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]
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:0x000000033dbe10 @credentials=nil, @connection=#<Docker::Connection:0x000000033dbd20 @url="unix:///", @options={:socket=>"/var/run/docker.sock"}>>
provisioner_options {"base_image"=>"ubuntu:precise", "create_container"=>{"command"=>"echo \"++++++ HELLO ++++\""}}
cookbook_name "min_app"
recipe_name "min"
run_list_modifiers [#<Chef::RunList::RunListItem:0x000000033d9e58 @version=nil, @type=:recipe, @name="apt">]
end
[2014-04-26T00:47:30+00:00] INFO: Running queued delayed notifications before re-raising exception
Running handlers:
[2014-04-26T00:47:30+00:00] ERROR: Running exception handlers
Running handlers complete
[2014-04-26T00:47:30+00:00] ERROR: Exception handlers complete
[2014-04-26T00:47:30+00:00] FATAL: Stacktrace dumped to /home/vagrant/.chef/local-mode-cache/cache/chef-stacktrace.out
Chef Client failed. 0 resources updated in 10.837187952 seconds
[2014-04-26T00:47:30+00:00] ERROR: machine[min] (min_app::min line 12) had an error: Docker::Error::NotFoundError: Expected(200..204) <=> Actual(404 Not Found)
[2014-04-26T00:47:30+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