hw-cookbooks / lxc

Linux Containers via Chef
58 stars 49 forks source link

default recipe failure on Ubuntu 13.10 (Saucy) #49

Open bflad opened 10 years ago

bflad commented 10 years ago

Receiving this error using default recipe on Ubuntu 13.10:

...
[2014-01-02T05:27:14+00:00] INFO: template[/etc/default/lxc] updated file contents /etc/default/lxc
[2014-01-02T05:27:14+00:00] DEBUG: found current_mode == nil, so we are creating a new file, updating mode
[2014-01-02T05:27:14+00:00] DEBUG: found current_mode == nil, so we are creating a new file, updating mode
[2014-01-02T05:27:14+00:00] DEBUG: found target_uid == nil, so no owner was specified on resource, not managing owner
[2014-01-02T05:27:14+00:00] DEBUG: found target_gid == nil, so no group was specified on resource, not managing group

================================================================================
Error executing action `install` on resource 'package[lxc]'
================================================================================

Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '100'
---- Begin output of apt-get -q -y -o Dpkg::Options::="--force-confold" install lxc=1.0.0~alpha1-0ubuntu14 ----
STDOUT: Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
  bridge-utils cgroup-lite cloud-image-utils debootstrap distro-info
  distro-info-data dnsmasq-base euca2ools genisoimage libaio1
  libboost-system1.53.0 libboost-thread1.53.0 libcap2-bin liblxc0 libmnl0
  libnetfilter-conntrack3 libpam-cap librados2 librbd1 libseccomp1
  lxc-templates python-boto python-distro-info python-m2crypto python3-lxc
  qemu-utils sharutils
Suggested packages:
  shunit2 wodim cdrkit-doc libcap-dev btrfs-tools lxctl qemu-user-static
  bsd-mailx mailx
The following NEW packages will be installed:
  bridge-utils cgroup-lite cloud-image-utils debootstrap distro-info
  distro-info-data dnsmasq-base euca2ools genisoimage libaio1
  libboost-system1.53.0 libboost-thread1.53.0 libcap2-bin liblxc0 libmnl0
  libnetfilter-conntrack3 libpam-cap librados2 librbd1 libseccomp1 lxc
  lxc-templates python-boto python-distro-info python-m2crypto python3-lxc
  qemu-utils sharutils
0 upgraded, 28 newly installed, 0 to remove and 44 not upgraded.
Need to get 0 B/5,151 kB of archives.
After this operation, 18.6 MB of additional disk space will be used.
Selecting previously unselected package libaio1:amd64.
(Reading database ... 72775 files and directories currently installed.)
Unpacking libaio1:amd64 (from .../libaio1_0.3.109-4_amd64.deb) ...
Selecting previously unselected package libboost-system1.53.0:amd64.
Unpacking libboost-system1.53.0:amd64 (from .../libboost-system1.53.0_1.53.0-6+exp3ubuntu8_amd64.deb) ...
Selecting previously unselected package libboost-thread1.53.0:amd64.
Unpacking libboost-thread1.53.0:amd64 (from .../libboost-thread1.53.0_1.53.0-6+exp3ubuntu8_amd64.deb) ...
Selecting previously unselected package libseccomp1:amd64.
Unpacking libseccomp1:amd64 (from .../libseccomp1_1.0.1-2_amd64.deb) ...
Selecting previously unselected package liblxc0.
Unpacking liblxc0 (from .../liblxc0_1.0.0~alpha1-0ubuntu14_amd64.deb) ...
Selecting previously unselected package python-m2crypto.
Unpacking python-m2crypto (from .../python-m2crypto_0.21.1-3ubuntu3_amd64.deb) ...
Selecting previously unselected package libmnl0:amd64.
Unpacking libmnl0:amd64 (from .../libmnl0_1.0.3-3_amd64.deb) ...
Selecting previously unselected package libnetfilter-conntrack3:amd64.
Unpacking libnetfilter-conntrack3:amd64 (from .../libnetfilter-conntrack3_1.0.3-1_amd64.deb) ...
Selecting previously unselected package bridge-utils.
Unpacking bridge-utils (from .../bridge-utils_1.5-6ubuntu1_amd64.deb) ...
Selecting previously unselected package distro-info-data.
Unpacking distro-info-data (from .../distro-info-data_0.16ubuntu0.1_all.deb) ...
Selecting previously unselected package distro-info.
Unpacking distro-info (from .../distro-info_0.11_amd64.deb) ...
Selecting previously unselected package dnsmasq-base.
Unpacking dnsmasq-base (from .../dnsmasq-base_2.66-4ubuntu1_amd64.deb) ...
Selecting previously unselected package python-boto.
Unpacking python-boto (from .../python-boto_2.9.6-1_all.deb) ...
Selecting previously unselected package euca2ools.
Unpacking euca2ools (from .../euca2ools_2.1.3-1ubuntu1_all.deb) ...
Selecting previously unselected package genisoimage.
Unpacking genisoimage (from .../genisoimage_9%3a1.1.11-2ubuntu3_amd64.deb) ...
Selecting previously unselected package libcap2-bin.
Unpacking libcap2-bin (from .../libcap2-bin_1%3a2.22-1.2ubuntu2_amd64.deb) ...
Selecting previously unselected package libpam-cap:amd64.
Unpacking libpam-cap:amd64 (from .../libpam-cap_1%3a2.22-1.2ubuntu2_amd64.deb) ...
Selecting previously unselected package librados2.
Unpacking librados2 (from .../librados2_0.67.4-0ubuntu2_amd64.deb) ...
Selecting previously unselected package librbd1.
Unpacking librbd1 (from .../librbd1_0.67.4-0ubuntu2_amd64.deb) ...
Selecting previously unselected package python3-lxc.
Unpacking python3-lxc (from .../python3-lxc_1.0.0~alpha1-0ubuntu14_amd64.deb) ...
Selecting previously unselected package lxc.
Unpacking lxc (from .../lxc_1.0.0~alpha1-0ubuntu14_amd64.deb) ...
Selecting previously unselected package lxc-templates.
Unpacking lxc-templates (from .../lxc-templates_1.0.0~alpha1-0ubuntu14_all.deb) ...
Selecting previously unselected package python-distro-info.
Unpacking python-distro-info (from .../python-distro-info_0.11_all.deb) ...
Selecting previously unselected package qemu-utils.
Unpacking qemu-utils (from .../qemu-utils_1.5.0+dfsg-3ubuntu5.1_amd64.deb) ...
Selecting previously unselected package sharutils.
Unpacking sharutils (from .../sharutils_1%3a4.11.1-1ubuntu2_amd64.deb) ...
Selecting previously unselected package cgroup-lite.
Unpacking cgroup-lite (from .../cgroup-lite_1.8_all.deb) ...
Selecting previously unselected package cloud-image-utils.
Unpacking cloud-image-utils (from .../cloud-image-utils_0.27-0ubuntu4_all.deb) ...
Selecting previously unselected package debootstrap.
Unpacking debootstrap (from .../debootstrap_1.0.53ubuntu0.1_all.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
Processing triggers for install-info ...
Setting up libaio1:amd64 (0.3.109-4) ...
Setting up libboost-system1.53.0:amd64 (1.53.0-6+exp3ubuntu8) ...
Setting up libboost-thread1.53.0:amd64 (1.53.0-6+exp3ubuntu8) ...
Setting up libseccomp1:amd64 (1.0.1-2) ...
Setting up liblxc0 (1.0.0~alpha1-0ubuntu14) ...
Setting up python-m2crypto (0.21.1-3ubuntu3) ...
Setting up libmnl0:amd64 (1.0.3-3) ...
Setting up libnetfilter-conntrack3:amd64 (1.0.3-1) ...
Setting up bridge-utils (1.5-6ubuntu1) ...
Setting up distro-info-data (0.16ubuntu0.1) ...
Setting up distro-info (0.11) ...
Setting up dnsmasq-base (2.66-4ubuntu1) ...
Setting up python-boto (2.9.6-1) ...
Setting up euca2ools (2.1.3-1ubuntu1) ...
Setting up genisoimage (9:1.1.11-2ubuntu3) ...
Setting up libcap2-bin (1:2.22-1.2ubuntu2) ...
Setting up libpam-cap:amd64 (1:2.22-1.2ubuntu2) ...
Setting up librados2 (0.67.4-0ubuntu2) ...
Setting up librbd1 (0.67.4-0ubuntu2) ...
Setting up python3-lxc (1.0.0~alpha1-0ubuntu14) ...
Setting up lxc (1.0.0~alpha1-0ubuntu14) ...
Setting up python-distro-info (0.11) ...
Setting up qemu-utils (1.5.0+dfsg-3ubuntu5.1) ...
Setting up sharutils (1:4.11.1-1ubuntu2) ...
Setting up cgroup-lite (1.8) ...
cgroup-lite start/running
Setting up cloud-image-utils (0.27-0ubuntu4) ...
Setting up debootstrap (1.0.53ubuntu0.1) ...
Processing triggers for libc-bin ...
Processing triggers for ureadahead ...
STDERR: Configuration file `/etc/default/lxc'
 ==> File on system created by you or by a script.
 ==> File also in package provided by package maintainer.
 ==> Using current old file as you requested.
invoke-rc.d: policy-rc.d returned error status 100
dpkg: error processing lxc (--configure):
 subprocess installed post-installation script returned error exit status 100
dpkg: dependency problems prevent configuration of lxc-templates:
 lxc-templates depends on lxc (>= 0.8.0~rc1-4ubuntu43); however:
  Package lxc is not configured yet.

dpkg: error processing lxc-templates (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 lxc
 lxc-templates
E: Sub-process /usr/bin/dpkg returned an error code (1)
---- End output of apt-get -q -y -o Dpkg::Options::="--force-confold" install lxc=1.0.0~alpha1-0ubuntu14 ----
Ran apt-get -q -y -o Dpkg::Options::="--force-confold" install lxc=1.0.0~alpha1-0ubuntu14 returned 100

Resource Declaration:
---------------------
# In /tmp/vagrant-chef-1/chef-solo-1/cookbooks/lxc/recipes/default.rb

 80:   package lxcpkg do
 81:     options '-o Dpkg::Options::="--force-confold"'
 82:   end
 83: end

Compiled Resource:
------------------
# Declared in /tmp/vagrant-chef-1/chef-solo-1/cookbooks/lxc/recipes/default.rb:80:in `block in from_file'

package("lxc") do
  action :install
  retries 0
  retry_delay 2
  options "-o Dpkg::Options::=\"--force-confold\""
  package_name "lxc"
  version "1.0.0~alpha1-0ubuntu14"
  cookbook_name :lxc
  recipe_name "default"
end

Any ideas?

bflad commented 10 years ago

FWIW, works fine on clean Ubuntu 13.10 installation via apt-get install lxc.

chrisroberts commented 10 years ago

Well, that's annoying. The issue is that we want to have our own configuration file used over what is shipped in the package. It's to allow configuring the lxc-net when the default network values will cause a conflict. I'll spin things up on 13.10 and see what can be done to get things happy with apt.