mysql55 does not 'add' to check config or restart service

Bug #746116 reported by MikeG
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
IUS Community Project
Won't Fix
Undecided
Unassigned

Bug Description

While a package should not automatically enable a service to chkconfig, it should make it available to chkconfig. It would also seemingly make sense to restart the upgraded service:

rpm -Uvh
http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/x86_64/ius-release-1.0-6.ius.el5.noarch.rpm
http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
yum install yum-plugin-replace
yum install mysql-server
service mysqld start # do not touch chkconfig

# yum replace mysql --replace-with mysql55
Loaded plugins: replace, rhnplugin, security
Replacing packages takes time, please be patient...

WARNING: Unable to resolve all providers: ['config(mysql)',
'libmysqlclient.so.15()(64bit)',
'libmysqlclient.so.15(libmysqlclient_15)(64bit)',
'libmysqlclient_r.so.15()(64bit)',
'libmysqlclient_r.so.15(libmysqlclient_15)(64bit)',
'config(mysql-server)']

This may be normal depending on the package. Continue? [y/N]

==================================================================================================================================================
 Package Arch
Version Repository
      Size
==================================================================================================================================================
Installing:
 mysql55 x86_64
5.5.9-1.ius.el5 ius
     7.4 M
 mysql55-server x86_64
5.5.9-1.ius.el5 ius
      12 M
Removing:
 mysql x86_64
5.0.77-4.el5_5.4 installed
     8.1 M
 mysql-server x86_64
5.0.77-4.el5_5.4 installed
      22 M
Installing for dependencies:
 mysql55-libs x86_64
5.5.9-1.ius.el5 ius
     1.2 M
 mysqlclient15 x86_64
5.0.91-1.ius.el5 ius
     1.7 M

[root@mysql55 ~]# mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.0.77 Source distribution

Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights
reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input
statement.

mysql> Bye

[root@mysql55 ~]# chkconfig --list mysqld
service mysqld supports chkconfig, but is not referenced in any
runlevel (run 'chkconfig --add mysqld')
[root@mysql55 ~]# chkconfig --list | grep -i mysql

Revision history for this message
MikeG (mikegriffin) wrote :
Download full text (4.5 KiB)

This does not seem to be the case if you upgrade to mysql55 manually instead of using yum-plugin-replace:

[root@mysql55 ~]# rpm -e --nodeps mysql mysql-server
warning: /var/log/mysqld.log saved as /var/log/mysqld.log.rpmsave
[root@mysql55 ~]# ps axuw | grep -i mysql
root 2016 0.0 0.5 63840 1316 pts/0 S 22:18 0:00
/bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql
--socket=/var/lib/mysql/mysql.sock --log-error=/var/log/mysqld.log
--pid-file=/var/run/mysqld/mysqld.pid --user=mysql
mysql 2066 0.0 9.1 188404 23996 pts/0 Sl 22:18 0:00
/usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql
--user=mysql --pid-file=/var/run/mysqld/mysqld.pid
--skip-external-locking --socket=/var/lib/mysql/mysql.sock
root 2092 0.0 0.3 61188 824 pts/0 S+ 22:19 0:00
grep -i mysql
[root@mysql55 ~]#
[root@mysql55 ~]#
[root@mysql55 ~]# yum install mysql55 mysql55-libs mysql55-server
Loaded plugins: replace, rhnplugin, security
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package mysql55.x86_64 0:5.5.9-1.ius.el5 set to be updated
--> Processing Dependency: mysqlclient15 for package: mysql55
---> Package mysql55-libs.x86_64 0:5.5.9-1.ius.el5 set to be updated
---> Package mysql55-server.x86_64 0:5.5.9-1.ius.el5 set to be updated
--> Running transaction check
---> Package mysqlclient15.x86_64 0:5.0.91-1.ius.el5 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

==================================================================================================================================================
 Package Arch
   Version Repository
     Size
==================================================================================================================================================
Installing:
 mysql55 x86_64
   5.5.9-1.ius.el5 ius
    7.4 M
 mysql55-libs x86_64
   5.5.9-1.ius.el5 ius
    1.2 M
 mysql55-server x86_64
   5.5.9-1.ius.el5 ius
     12 M
Installing for dependencies:
 mysqlclient15 x86_64
   5.0.91-1.ius.el5 ius
    1.7 M

Transaction Summary
==================================================================================================================================================
Install 4 Package(s)
Upgrade 0 Package(s)

Total download size: 22 M
Is this ok [y/N]: y
Downloading Packages:
(1/4): mysql55-libs-5.5.9-1.ius.el5.x86_64.rpm
                                                       | 1.2 MB
00:00
(2/4): mysqlclient15-5.0.91-1.ius.el5.x86_64.rpm
                                                       | 1.7 MB
00:00
(3/4): mysql55-5.5.9-1.ius.el5.x86_64.rpm
                                                       | 7.4 MB
00:02
(4/4): mysql55-server-5.5.9-1.ius.el5.x86_64.rpm
                                                       | 12 MB
00:04
---------------------------------------------------------------------------------------------------------...

Read more...

Revision history for this message
Jeffrey Ness (jeffrey-ness) wrote :

Going to attempt to reproduce the issue using EL5 x86_64 and latest MySQL 55 Package (5.5.10):

    https://gist.github.com/941016

Revision history for this message
Jeffrey Ness (jeffrey-ness) wrote :

Performing same test with MySQL 5.1:

   https://gist.github.com/c14e9f337141d11ed0ef

Revision history for this message
Jeffrey Ness (jeffrey-ness) wrote :
Revision history for this message
Jeffrey Ness (jeffrey-ness) wrote :

The difference between mysql51 and mysql55 %post:

    https://gist.github.com/941118

Revision history for this message
bharper (bharper) wrote :

We are moving bug/ticket/issue tracking from Launchpad to GitHub[0]. All stale tickets within Launchpad are getting closed. If you feel this issue still needs to get investigated, please create an issue in GitHub yum-plugin-replace repository[1].

-Ben

[0] https://lists.launchpad.net/ius-community/msg01635.html
[1] https://github.com/iuscommunity/yum-plugin-replace

Changed in ius:
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.