Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lxc package not being installed on Ubuntu #101

Closed
carmstrong opened this issue Mar 27, 2014 · 1 comment
Closed

lxc package not being installed on Ubuntu #101

carmstrong opened this issue Mar 27, 2014 · 1 comment

Comments

@carmstrong
Copy link
Contributor

@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!

vagrant@docker-lwrp-lxc-ubuntu-1204:~$ apt-cache showpkg lxc-docker-0.9.1
Package: lxc-docker-0.9.1
Versions:
0.9.1 (/var/lib/apt/lists/get.docker.io_ubuntu_dists_docker_main_binary-amd64_Packages) (/var/lib/dpkg/status)
 Description Language:
                 File: /var/lib/apt/lists/get.docker.io_ubuntu_dists_docker_main_binary-amd64_Packages
                  MD5: 9d78c360b5a71f203d0de41369c7f0a4


Reverse Depends:
  lxc-docker,lxc-docker-0.9.1
Dependencies:
0.9.1 - iptables (0 (null)) cgroup-lite (0 (null)) aufs-tools (0 (null)) ca-certificates (0 (null)) git (0 (null)) xz-utils (0 (null)) docker (0 (null)) docker:i386 (0 (null)) docker.io (0 (null)) docker.io:i386 (0 (null)) lxc-docker-virtual-package (0 (null)) lxc-docker-virtual-package:i386 (0 (null)) lxc-docker (0 (null)) lxc-docker:i386 (0 (null)) lxc-docker-virtual-package (0 (null)) lxc-docker-virtual-package:i386 (0 (null))
Provides:
0.9.1 - lxc-docker-virtual-package lxc-docker
Reverse Provides:
vagrant@docker-lwrp-lxc-ubuntu-1204:~$ apt-cache showpkg lxc-docker-0.8.0
Package: lxc-docker-0.8.0
Versions:
0.8.0 (/var/lib/apt/lists/get.docker.io_ubuntu_dists_docker_main_binary-amd64_Packages)
 Description Language:
                 File: /var/lib/apt/lists/get.docker.io_ubuntu_dists_docker_main_binary-amd64_Packages
                  MD5: 9d78c360b5a71f203d0de41369c7f0a4


Reverse Depends:
Dependencies:
0.8.0 - lxc (0 (null)) aufs-tools (0 (null)) iptables (0 (null)) ca-certificates (0 (null)) xz-utils (0 (null)) lxc-docker-virtual-package (0 (null)) lxc-docker-virtual-package:i386 (0 (null)) lxc-docker (0 (null)) lxc-docker:i386 (0 (null)) lxc-docker-virtual-package (0 (null)) lxc-docker-virtual-package:i386 (0 (null))
Provides:
0.8.0 - lxc-docker-virtual-package lxc-docker
Reverse Provides:
@bflad
Copy link
Contributor

bflad commented Mar 27, 2014

See comment on #102.

@bflad bflad closed this as completed in 00fbd9e Mar 29, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants