← Back to team overview

mythbuntu-bugs team mailing list archive

[Bug 727478] Re: mysql upgrade hang at 'installing new version of config file /etc/init/mysql.conf' during upgrade from 10.10 to 11.04

 

The problem is that there is an off-by-one bug in the maverick kernel
(already fixed in natty) for when apparmor userspace is compiled against
a newer kernel with more AF entries than the kernel that apparmor_paser
is bing run on. The options are to SRU a maverick kernel to fix the bug
or to adjust the apparmor_parser in natty to do a kernel version check,
and cap the number of AF entries appropriately. Since this could affect
more than just Ubuntu, and because this only affects upgrades (ie, newer
apparmor userspace compiled on maverick is just fine), it has been
decided that the second option will be used, and the patch is currently
under development.

-- 
You received this bug notification because you are a member of Mythbuntu
Bug Team, which is subscribed to Mythbuntu.
https://bugs.launchpad.net/bugs/727478

Title:
  mysql upgrade hang at 'installing new version of config file
  /etc/init/mysql.conf' during upgrade from 10.10 to 11.04

Status in Mythbuntu, Ubuntu derivative focused upon MythTV:
  Confirmed
Status in “apparmor” package in Ubuntu:
  Triaged
Status in “mysql-5.1” package in Ubuntu:
  Invalid
Status in “apparmor” source package in Natty:
  Triaged
Status in “mysql-5.1” source package in Natty:
  Invalid

Bug description:
  ISO Testing: Ubuntu Server i386/amd64 20110301

  During the upgrade from 10.10 to 11.04 MySQL hangs at 'Installing new
  version of config file /etc/init/mysql.conf'

  The following message is repeated in the logs:
  Mar  1 23:27:07 ubuntu kernel: [ 1156.610526] type=1400 audit(1299018427.307:19): apparmor="STATUS" operation="profile_replace" name="/usr/sbin/mysqld" pid=27275 comm="apparmor_parser"
  Mar  1 23:27:07 ubuntu kernel: [ 1156.831775] type=1400 audit(1299018427.537:20): apparmor="STATUS" operation="profile_replace" name="/usr/sbin/mysqld" pid=27299 comm="apparmor_parser"
  Mar  1 23:27:07 ubuntu kernel: [ 1156.950371] type=1400 audit(1299018427.657:21): apparmor="DENIED" operation="create" parent=1 profile="/usr/sbin/mysqld" pid=27303 comm="mysqld" family="inet" sock_type="stream" protocol=0
  Mar  1 23:27:12 ubuntu init: mysql main process (27303) terminated with status 1
  Mar  1 23:27:12 ubuntu init: mysql main process ended, respawning
  Mar  1 23:27:37 ubuntu init: mysql post-start process (27304) terminated with status 1
  Mar  1 23:27:37 ubuntu kernel: [ 1187.202892] type=1400 audit(1299018457.907:22): apparmor="STATUS" operation="profile_replace" name="/usr/sbin/mysqld" pid=27378 comm="apparmor_parser"
  Mar  1 23:27:37 ubuntu kernel: [ 1187.281457] type=1400 audit(1299018457.987:23): apparmor="DENIED" operation="create" parent=1 profile="/usr/sbin/mysqld" pid=27382 comm="mysqld" family="inet" sock_type="stream" protocol=0
  Mar  1 23:27:43 ubuntu init: mysql main process (27382) terminated with status 1
  Mar  1 23:27:43 ubuntu init: mysql main process ended, respawning

  ProblemType: Bug
  DistroRelease: Ubuntu 11.04
  Package: mysql-server (not installed)
  ProcVersionSignature: Ubuntu 2.6.38-5.32-generic 2.6.38-rc6
  Uname: Linux 2.6.38-5-generic i686
  Architecture: i386
  Date: Tue Mar  1 23:49:29 2011
  EcryptfsInUse: Yes
  ProcEnviron:
   LANGUAGE=en_US:en
   PATH=(custom, user)
   LANG=en_US.utf8
   SHELL=/bin/bash
  SourcePackage: mysql-5.1
  UpgradeStatus: Upgraded to natty on 2011-02-21 (8 days ago)