Public bug reported:

Binary package hint: update-manager

During the Karmic release cycle, MySQL has been updated from 5.0 to 5.1
in main. That means that the mysql-server binary package is now
depending on mysql-server-5.1 instead of mysql-server-5.0. update-
manager already supports upgrading mysql-server from 5.0 to 5.1 - see
bug 413789.

However there is one use case where the upgrade should not be done. If
mysql-server is setup as part of a MySQL cluster (ndb engine), the
system should not be upgraded to 5.1. Instead the mysql-server binary
package should be removed (as it would pull 5.1 in) and 5.0 should be
upgraded instead (which is in universe in karmic).

There is already a check in mysql-server-5.1.preinst script that tests
if the ndb engine ise used. If so it aborts the upgrade by printing a
message:

# Abort if an NDB cluster is in use.
if egrep -qi -r '^[^#]*ndb.connectstring|^[:space:]*\[[:space:]*ndb_mgmd' 
/etc/mysql/; then
  db_fset mysql-server/no_upgrade_when_using_ndb seen false || true
  db_input high mysql-server/no_upgrade_when_using_ndb || true
  db_go
  db_stop
  exit 1
fi

Removing mysql-server should be done before an upgrade is performed.

** Affects: update-manager (Ubuntu)
     Importance: Medium
     Assignee: Michael Vogt (mvo)
         Status: Triaged

** Affects: update-manager (Ubuntu Karmic)
     Importance: Medium
     Assignee: Michael Vogt (mvo)
         Status: Triaged

** Changed in: update-manager (Ubuntu)
   Importance: Undecided => Medium

** Changed in: update-manager (Ubuntu)
       Status: New => Triaged

** Also affects: update-manager (Ubuntu Karmic)
   Importance: Medium
       Status: Triaged

** Changed in: update-manager (Ubuntu Karmic)
     Assignee: (unassigned) => Michael Vogt (mvo)

-- 
If mysql is configured to use the ndb engine a karmic upgrade should keep 
mysql-dfsg-5.0 and remove the mysql-server package
https://bugs.launchpad.net/bugs/450837
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to