Skip to content

Instantly share code, notes, and snippets.

@chasebolt
Created November 20, 2015 21:11
Show Gist options
  • Save chasebolt/a75ecbe829fe6dfa1be5 to your computer and use it in GitHub Desktop.
Save chasebolt/a75ecbe829fe6dfa1be5 to your computer and use it in GitHub Desktop.
➜ chef-docker git:(ports) ✗ kitchen converge resources-183-ubuntu-1504
-----> Starting Kitchen (v1.4.2)
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/httpclient-2.6.0.1/lib/httpclient/webagent-cookie.rb:458: warning: already initialized constant HTTPClient::CookieManager
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/httpclient-2.6.0.1/lib/httpclient/cookie.rb:8: warning: previous definition of CookieManager was here
-----> Converging <resources-183-ubuntu-1504>...
Preparing files for transfer
Preparing dna.json
Resolving cookbook dependencies with Berkshelf 4.0.1...
Removing non-cookbook files before transfer
Preparing validation.pem
Preparing client.rb
-----> Chef Omnibus installation detected (install only if missing)
Transferring files to <resources-183-ubuntu-1504>
Starting Chef Client, version 12.5.1
resolving cookbooks for run list: ["apt", "apt-docker", "docker_test::default", "docker_test::image", "docker_test::container"]
Synchronizing Cookbooks:
- apt-docker (0.3.0)
- apt (2.9.2)
- docker_test (0.5.1)
- docker (2.2.9)
- compat_resource (12.5.14)
Compiling Cookbooks...
Converging 170 resources
Recipe: apt::default
* file[/var/lib/apt/periodic/update-success-stamp] action nothing (skipped due to action :nothing)
* directory[/etc/apt/apt.conf.d] action create (up to date)
* cookbook_file[/etc/apt/apt.conf.d/15update-stamp] action create (up to date)
* execute[apt-get update] action nothing (skipped due to action :nothing)
* execute[apt-get autoremove] action nothing (skipped due to action :nothing)
* execute[apt-get autoclean] action nothing (skipped due to action :nothing)
* execute[apt-get-update-periodic] action run (skipped due to not_if)
* directory[/var/cache/local] action create (up to date)
* directory[/var/cache/local/preseeding] action create (up to date)
* template[/etc/apt/apt.conf.d/10recommends] action create (up to date)
* apt_package[apt-transport-https] action install (up to date)
Recipe: apt-docker::default
* apt_repository[docker-main] action add
* execute[install-key 58118E89F3A912897C070ADBF76221572C52609D] action run (skipped due to not_if)
* ruby_block[validate-key 58118E89F3A912897C070ADBF76221572C52609D] action run (skipped due to not_if)
* file[/var/lib/apt/periodic/update-success-stamp] action nothing (skipped due to action :nothing)
* execute[apt-cache gencaches] action nothing (skipped due to action :nothing)
* execute[apt-get update] action nothing (skipped due to action :nothing)
* file[/etc/apt/sources.list.d/docker-main.list] action create (up to date)
(up to date)
Recipe: docker_test::default
* directory[/tmp/kitchen/docker_service_default] action create (up to date)
* bash[docker_service_default - generating CA private and public key] action run (skipped due to not_if)
* bash[docker_service_default - creating private key for docker server] action run (skipped due to not_if)
* bash[docker_service_default - generating certificate request for server] action run (skipped due to not_if)
* file[/tmp/kitchen/docker_service_default/server-extfile.cnf] action create (up to date)
* bash[docker_service_default - signing request for server] action run (skipped due to not_if)
* bash[docker_service_default - creating private key for docker client] action run (skipped due to not_if)
* bash[docker_service_default - generating certificate request for client] action run (skipped due to not_if)
* file[/tmp/kitchen/docker_service_default/client-extfile.cnf] action create (up to date)
* bash[docker_service_default - signing request for client] action run (skipped due to not_if)
* docker_service[default] action create
* docker_installation_package[default] action create
* apt_package[docker-engine] action install (up to date)
(up to date)
(up to date)
* docker_service[default] action start
* docker_service_manager_systemd[default] action start
* directory[/usr/libexec] action create (up to date)
* template[/usr/libexec/docker-wait-ready] action create (up to date)
* template[/lib/systemd/system/docker.service] action create (up to date)
* file[/etc/docker-firstconverge] action create (up to date)
* execute[systemctl daemon-reload] action nothing (skipped due to action :nothing)
* template[/usr/lib/tmpfiles.d/docker.conf] action create (up to date)
* service[docker] action enable (up to date)
* service[docker] action start (up to date)
(up to date)
(up to date)
Recipe: docker_test::image
* docker_image[hello-world] action pull (up to date)
(up to date)
(up to date)
* docker_image[debian] action pull_if_missing (up to date)
* docker_image[alpine] action pull (up to date)
(up to date)
* execute[pull vbatts/slackware] action run (up to date)
* docker_image[vbatts/slackware] action remove (up to date)
* docker_image[save hello-world] action save (skipped due to not_if)
* directory[/usr/local/src/container1] action create (up to date)
* cookbook_file[/usr/local/src/container1/Dockerfile] action create (up to date)
* docker_image[someara/image-1] action build (skipped due to not_if)
* file[/marker_image_image-1] action create (up to date)
* directory[/usr/local/src/container2] action create (up to date)
* file[/usr/local/src/container2/foo.txt] action create (up to date)
* cookbook_file[/usr/local/src/container2/Dockerfile] action create (up to date)
* docker_image[someara/image.2] action build_if_missing (up to date)
* cookbook_file[/usr/local/src/image_3.tar] action create (up to date)
* docker_image[image_3] action build_if_missing (up to date)
* docker_image[hello-again] action import (up to date)
* docker_image[someara/name-w-dashes] action pull (up to date)
(up to date)
Recipe: docker_test::registry
* directory[/tmp/registry/tls] action create (up to date)
(skipped due to not_if)
* bash[creating private key for docker server] action run (skipped due to not_if)
* bash[generating certificate request for server] action run (skipped due to not_if)
* file[/tmp/registry/tls/server-extfile.cnf] action create (up to date)
* bash[signing request for server] action run (skipped due to not_if)
* bash[creating private key for docker client] action run (skipped due to not_if)
* bash[generating certificate request for client] action run (skipped due to not_if)
* file[/tmp/registry/tls/client-extfile.cnf] action create (up to date)
* bash[signing request for client] action run (skipped due to not_if)
* docker_image[nginx] action pull (up to date)
(up to date)
* directory[/tmp/registry/auth] action create (up to date)
* template[/tmp/registry/auth/registry.conf] action create (up to date)
* execute[copy server cert for registry] action run (up to date)
* execute[copy server key for registry] action run (up to date)
(up to date)
* bash[start docker registry] action run (skipped due to not_if)
* bash[start docker registry proxy] action run (skipped due to not_if)
* bash[wait for docker registry and proxy] action run (skipped due to not_if)
Recipe: docker_test::image
* docker_tag[private repo tag for name-w-dashes:v1.0.1] action tag (up to date)
* docker_tag[private repo tag for name.w.dots] action tag (up to date)
* docker_registry[localhost:5043] action login (up to date)
* docker_image[localhost:5043/someara/name-w-dashes] action push (skipped due to not_if)
* file[/marker_image_private_name-w-dashes] action create (up to date)
* docker_image[localhost:5043/someara/name.w.dots] action push (skipped due to not_if)
* file[/marker_image_private_name.w.dots] action create (up to date)
(up to date)
Recipe: docker_test::container
(up to date)
* docker_container[busybox_ls] action run (skipped due to not_if)
* docker_container[alpine_ls] action run_if_missing (up to date)
* docker_container[an_echo_server] action run
- update an_echo_server
- set port to "7:7" (was nil)
chase: modified is: [" set port to \"7:7\" (was nil)"]
* docker_container[another_echo_server] action run
- update another_echo_server
- set port to "7" (was nil)
chase: modified is: [" set port to \"7\" (was nil)"]
* docker_container[an_udp_echo_server] action run
- update an_udp_echo_server
- set port to "5007:7/udp" (was nil)
chase: modified is: [" set port to \"5007:7/udp\" (was nil)"]
* docker_container[multi_ip_port] action run
- update multi_ip_port
- set port to ["8301", "8301:8301/udp", "127.0.0.1:8500:8500", "127.0.1.1:8500:8500"] (was nil)
chase: modified is: [" set port to [\"8301\", \"8301:8301/udp\", \"127.0.0.1:8500:8500\", \"127.0.1.1:8500:8500\"] (was nil)"]
* execute[bill] action run (skipped due to not_if)
* docker_container[bill] action kill (up to date)
* execute[hammer_time] action run (skipped due to not_if)
* docker_container[hammer_time] action stop (up to date)
* execute[rm stale red_light] action run (skipped due to only_if)
* execute[red_light] action run (skipped due to not_if)
* docker_container[red_light] action pause (up to date)
* bash[green_light] action run (skipped due to not_if)
* docker_container[green_light] action unpause (up to date)
* bash[quitter] action run (skipped due to not_if)
* docker_container[quitter] action restart (skipped due to not_if)
* file[/marker_container_quitter_restarter] action create (up to date)
* execute[restarter] action run (skipped due to not_if)
* docker_container[restarter] action restart (skipped due to not_if)
* file[/marker_container_restarter] action create (up to date)
* execute[deleteme] action run (skipped due to not_if)
* file[/marker_container_deleteme] action create (up to date)
* docker_container[deleteme] action delete (up to date)
* docker_container[redeployer] action run
- update redeployer
- set port to "7" (was nil)
chase: modified is: [" set port to \"7\" (was nil)"]
* docker_container[unstarted_redeployer] action create
- deleting unstarted_redeployer
- update unstarted_redeployer
- set port to "7" (was nil)
chase: modified is: [" set port to \"7\" (was nil)"]
* execute[redeploy redeployers] action run (up to date)
(up to date)
* file[/hostbits/hello.txt] action create (up to date)
* directory[/more-hostbits] action create (up to date)
* file[/more-hostbits/hello.txt] action create (up to date)
* docker_container[bind_mounter] action run_if_missing (up to date)
* directory[/chefbuilder] action create (up to date)
* execute[copy chef to chefbuilder] action run (up to date)
* file[/chefbuilder/Dockerfile] action create (up to date)
* docker_image[chef_container] action build_if_missing (up to date)
* docker_container[chef_container] action create (up to date)
* docker_container[ohai_debian] action run_if_missing (up to date)
* docker_container[env] action run_if_missing (up to date)
* docker_container[ohai_again] action run_if_missing (up to date)
* docker_container[ohai_again_debian] action run_if_missing (up to date)
* directory[/cmd_test] action create (up to date)
* file[/cmd_test/Dockerfile] action create (up to date)
* docker_image[cmd_test] action build_if_missing (up to date)
* docker_container[cmd_test] action run_if_missing (up to date)
* docker_container[sean_was_here] action run (skipped due to not_if)
* file[/marker_container_sean_was_here] action create (up to date)
* docker_container[cap_add_net_admin] action run_if_missing (up to date)
* docker_container[cap_add_net_admin_error] action run_if_missing (up to date)
* docker_container[cap_drop_mknod] action run_if_missing (up to date)
* docker_container[cap_drop_mknod_error] action run_if_missing (up to date)
* docker_container[fqdn] action run_if_missing (up to date)
* docker_container[dns] action run_if_missing (up to date)
* docker_container[extra_hosts] action run_if_missing (up to date)
* docker_container[cpu_shares] action run_if_missing (up to date)
* docker_container[cpuset_cpus] action run_if_missing (up to date)
* docker_container[try_try_again] action run_if_missing (up to date)
* docker_container[reboot_survivor] action run_if_missing (up to date)
* docker_container[reboot_survivor_retry] action run_if_missing (up to date)
* docker_container[link_source] action run
- update link_source
- set port to "321" (was nil)
chase: modified is: [" set port to \"321\" (was nil)"]
* docker_container[link_source_2] action run
- update link_source_2
- set port to "322" (was nil)
chase: modified is: [" set port to \"322\" (was nil)"]
* docker_container[link_target_1] action run_if_missing (up to date)
* docker_container[link_target_2] action run_if_missing (up to date)
* docker_container[link_target_3] action run_if_missing (up to date)
* docker_container[link_target_4] action run_if_missing (up to date)
* execute[redeploy_link_source] action run (up to date)
* docker_container[another_link_source] action run_if_missing (up to date)
* docker_container[another_link_target] action run_if_missing (up to date)
* file[/marker_container_remover] action create (up to date)
* directory[/dangler] action create (up to date)
* file[/dangler/Dockerfile] action create (up to date)
* docker_image[dangler] action build_if_missing (up to date)
* docker_container[dangler] action create (skipped due to not_if)
* file[/marker_container_dangler] action create (up to date)
* docker_container[dangler_volume_remover] action delete (up to date)
* docker_tag[mutator_from_busybox] action tag (up to date)
* docker_container[mutator] action run_if_missing (up to date)
* execute[commit mutator] action run (up to date)
* docker_container[network_mode] action run
- update network_mode
- set port to "777:777" (was nil)
chase: modified is: [" set port to \"777:777\" (was nil)"]
* docker_container[ulimits] action run
- update ulimits
chase: modified is: [" set port to \"778:778\" (was nil)"]
* docker_container[api_timeouts] action run_if_missing (up to date)
* execute[uber_options] action run (skipped due to not_if)
* docker_container[uber_options] action run
- update uber_options
- set links to ["link_source:hello"] (was nil)
- set port to "1234:1234" (was nil)
chase: modified is: [" set links to [\"link_source:hello\"] (was nil)", " set port to \"1234:1234\" (was nil)"]
* directory[/overrides] action create (up to date)
* file[/overrides/Dockerfile] action create (up to date)
* docker_image[overrides] action build_if_missing (up to date)
* docker_container[overrides-1] action run (up to date)
* docker_container[overrides-2] action run
- deleting overrides-2
- update overrides-2
- set exposed_ports to {"9988/tcp"=>{}, "8877/tcp"=>{}} (was {"4321/tcp"=>{}, "8877/tcp"=>{}, "9988/tcp"=>{}})
- set port to ["9988:9988", "8877:8877"] (was nil)
chase: modified is: [" set exposed_ports to {\"9988/tcp\"=>{}, \"8877/tcp\"=>{}} (was {\"4321/tcp\"=>{}, \"8877/tcp\"=>{}, \"9988/tcp\"=>{}})", " set port to [\"9988:9988\", \"8877:8877\"] (was nil)"]
* docker_container[host_override] action create
- update host_override
- set tls_verify to true (was nil)
- set tls_ca_cert to "/tmp/kitchen/docker_service_default/ca.pem" (was false)
- set tls_client_cert to "/tmp/kitchen/docker_service_default/cert.pem" (was false)
- set tls_client_key to "/tmp/kitchen/docker_service_default/key.pem" (was false)
- set host to "tcp://127.0.0.1:2376" (was nil)
chase: modified is: [" set tls_verify to true (was nil)", " set tls_ca_cert to \"/tmp/kitchen/docker_service_default/ca.pem\" (was false)", " set tls_client_cert to \"/tmp/kitchen/docker_service_default/cert.pem\" (was false)", " set tls_client_key to \"/tmp/kitchen/docker_service_default/key.pem\" (was false)", " set host to \"tcp://127.0.0.1:2376\" (was nil)"]
(up to date)
* directory[/kill_after] action create (up to date)
* file[/kill_after/loop.sh] action create (up to date)
* file[/kill_after/Dockerfile] action create (up to date)
* docker_image[kill_after] action build_if_missing (up to date)
* execute[kill_after] action run (skipped due to not_if)
* docker_container[kill_after] action stop (up to date)
* docker_container[link_target_1] action run
- deleting link_target_1
- update link_target_1
- set links to ["link_source:hello"] (was nil)
chase: modified is: [" set links to [\"link_source:hello\"] (was nil)"]
* docker_container[link_target_2] action run
- update link_target_2
- set links to ["link_source:hello"] (was nil)
chase: modified is: [" set links to [\"link_source:hello\"] (was nil)"]
* docker_container[link_target_3] action run
- update link_target_3
- set links to ["link_source:hello", "link_source_2:hello_again"] (was nil)
chase: modified is: [" set links to [\"link_source:hello\", \"link_source_2:hello_again\"] (was nil)"]
* docker_container[link_target_4] action run
- update link_target_4
- set links to ["link_source:hello", "link_source_2:hello_again"] (was nil)
chase: modified is: [" set links to [\"link_source:hello\", \"link_source_2:hello_again\"] (was nil)"]
Running handlers:
Running handlers complete
Chef Client finished, 17/192 resources updated in 47 seconds
Finished converging <resources-183-ubuntu-1504> (0m53.94s).
-----> Kitchen is finished. (0m55.67s)
zlib(finalizer): the stream was freed prematurely.
➜ chef-docker git:(ports) ✗
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment