kolla-toolbox fails to build

Bug #1548589 reported by Martin André on 2016-02-23
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
kolla
Critical
Jeffrey Zhang
Liberty
Critical
Steven Dake

Bug Description

Percona updated their packages and it is now conflicting with mariadb-libs.

    INFO:__main__:kolla-toolbox:Transaction check error:
    INFO:__main__:kolla-toolbox: file /etc/my.cnf conflicts between attempted installs of Percona-XtraDB-Cluster-shared-55-1:5.5.41-25.11.853.el7.x86_64 and MariaDB-common-10.0.24-1.el7.centos.x86_64
    INFO:__main__:kolla-toolbox: file /usr/lib64/libmysqlclient.so.18.0.0 conflicts between attempted installs of Percona-XtraDB-Cluster-shared-55-1:5.5.41-25.11.853.el7.x86_64 and MariaDB-shared-10.0.24-1.el7.centos.x86_64
     INFO:__main__:kolla-toolbox: file /usr/lib64/libmysqlclient_r.so.18.0.0 conflicts between attempted installs of Percona-XtraDB-Cluster-shared-55-1:5.5.41-25.11.853.el7.x86_64 and MariaDB-shared-10.0.24-1.el7.centos.x86_64
    INFO:__main__:kolla-toolbox:Error Summary
    INFO:__main__:kolla-toolbox:-------------
    INFO:__main__:kolla-toolbox:
    INFO:__main__:kolla-toolbox:Removing intermediate container 76d8d6c88f66
    ERROR:__main__:kolla-toolbox:Error'd with the following message
    ERROR:__main__:kolla-toolbox:The command '/bin/sh -c yum -y install gcc git libffi-devel libxml2-devel libxslt-devel mariadb-devel mariadb-libs MariaDB-shared openssl-devel python-devel openssh-clients && yum clean all && rpm -e --nodeps pytz' returned a non-zero code: 1
    INFO:__main__:Successfully built images
    INFO:__main__:=========================
    INFO:__main__:base
    INFO:__main__:Images that failed to build
    INFO:__main__:===========================
    ERROR:__main__:kolla-toolbox Failed with status: error

Jeffrey Zhang (jeffrey4l) wrote :
Download full text (4.1 KiB)

some more information

When install mariadb-libs, it will install Percona-Server-shared-56. However, the Percona-Server-shared-56 is conflict with MariaDB-shared/MariaDB-common, they have the same file `/etc/my.cnf`, and a almost the same so file `/usr/lib64/libmysqlclient.so.18.1.0`( only the mirco version is different)

$ rpm -ql Percona-Server-shared-56
/etc/my.cnf
/usr/lib64/libmysqlclient.so.18.1.0
/usr/lib64/libmysqlclient_r.so.18.1.0

$ rpm -ql MariaDB-shared
/etc/my.cnf.d
/etc/my.cnf.d/client.cnf
/usr/lib64/libmysqlclient.so
/usr/lib64/libmysqlclient.so.18
/usr/lib64/libmysqlclient.so.18.0.0
/usr/lib64/libmysqlclient_r.so
/usr/lib64/libmysqlclient_r.so.18
/usr/lib64/libmysqlclient_r.so.18.0.0

$ rpm -ql MariaDB-common
/etc/my.cnf
...

$ yum install mariadb-libs
Loaded plugins: fastestmirror, ovl, priorities, versionlock
Loading mirror speeds from cached hostfile
 * base: centos.mirror1.spango.com
 * epel: mirror.vutbr.cz
 * extras: centos.mirror1.spango.com
 * updates: mirrors.supportex.net
1322 packages excluded due to repository priority protections
Package mariadb-libs is obsoleted by Percona-XtraDB-Cluster-shared-55, trying to install 1:Percona-XtraDB-Cluster-shared-55-5.5.41-25.11.853.el7.x86_64 instead
Resolving Dependencies
--> Running transaction check
---> Package Percona-XtraDB-Cluster-shared-55.x86_64 1:5.5.41-25.11.853.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===============================================================================================================================================================
 Package Arch Version Repository Size
===============================================================================================================================================================
Installing:
 Percona-XtraDB-Cluster-shared-55 x86_64 1:5.5.41-25.11.853.el7 percona-release-x86_64 565 k

Transaction Summary
===============================================================================================================================================================
Install 1 Package

Total download size: 565 k
Installed size: 565 k

$ yum install MariaDB-shared
Loaded plugins: fastestmirror, ovl, priorities, versionlock
Loading mirror speeds from cached hostfile
 * base: centos.mirror1.spango.com
 * epel: mirror.vutbr.cz
 * extras: centos.mirror1.spango.com
 * updates: mirrors.supportex.net
1322 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package MariaDB-shared.x86_64 0:10.0.24-1.el7.centos will be installed
--> Processing Dependency: MariaDB-common for package: MariaDB-shared-10.0.24-1.el7.centos.x86_64
--> Running transaction check
---> Package MariaDB-common.x86_64 0:10.0.24-1.el7.centos will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=======================================================================================================================================...

Read more...

Reviewed: https://review.openstack.org/282906
Committed: https://git.openstack.org/cgit/openstack/kolla/commit/?id=937c771ec8cb0afdcae2b0b499b7f93f669d4221
Submitter: Jenkins
Branch: master

commit 937c771ec8cb0afdcae2b0b499b7f93f669d4221
Author: Jeffrey Zhang <jeffrey.zhang@99cloud.net>
Date: Mon Feb 22 07:32:47 2016 +0800

    Fix building centos kolla-toolbox

    Percona recently updated their package which is now conflicting with
    mariadb-libs.

    Closes-Bug: #1548589

    Change-Id: I9db7ffb8b94b623784cffa3e63804c47375097d1

Changed in kolla:
status: New → Fix Released

Change abandoned by Rodolfo Alonso Hernandez (<email address hidden>) on branch: stable/liberty
Review: https://review.openstack.org/295876

Change abandoned by Rodolfo Alonso Hernandez (<email address hidden>) on branch: stable/liberty
Review: https://review.openstack.org/295876
Reason: Suggested by the author

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers