lxc-net fails to start with bash
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxc (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Precise |
Fix Released
|
Undecided
|
Stéphane Graber | ||
Quantal |
Fix Released
|
Medium
|
Unassigned |
Bug Description
=======
SRU Justification:
1. Impact: lxc-net fails to start if /bin/sh is linked to bash
2. Development fix: Fix the call to 'cleanup()' which does not work in bash
3. Stable fix: same as development fix
4. Test case:
1. install lxc
2. Link /bin/sh to /bin/bash
3. 'sudo stop lxc; sudo start lxc'
This will be added to the lxc testsuite
5. Regresion potential: a '()' is (apparently) allowed in dash, but not
required. This is purely a typo fix and should have no potential for
regression.
=======
ran:
sudo apt-get install mdadm
and got the following:
-------
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libglew1.5 libglewmx1.5
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
mdadm
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 360 kB of archives.
After this operation, 863 kB of additional disk space will be used.
Get:1 http://
Fetched 360 kB in 1s (247 kB/s)
Preconfiguring packages ...
dpkg: warning: parsing file '/var/lib/
error in Version string 'svn3918ppa1~
Selecting previously unselected package mdadm.
(Reading database ... 270405 files and directories currently installed.)
Unpacking mdadm (from .../mdadm_
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
Processing triggers for doc-base ...
Processing 6 added doc-base files...
Registering documents with scrollkeeper...
Processing triggers for man-db ...
Setting up lxc (0.7.5-3ubuntu54) ...
start: Job failed to start
invoke-rc.d: initscript lxc-net, action "start" failed.
dpkg: error processing lxc (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up mdadm (3.2.3-2ubuntu1) ...
No apport report written because MaxReports is reached already
Removing any system startup links for /etc/init.
update-initramfs: deferring update (trigger activated)
* Starting MD monitoring service mdadm --monitor [ OK ]
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.
W: mdadm: /etc/mdadm/
Errors were encountered while processing:
lxc
E: Sub-process /usr/bin/dpkg returned an error code (1)
-------
after which I cleared out the /var/crash directory and reran: sudo apt-get install mdadm, and got:
-------
Reading package lists... Done
Building dependency tree
Reading state information... Done
mdadm is already the newest version.
The following packages were automatically installed and are no longer required:
libglew1.5 libglewmx1.5
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up lxc (0.7.5-3ubuntu54) ...
start: Job failed to start
invoke-rc.d: initscript lxc-net, action "start" failed.
dpkg: error processing lxc (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
lxc
E: Sub-process /usr/bin/dpkg returned an error code (1)
ProblemType: Package
DistroRelease: Ubuntu 12.04
Package: lxc 0.7.5-3ubuntu54
ProcVersionSign
Uname: Linux 3.2.0-24-generic x86_64
ApportVersion: 2.0.1-0ubuntu7
AptOrdering: lxc: Configure
Architecture: amd64
Date: Wed May 16 06:49:27 2012
DpkgTerminalLog:
Setting up lxc (0.7.5-3ubuntu54) ...
start: Job failed to start
invoke-rc.d: initscript lxc-net, action "start" failed.
dpkg: error processing lxc (--configure):
subprocess installed post-installation script returned error exit status 1
DuplicateSignature:
Setting up lxc (0.7.5-3ubuntu54) ...
start: Job failed to start
invoke-rc.d: initscript lxc-net, action "start" failed.
dpkg: error processing lxc (--configure):
subprocess installed post-installation script returned error exit status 1
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationMedia: Ubuntu 10.04.1 LTS "Lucid Lynx" - Release amd64 (20100816.1)
SourcePackage: lxc
Title: package lxc 0.7.5-3ubuntu54 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
UpgradeStatus: Upgraded to precise on 2012-04-27 (18 days ago)
tags: | removed: need-duplicate-check |
Changed in lxc (Ubuntu): | |
status: | Incomplete → New |
status: | New → Incomplete |
description: | updated |
tags: | added: needs-sru |
Changed in lxc (Ubuntu Precise): | |
status: | Confirmed → Fix Committed |
assignee: | nobody → Stéphane Graber (stgraber) |
tags: | removed: needs-sru |
Thanks for reporting this bug. Interesting - so installing mdadm stopped lxc from starting? I can't reproduce that here, unfortunately.
Do you have autostart containers defined? (what does ls -l /etc/lxc/auto show?)
Can you add the line:
console output
right underneath the 'stop on' lines in both /etc/init/lxc.conf and /etc/init/ lxc-net. conf, then do
stop lxc
start lxc
and show the output here?