You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@bacongobbler discovered this today when we were updating the deis cookbook. See #100 for the test suite I ran to get the following test kitchen failure:
[2014-03-27T20:42:40+00:00] INFO: template[/etc/default/docker] sending start action to service[docker] (immediate)
* service[docker] action start[2014-03-27T20:42:40+00:00] INFO: Processing service[docker] action start (docker::upstart line 25)
[2014-03-27T20:42:40+00:00] INFO: service[docker] started
- start service service[docker]
* service[docker] action start
[2014-03-27T20:42:40+00:00] INFO: Processing service[docker] action start (docker::upstart line 25)
(up to date)
Recipe: docker_test::image_lwrp
* docker_image[docker-test-image] action pull[2014-03-27T20:42:40+00:00] INFO: Processing docker_image[docker-test-image] action pull (docker_test::image_lwrp line 1)
================================================================================
Error executing action `pull` on resource 'docker_image[docker-test-image]'
================================================================================
Helpers::Docker::DockerNotReady
-------------------------------
docker timeout exceeded
Cookbook Trace:
---------------
/tmp/kitchen/cookbooks/docker/libraries/helpers.rb:102:in `rescue in wait_until_ready!'
/tmp/kitchen/cookbooks/docker/libraries/helpers.rb:93:in `wait_until_ready!'
/tmp/kitchen/cookbooks/docker/providers/image.rb:4:in `load_current_resource'
Resource Declaration:
---------------------
# In /tmp/kitchen/cookbooks/docker_test/recipes/image_lwrp.rb
1: docker_image 'docker-test-image'
2:
Compiled Resource:
------------------
# Declared in /tmp/kitchen/cookbooks/docker_test/recipes/image_lwrp.rb:1:in `from_file'
docker_image("docker-test-image") do
action :pull
retries 0
retry_delay 2
cookbook_name :docker_test
recipe_name "image_lwrp"
end
[2014-03-27T20:42:51+00:00] INFO: Running queued delayed notifications before re-raising exception
Running handlers:
Adds Test Kitchen suite for testing lxc
[2014-03-27T20:42:51+00:00] ERROR: Running exception handlers
Running handlers complete
[2014-03-27T20:42:51+00:00] ERROR: Exception handlers complete
[2014-03-27T20:42:51+00:00] FATAL: Stacktrace dumped to /tmp/kitchen/cache/chef-stacktrace.out
Chef Client failed. 29 resources updated in 87.674454772 seconds
[2014-03-27T20:42:51+00:00] ERROR: docker_image[docker-test-image] (docker_test::image_lwrp line 1) had an error: Helpers::Docker::DockerNotReady: docker timeout exceeded
[2014-03-27T20:42:51+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
>>>>>> Converge failed on instance <docker-lwrp-lxc-ubuntu-1204>.
>>>>>> Please see .kitchen/logs/docker-lwrp-lxc-ubuntu-1204.log for more details
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: SSH exited (1) for command: [sudo -E chef-solo --config /tmp/kitchen/solo.rb --json-attributes /tmp/kitchen/dna.json --log_level info]
>>>>>> ----------------------
On the VM, I see the following:
vagrant@docker-lwrp-lxc-ubuntu-1204:~$ sudo tail -f /var/log/upstart/docker.log
[/var/lib/docker|94159fa8] +job serveapi(unix:///var/run/docker.sock)
[/var/lib/docker|94159fa8] +job initserver()
[/var/lib/docker|94159fa8.initserver()] Creating server
2014/03/27 20:54:02 Listening for HTTP on unix (/var/run/docker.sock)
[/var/lib/docker|94159fa8] +job init_networkdriver()
[/var/lib/docker|94159fa8] -job init_networkdriver() = OK (0)
2014/03/27 20:54:02 WARNING: Your kernel does not support cgroup swap limit.
exec: "lxc-start": executable file not found in $PATH
[/var/lib/docker|94159fa8] -job initserver() = ERR (1)
2014/03/27 20:54:02 exec: "lxc-start": executable file not found in $PATH
So, lxc-start isn't being installed. It looks like installing lxc-docker on Ubuntu doesn't actually install the lxc package:
vagrant@docker-lwrp-lxc-ubuntu-1204:~$ sudo apt-get install lxc-docker
Reading package lists... Done
Building dependency tree
Reading state information... Done
lxc-docker is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.
vagrant@docker-lwrp-lxc-ubuntu-1204:~$ sudo apt-get install lxc
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
bridge-utils cloud-utils debootstrap dnsmasq-base euca2ools libapparmor1 libcap2-bin libnetfilter-conntrack3 libpam-cap libyaml-0-2 python-boto python-crypto python-m2crypto python-paramiko
python-yaml
Suggested packages:
libcap-dev btrfs-tools qemu-user-static python-crypto-dbg python-crypto-doc
The following NEW packages will be installed:
bridge-utils cloud-utils debootstrap dnsmasq-base euca2ools libapparmor1 libcap2-bin libnetfilter-conntrack3 libpam-cap libyaml-0-2 lxc python-boto python-crypto python-m2crypto python-paramiko
python-yaml
0 upgraded, 16 newly installed, 0 to remove and 9 not upgraded.
Need to get 2,633 kB of archives.
After this operation, 15.6 MB of additional disk space will be used.
Do you want to continue [Y/n]?
The reason? The lxc-docker package no longer depends on lxc!
@bacongobbler discovered this today when we were updating the deis cookbook. See #100 for the test suite I ran to get the following test kitchen failure:
On the VM, I see the following:
So, lxc-start isn't being installed. It looks like installing
lxc-docker
on Ubuntu doesn't actually install thelxc
package:The reason? The
lxc-docker
package no longer depends onlxc
!The text was updated successfully, but these errors were encountered: