[Bug 1000174] Re: lxc-net fails to start with bash

Serge Hallyn 1000174 at bugs.launchpad.net
Mon May 21 15:54:13 UTC 2012


** Description changed:

+ =======================================
+ 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
+   sudo apt-get install mdadm
  and got the following:
  ---------------------------------------------------------
  Reading package lists... Done
- Building dependency tree       
+ Building dependency tree
  Reading state information... Done
  The following packages were automatically installed and are no longer required:
-   libglew1.5 libglewmx1.5
+   libglew1.5 libglewmx1.5
  Use 'apt-get autoremove' to remove them.
  The following NEW packages will be installed:
-   mdadm
+   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://us.archive.ubuntu.com/ubuntu/ precise/main mdadm amd64 3.2.3-2ubuntu1 [360 kB]
- Fetched 360 kB in 1s (247 kB/s) 
+ Fetched 360 kB in 1s (247 kB/s)
  Preconfiguring packages ...
  dpkg: warning: parsing file '/var/lib/dpkg/available' near line 47141 package 'handbrake-gtk':
-  error in Version string 'svn3918ppa1~maverick1': version number does not start with digit
+  error in Version string 'svn3918ppa1~maverick1': version number does not start with digit
  Selecting previously unselected package mdadm.
  (Reading database ... 270405 files and directories currently installed.)
  Unpacking mdadm (from .../mdadm_3.2.3-2ubuntu1_amd64.deb) ...
  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
+  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
-                                                               Generating mdadm.conf... done.
-  Removing any system startup links for /etc/init.d/mdadm-raid ...
+                                                               Generating mdadm.conf... done.
+  Removing any system startup links for /etc/init.d/mdadm-raid ...
  update-initramfs: deferring update (trigger activated)
-  * Starting MD monitoring service mdadm --monitor                        [ OK ] 
+  * Starting MD monitoring service mdadm --monitor                        [ OK ]
  Processing triggers for initramfs-tools ...
  update-initramfs: Generating /boot/initrd.img-3.2.0-24-generic
  W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
  Errors were encountered while processing:
-  lxc
+  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       
+ 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
+   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
+  subprocess installed post-installation script returned error exit status 1
  Errors were encountered while processing:
-  lxc
+  lxc
  E: Sub-process /usr/bin/dpkg returned an error code (1)
  
  ProblemType: Package
  DistroRelease: Ubuntu 12.04
  Package: lxc 0.7.5-3ubuntu54
  ProcVersionSignature: Ubuntu 3.2.0-24.37-generic 3.2.14
  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
+  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
+  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 added: needs-sru

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/1000174

Title:
  lxc-net fails to start with bash

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1000174/+subscriptions



More information about the Ubuntu-server-bugs mailing list