Skip to content

Instantly share code, notes, and snippets.

@jperville
Created February 12, 2016 13:29
Show Gist options
  • Save jperville/0b0dd108b65524fbe114 to your computer and use it in GitHub Desktop.
Save jperville/0b0dd108b65524fbe114 to your computer and use it in GitHub Desktop.
jp440p:docker(53m|master!) $ kitchen converge service-upstart-ubuntu-1404
-----> 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
-----> Creating <service-upstart-ubuntu-1404>...
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'opscode-ubuntu-14.04'...
==> default: Matching MAC address for NAT networking...
==> default: Setting the name of the VM: kitchen-docker-service-upstart-ubuntu-1404_default_1455282723066_17500
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
==> default: Forwarding ports...
default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method: private key
default: Warning: Remote connection disconnect. Retrying...
default:
default: Vagrant insecure key detected. Vagrant will automatically replace
default: this with a newly generated keypair for better security.
default:
default: Inserting generated public key within guest...
default: Removing insecure key from the guest if it's present...
default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
==> default: Setting hostname...
==> default: Configuring proxy for Apt...
==> default: Configuring proxy environment variables...
==> default: Mounting shared folders...
default: /tmp/vagrant-cache => /home/julien/.vagrant.d/cache/opscode_ubuntu-14.04_chef-provisionerless
==> default: Configuring cache buckets...
==> default: Machine not provisioned because `--no-provision` is specified.
[SSH] Established
Vagrant instance <service-upstart-ubuntu-1404> created.
Finished creating <service-upstart-ubuntu-1404> (1m12.11s).
-----> Converging <service-upstart-ubuntu-1404>...
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
-----> Installing Chef Omnibus (12.4.3)
Downloading https://www.chef.io/chef/install.sh to file /tmp/install.sh
Trying wget...
Download complete.
Getting information for chef stable 12.4.3 for ubuntu...
downloading https://omnitruck-direct.chef.io/stable/chef/metadata?v=12.4.3&p=ubuntu&pv=14.04&m=x86_64
to file /tmp/install.sh.1826/metadata.txt
trying wget...
url https://opscode-omnibus-packages.s3.amazonaws.com/ubuntu/14.04/x86_64/chef_12.4.3-1_amd64.deb
md5 d5f74a74ed2a405ffa47ae7ba2de1747
sha256 de772b659e09b0ead5a116585f0f610ab74c82cb313a7bf7c747a6eb94db59df
version 12.4.3downloaded metadata file looks valid...
downloading https://opscode-omnibus-packages.s3.amazonaws.com/ubuntu/14.04/x86_64/chef_12.4.3-1_amd64.deb
to file /tmp/install.sh.1826/chef_12.4.3-1_amd64.deb
trying wget...
Comparing checksum with sha256sum...
Installing chef 12.4.3
installing with dpkg...
Selecting previously unselected package chef.
(Reading database ... 32984 files and directories currently installed.)
Preparing to unpack .../chef_12.4.3-1_amd64.deb ...
Unpacking chef (12.4.3-1) ...
Setting up chef (12.4.3-1) ...
Thank you for installing Chef!
Transferring files to <service-upstart-ubuntu-1404>
Starting Chef Client, version 12.4.3
Creating a new client identity for service-upstart-ubuntu-1404 using the validator key.
[2016-02-12T13:16:00+00:00] WARN: Child with name 'dna.json' found in multiple directories: /tmp/kitchen/dna.json and /tmp/kitchen/dna.json
[2016-02-12T13:16:00+00:00] WARN: Child with name 'dna.json' found in multiple directories: /tmp/kitchen/dna.json and /tmp/kitchen/dna.json
resolving cookbooks for run list: ["apt", "apt-docker", "docker_test::service_upstart"]
[2016-02-12T13:16:00+00:00] WARN: Child with name 'dna.json' found in multiple directories: /tmp/kitchen/dna.json and /tmp/kitchen/dna.json
Synchronizing Cookbooks:
- apt
- apt-docker
- docker_test
- docker
- etcd
- compat_resource
Compiling Cookbooks...
[2016-02-12T13:17:13+00:00] WARN: You are overriding etcd_service on {} with EtcdCookbook::EtcdService: used to be EtcdCookbook::EtcdServiceBase. Use override: true if this is what you intended.
[2016-02-12T13:17:13+00:00] WARN: You declared a new resource EtcdCookbook::EtcdServiceBase for resource etcd_service, but it comes alphabetically after EtcdCookbook::EtcdService and has the same filters ({}), so it will not be used. Use override: true if you want to use it for etcd_service.
Converging 16 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
- create new file /etc/apt/apt.conf.d/15update-stamp
- update content in file /etc/apt/apt.conf.d/15update-stamp from none to 174cdb
--- /etc/apt/apt.conf.d/15update-stamp 2016-02-12 13:17:13.587943591 +0000
+++ /etc/apt/apt.conf.d/.15update-stamp20160212-1964-18txdou 2016-02-12 13:17:13.583943591 +0000
@@ -1 +1,2 @@
+APT::Update::Post-Invoke-Success {"touch /var/lib/apt/periodic/update-success-stamp 2>/dev/null || true";};
* 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
- execute apt-get update
* file[/var/lib/apt/periodic/update-success-stamp] action touch
- update utime on file /var/lib/apt/periodic/update-success-stamp
* directory[/var/cache/local] action create
- create new directory /var/cache/local
- change mode from '' to '0755'
- change owner from '' to 'root'
- change group from '' to 'root'
* directory[/var/cache/local/preseeding] action create
- create new directory /var/cache/local/preseeding
- change mode from '' to '0755'
- change owner from '' to 'root'
- change group from '' to 'root'
* template[/etc/apt/apt.conf.d/10recommends] action create
- create new file /etc/apt/apt.conf.d/10recommends
- update content in file /etc/apt/apt.conf.d/10recommends from none to f41e1d
--- /etc/apt/apt.conf.d/10recommends 2016-02-12 13:18:03.383943591 +0000
+++ /tmp/chef-rendered-template20160212-1964-1qgpxqs 2016-02-12 13:18:03.383943591 +0000
@@ -1 +1,4 @@
+# Managed by Chef
+APT::Install-Recommends "1";
+APT::Install-Suggests "0";
- change mode from '' to '0644'
- change owner from '' to 'root'
- change group from '' to 'root'
* apt_package[apt-transport-https] action install (up to date)
Recipe: apt-docker::default
* apt_repository[docker-main] action add
* 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
- create new file /etc/apt/sources.list.d/docker-main.list
- update content in file /etc/apt/sources.list.d/docker-main.list from none to 93e1c8
--- /etc/apt/sources.list.d/docker-main.list 2016-02-12 13:18:04.763943591 +0000
+++ /etc/apt/sources.list.d/.docker-main.list20160212-1964-38til6 2016-02-12 13:18:04.763943591 +0000
@@ -1 +1,2 @@
+deb "https://apt.dockerproject.org/repo" ubuntu-trusty main
- change mode from '' to '0644'
- change owner from '' to 'root'
- change group from '' to 'root'
* file[/var/lib/apt/periodic/update-success-stamp] action delete
- delete file /var/lib/apt/periodic/update-success-stamp
- execute apt-get update -o Dir::Etc::sourcelist='sources.list.d/docker-main.list' -o Dir::Etc::sourceparts='-' -o APT::Get::List-Cleanup='0'
Recipe: apt::default
* file[/var/lib/apt/periodic/update-success-stamp] action touch
- update utime on file /var/lib/apt/periodic/update-success-stamp
- execute apt-cache gencaches
Recipe: docker_test::service_upstart
- install version 1.9.1-0~trusty of package docker-engine
[2016-02-12T13:18:25+00:00] WARN: Default value false is invalid for property tls_ca_cert of resource . In Chef 13 this will become an error: Property tls_ca_cert must be one of: String, nil! You passed false..
* template[/etc/init/docker.conf] action create
- update content in file /etc/init/docker.conf from 834fb2 to a9181d
--- /etc/init/docker.conf 2015-11-20 12:47:16.000000000 +0000
+++ /tmp/chef-rendered-template20160212-1964-fu3ysl 2016-02-12 13:18:25.191943591 +0000
@@ -1,6 +1,6 @@
description "Docker daemon"
-start on (local-filesystems and net-device-up IFACE!=lo)
+start on (filesystem and net-device-up IFACE!=lo)
stop on runlevel [!2345]
limit nofile 524288 1048576
limit nproc 524288 1048576
* template[/etc/default/docker] action create
- update content in file /etc/default/docker from 0a4467 to a38e38
--- /etc/default/docker 2015-11-20 12:47:10.000000000 +0000
+++ /tmp/chef-rendered-template20160212-1964-vvsgh3 2016-02-12 13:18:25.203943591 +0000
@@ -1,14 +1,12 @@
# Docker Upstart and SysVinit configuration file
# Customize location of Docker binary (especially for development testing).
-#DOCKER="/usr/local/bin/docker"
+DOCKER="/usr/bin/docker"
# Use DOCKER_OPTS to modify the daemon startup options.
-#DOCKER_OPTS="--dns 8.8.8.8 --dns 8.8.4.4"
+DOCKER_OPTS="-H unix:///var/run/docker.sock --pidfile=/var/run/docker.pid"
# If you need Docker to use an HTTP proxy, it can also be specified here.
-#export http_proxy="http://127.0.0.1:3128/"
# This is also a handy place to tweak where Docker's temporary files go.
-#export TMPDIR="/mnt/bigdrive/docker-tmp"
* docker_service_manager_upstart[default] action restart
* service[docker] action stop
- stop service service[docker]
* template[/etc/init/docker.conf] action create (up to date)
* template[/etc/default/docker] action create (up to date)
* service[docker] action start
- start service service[docker]
(skipped due to not_if)
* docker_service_manager_upstart[default] action restart
* template[/etc/init/docker.conf] action create (up to date)
* template[/etc/default/docker] action create (up to date)
* service[docker] action start
- start service service[docker]
- execute "bash" "/tmp/chef-script20160212-1964-17dlyas"
* docker_service_manager_upstart[default] action restart
- stop service service[docker]
* template[/etc/init/docker.conf] action create (up to date)
* template[/etc/default/docker] action create (up to date)
* service[docker] action start
- start service service[docker]
(skipped due to not_if)
* docker_service_manager_upstart[default] action restart
- stop service service[docker]
* template[/etc/init/docker.conf] action create (up to date)
* template[/etc/default/docker] action create (up to date)
* service[docker] action start
- start service service[docker]
(skipped due to not_if)
* docker_service_manager_upstart[default] action restart
* template[/etc/init/docker.conf] action create (up to date)
* template[/etc/default/docker] action create (up to date)
* service[docker] action start
- start service service[docker]
(skipped due to not_if)
* docker_service_manager_upstart[default] action restart
- stop service service[docker]
* template[/etc/init/docker.conf] action create (up to date)
* template[/etc/default/docker] action create (up to date)
* service[docker] action start
- start service service[docker]
(skipped due to not_if)
* docker_service_manager_upstart[default] action restart
- stop service service[docker]
* template[/etc/init/docker.conf] action create (up to date)
* template[/etc/default/docker] action create (up to date)
* service[docker] action start
- start service service[docker]
(skipped due to not_if)
* docker_service_manager_upstart[default] action restart
* template[/etc/init/docker.conf] action create (up to date)
* template[/etc/default/docker] action create (up to date)
* service[docker] action start
- start service service[docker]
(skipped due to not_if)
* docker_service_manager_upstart[default] action restart
- stop service service[docker]
* template[/etc/init/docker.conf] action create (up to date)
* template[/etc/default/docker] action create (up to date)
* service[docker] action start
- start service service[docker]
(skipped due to not_if)
* docker_service_manager_upstart[default] action restart
* template[/etc/init/docker.conf] action create (up to date)
* template[/etc/default/docker] action create (up to date)
* service[docker] action start
- start service service[docker]
(skipped due to not_if)
* docker_service_manager_upstart[default] action restart
- stop service service[docker]
* template[/etc/init/docker.conf] action create (up to date)
* template[/etc/default/docker] action create (up to date)
* service[docker] action start
- start service service[docker]
(skipped due to not_if)
* docker_service_manager_upstart[default] action restart
* service[docker] action stop
* template[/etc/init/docker.conf] action create (up to date)
* template[/etc/default/docker] action create (up to date)
* service[docker] action start
- start service service[docker]
(skipped due to not_if)
* docker_service_manager_upstart[default] action restart
- stop service service[docker]
* template[/etc/init/docker.conf] action create (up to date)
* template[/etc/default/docker] action create (up to date)
* service[docker] action start
- start service service[docker]
(skipped due to not_if)
* docker_service_manager_upstart[default] action restart
- stop service service[docker]
* template[/etc/init/docker.conf] action create (up to date)
* template[/etc/default/docker] action create (up to date)
* service[docker] action start
- start service service[docker]
- execute "bash" "/tmp/chef-script20160212-1964-1glc6yl"
* docker_service_manager_upstart[default] action restart
* template[/etc/init/docker.conf] action create (up to date)
* template[/etc/default/docker] action create (up to date)
* service[docker] action start
- start service service[docker]
(skipped due to not_if)
(and so on, restarts until I abort the chef-run)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment