Spurious RPM dependency on XtraDB Cluster
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona Server moved to https://jira.percona.com/projects/PS |
Fix Released
|
High
|
Ignacio Nin | ||
5.5 |
Fix Released
|
High
|
Ignacio Nin |
Bug Description
Original report by Jay Janssen:
Installing standard percona server 5.5. on a relatively fresh centos box (6.2) via the percona yum repo.
mysql and mysql-server were previously installed, so I got an install error:
[root@SQL001 ~]# yum install Percona-
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: mirror.stanford.edu
* extras: mirror.
* updates: mirrors.cat.pdx.edu
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package Percona-
---> Package Percona-
---> Package Percona-
---> Package Percona-
---> Package Percona-
---> Package mysql-libs.x86_64 0:5.1.61-1.el6_2.1 will be obsoleted
--> Processing Conflict: mysql-5.
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package Percona-
---> Package mysql.x86_64 0:5.1.61-1.el6_2.1 will be obsoleted
--> Processing Conflict: mysql-server-
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package Percona-
--> Processing Dependency: xtrabackup >= 1.9.0 for package: 1:Percona-
--> Processing Dependency: Percona-
--> Processing Dependency: nc for package: 1:Percona-
---> Package mysql-server.x86_64 0:5.1.61-1.el6_2.1 will be obsoleted
--> Running transaction check
---> Package Percona-
---> Package nc.x86_64 0:1.84-22.el6 will be installed
---> Package percona-
--> Processing Conflict: 1:Percona-
--> Processing Conflict: 1:Percona-
--> Finished Dependency Resolution
Error: Percona-
Error: Percona-
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
Where did Xtradb-Cluster come from?!
Removing mysql and mysql-server solved the problem:
[root@SQL001 ~]# rpm -e mysql mysql-server
warning: /var/log/mysqld.log saved as /var/log/
[root@SQL001 ~]# yum install Percona-
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: mirror.stanford.edu
* extras: mirror.
* updates: mirrors.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package Percona-
---> Package Percona-
---> Package Percona-
---> Package Percona-
---> Package Percona-
---> Package mysql-libs.x86_64 0:5.1.61-1.el6_2.1 will be obsoleted
--> Finished Dependency Resolution
Dependencies Resolved
=======
Package Arch Version Repository Size
=======
Installing:
Percona-
Percona-
Percona-
Percona-
Percona-
replacing mysql-libs.x86_64 5.1.61-1.el6_2.1
Transaction Summary
=======
Install 5 Package(s)
Total download size: 29 M
Is this ok [y/N]: y
Downloading Packages:
(1/5): Percona-
(2/5): Percona-
(3/5): Percona-
(4/5): Percona-
(5/5): Percona-
-------
Total 811 kB/s | 29 MB 00:36
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
Installing : Percona-
Installing : Percona-
Installing : Percona-
This sure seems like a dependency problem to me: XtraDB cluster should not get installed unless one specifically asks for it.
Related branches
Changed in percona-server: | |
status: | Fix Committed → Fix Released |
Hello,
Our packages Obsolete: mysql and mysql-server, so if you've got them installed they will get replaced by our packages. In other words, it's impossible to install mysql-server AND Percona-Server.
If you haven't installed mysql, then PS gets selected when you choose to install it specifically. However, if you have installed mysql, PS and PXC will try to obsolete it. Which gets installed is choosed from the version and PXC gets selected it for having a
"higher" version according to RPM.
I'll investigate if this can be "solved", but the solution is to avoid try to install PS over mysql.