** Description changed:

+ == SRU Justification ==
+ 
+ = IMPACT =
+ 
+ Users who have inadvertently broken their mysql configuration will be
+ met with a hung package upgrade process on any updates, and no easy way
+ to see that fact.
+ 
+ = TEST CASE: =
+ 
+ 1. sudo apt-get install mysql-server
+ 2. edit /etc/mysql/my.cnf and add an invalid variable to the [mysqld] section
+ 3. sudo apt-get --reinstall install mysql-server - affected system will hang 
forever on the 'start' of mysql
+ 4. in another terminal, verify status of mysql job is 'start/respawn'
+ 5. in that second terminal, run 'sudo stop mysql'
+ 6. first terminal should now be "unlocked"
+ 7. install updated package
+ 8. install should error out on starting mysql, but not hang, giving the user 
an opportunity to see their broken /etc/mysql/my.cnf.
+ 
+ = Dev Fix =
+ 
+ This was fixed in the 5.5 packages by making sure that in the post-start
+ if the job is in 'respawn' that the post-start is aborted immediately.
+ 
+ = REGRESSION POTENTIAL =
+ 
+ Its possible that this code will cause some systems to error out where
+ they would keep retrying forever. This might be particularly problematic
+ in systems that use configuration management like puppet or chef, where
+ they would boot the system, and then run the config management to apply
+ the correct configs.
+ 
+ ========
+ 
  I believe that it is looking for some input when updating mysql.  The
  updating just stops when mysql is being updated.  There is no dialog box
  to be found.  This has happened to me several times on different
  computers.
  
  ProblemType: Package
  DistroRelease: Ubuntu 10.04
  Package: mysql-server-5.1 5.1.41-3ubuntu12.9
  ProcVersionSignature: Ubuntu 2.6.32-27.49-generic 2.6.32.26+drm33.12
  Uname: Linux 2.6.32-27-generic x86_64
  NonfreeKernelModules: wl nvidia
  Architecture: amd64
  Date: Tue Feb  1 18:32:38 2011
  ErrorMessage: subprocess installed post-installation script killed by signal 
(Terminated)
  InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
  MySQLConf.etc.mysql.conf.d.mysqld.safe.syslog.cnf:
-  [mysqld_safe]
-  syslog
+  [mysqld_safe]
+  syslog
  MySQLVarLibDirListing: ['mysql', 'debian-5.1.flag']
  SourcePackage: mysql-dfsg-5.1
  Title: package mysql-server-5.1 5.1.41-3ubuntu12.9 failed to install/upgrade: 
subprocess installed post-installation script killed by signal (Terminated)
  mtime.conffile..etc.apparmor.d.usr.sbin.mysqld: 2010-03-06T11:30:30.842210

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/711635

Title:
  init: post-start can cause respawn to hang

To manage notifications about this bug go to:
https://bugs.launchpad.net/upstart/+bug/711635/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to