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

package-lxc-ubuntu-1404 fails kitchen test with lxc-start error #188

Closed
bplunkert opened this issue Jul 7, 2014 · 5 comments
Closed

package-lxc-ubuntu-1404 fails kitchen test with lxc-start error #188

bplunkert opened this issue Jul 7, 2014 · 5 comments

Comments

@bplunkert
Copy link

[2014-07-07T20:17:03+00:00] INFO: Processing docker_image[docker_image_build_1] action build (docker_test::image_lwrp line 16)       

================================================================================       
Error executing action `build` on resource 'docker_image[docker_image_build_1]'       
================================================================================       


Mixlib::ShellOut::ShellCommandFailed       
------------------------------------       
Expected process to exit with [0], but received '1'       
---- Begin output of docker build  --tag="docker_image_build_1:docker_image_build_1_tag" - < /tmp/docker_image_build.dockerfile ----       
STDOUT: Step 0 : FROM busybox       
        ---> a9eb17255234
       Step 1 : RUN /bin/echo 'hello from docker_image_build_1'
        ---> Running in daf716e55ca6
       lxc-start: symbol lookup error: /usr/lib/x86_64-linux-gnu/liblxc.so.1: undefined symbol: cgmanager_get_pid_cgroup_abs_sync

       STDERR: Sending build context to Docker daemon 2.048 kB
       Sending build context to Docker daemon 
       2014/07/07 20:17:03 The command [/bin/sh -c /bin/echo 'hello from docker_image_build_1'] returned a non-zero code: 127
       ---- End output of docker build  --tag="docker_image_build_1:docker_image_build_1_tag" - < /tmp/docker_image_build.dockerfile ----
       Ran docker build  --tag="docker_image_build_1:docker_image_build_1_tag" - < /tmp/docker_image_build.dockerfile returned 1


       Cookbook Trace:

       ---------------
       /tmp/kitchen/cache/cookbooks/docker/libraries/helpers.rb:272:in `execute_cmd!'
       /tmp/kitchen/cache/cookbooks/docker/libraries/helpers.rb:265:in `docker_cmd!'
       /tmp/kitchen/cache/cookbooks/docker/providers/image.rb:127:in `build'
       /tmp/kitchen/cache/cookbooks/docker/providers/image.rb:25:in `block in class_from_file'


       Resource Declaration:
       ---------------------
       # In /tmp/kitchen/cache/cookbooks/docker_test/recipes/image_lwrp.rb

        16: docker_image 'docker_image_build_1' do
        17:   tag 'docker_image_build_1_tag'
        18:   source docker_image_build_1_file
        19:   action [:build, :remove]
        20: end
        21: 
        22: docker_image_build_2_dir = '/tmp/docker_image_build_2'
        23: 
        24: directory docker_image_build_2_dir
        25: 
        26: file "#{docker_image_build_2_dir}/foo.txt" do
        27:   content 'Dockerfile_2 contains ADD for this file'
        28: end
        29: 
        30: cookbook_file "#{docker_image_build_2_dir}/Dockerfile" do
        31:   source 'Dockerfile_2'
        32: end
        33: 
        34: docker_image 'docker_image_build_2' do
        35:   source docker_image_build_2_dir
        36:   action :build
        37: end



       Compiled Resource:
       ------------------
       # Declared in /tmp/kitchen/cache/cookbooks/docker_test/recipes/image_lwrp.rb:16:in `from_file'

       docker_image("docker_image_build_1") do
         action [:build, :remove]
         retries 0
         retry_delay 2
         guard_interpreter :default
         cookbook_name "docker_test"
         recipe_name "image_lwrp"
         tag "docker_image_build_1_tag"
         source "/tmp/docker_image_build.dockerfile"
         cmd_timeout 300
         image_name "docker_image_build_1"
       end



[2014-07-07T20:17:03+00:00] INFO: Running queued delayed notifications before re-raising exception       
[2014-07-07T20:17:03+00:00] INFO: template[/etc/default/lxc] sending restart action to service[lxc-net] (delayed)       
Recipe: lxc::default       
  * service[lxc-net] action restart[2014-07-07T20:17:03+00:00] INFO: Processing service[lxc-net] action restart (lxc::default line 90)       
       [2014-07-07T20:17:03+00:00] INFO: service[lxc-net] restarted

           - restart service service[lxc-net]


       Running handlers:
       [2014-07-07T20:17:03+00:00] ERROR: Running exception handlers
       Running handlers complete

       [2014-07-07T20:17:03+00:00] ERROR: Exception handlers complete
       [2014-07-07T20:17:03+00:00] FATAL: Stacktrace dumped to /tmp/kitchen/cache/chef-stacktrace.out
       Chef Client failed. 39 resources updated in 378.320975494 seconds
[2014-07-07T20:17:04+00:00] ERROR: docker_image[docker_image_build_1] (docker_test::image_lwrp line 16) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'       
---- Begin output of docker build  --tag="docker_image_build_1:docker_image_build_1_tag" - < /tmp/docker_image_build.dockerfile ----       
STDOUT: Step 0 : FROM busybox       
 ---> a9eb17255234       
Step 1 : RUN /bin/echo 'hello from docker_image_build_1'       
 ---> Running in daf716e55ca6       
lxc-start: symbol lookup error: /usr/lib/x86_64-linux-gnu/liblxc.so.1: undefined symbol: cgmanager_get_pid_cgroup_abs_sync       

       STDERR: Sending build context to Docker daemon 2.048 kB
       Sending build context to Docker daemon 
       2014/07/07 20:17:03 The command [/bin/sh -c /bin/echo 'hello from docker_image_build_1'] returned a non-zero code: 127
       ---- End output of docker build  --tag="docker_image_build_1:docker_image_build_1_tag" - < /tmp/docker_image_build.dockerfile ----
       Ran docker build  --tag="docker_image_build_1:docker_image_build_1_tag" - < /tmp/docker_image_build.dockerfile returned 1
[2014-07-07T20:17:04+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)       
>>>>>> Converge failed on instance <package-lxc-ubuntu-1404>.
@bflad
Copy link
Contributor

bflad commented Jul 10, 2014

FWIW, when I just ran it, it worked fine via Test Kitchen with Ubuntu 14.04. I double checked and libcgmanager is listed as a dependency and the default recipe runs apt-get update:
http://packages.ubuntu.com/trusty/lxc (liblxc1 dependency)
http://packages.ubuntu.com/trusty/liblxc1 (libcgmanager0 dependency)
http://packages.ubuntu.com/trusty/libcgmanager0

@bflad
Copy link
Contributor

bflad commented Jul 10, 2014

Oh sheesh, it worked fine on package-native-ubuntu-1404, but not package-lxc-ubuntu-1404 like you reported. 😦 I do see it calling apt-get update so this must be something with the cgroups recipe or https://github.com/hw-cookbooks/lxc cookbook?

@john3exonets
Copy link

Any updates on this? I'm getting similar errors:

$ lxc-ls
Traceback (most recent call last):
File "/usr/bin/lxc-ls", line 31, in
import lxc
File "/usr/lib/python3/dist-packages/lxc/init.py", line 26, in
import _lxc
ImportError: /usr/lib/x86_64-linux-gnu/liblxc.so.1: undefined symbol: cgmanager_get_pid_cgroup_abs_sync

This is on an Ubuntu 14.04 w/all updates as of today.

Thanks.

@someara
Copy link
Contributor

someara commented Jul 14, 2015

Package installs deprecated as of 0.40.x

@someara someara closed this as completed Jul 14, 2015
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

4 participants