Broken dependency in percona-xtradb-cluster-server-5.6

Bug #1685205 reported by Dr. Jens Harbott
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona XtraDB Cluster moved to https://jira.percona.com/projects/PXC
Status tracked in 5.6
5.6
Fix Committed
Undecided
EvgeniyPatlan
5.7
Invalid
Undecided
Unassigned

Bug Description

After upgrading percona-xtradb-cluster-server-5.6 on xenial from 5.6.32-78.1-56 to 5.6.35-26.20-2.xenial we see this error when starting the server:

2017-04-20 14:55:29 5978 [ERROR] WSREP: provider interface version mismatch: need '26', found '25'
2017-04-20 14:55:29 5978 [ERROR] WSREP: wsrep_load(): interface version mismatch: my version 26, provider version 25
2017-04-20 14:55:29 5978 [ERROR] WSREP: wsrep_load(/usr/lib/libgalera_smm.so) failed: Invalid argument (22). Reverting to no provider.

As a result, the server runs in standalone mode, leading to some interesting results.

However, the dependency for this pkg explicitly lists:

  Depends: <percona-xtradb-cluster-galera-25>

Only when I install the wrapper package percona-xtradb-cluster-56, the correct dependency percona-xtradb-cluster-galera-3 is installed, but giving this warning:

dpkg: galera-3: dependency problems, but removing anyway as you requested:
 percona-xtradb-cluster-server-5.6 depends on percona-xtradb-cluster-galera-25; however:
  Package percona-xtradb-cluster-galera-25 is not installed.
  Package galera-3 which provides percona-xtradb-cluster-galera-25 is to be removed.

Changed in percona-xtradb-cluster:
assignee: nobody → EvgeniyPatlan (evgeniy-patlan)
Revision history for this message
EvgeniyPatlan (evgeniy-patlan) wrote :

Could you please provide a bit more information regarding your case:
Exact version of installed package before the update (you have provided 5.6.32-78.1-56 but we have 5.6.32-25.17)
What percona packages were installed
How did you performed upgrade.

I have tried to reproduce the issue (upgrade - 5.6.32-25.17 to 5.6.35-26.20) and everything worked as expected.

Revision history for this message
Dr. Jens Harbott (j-harbott) wrote :

The problem appears when percona-xtradb-cluster-56 is not installed, only percona-xtradb-cluster-server-5.6. The old version I am upgrading from is 5.6.21-25.8-0ubuntu3.2, sorry for the wrong version information.

Due to the bad dependency, during the upgrade galera-3=25.3.14-1 gets installed instead of percona-xtradb-cluster-galera-3.x=3.20-3.xenial.

The command for the upgrade is

apt-get -q -y install percona-xtradb-cluster-server-5.6=5.6.35-26.20-3.xenial

and according to the apt history log it installs these packages:

libcurl3:amd64 (7.47.0-1ubuntu2.2, automatic), iproute:amd64 (1:4.3.0-1ubuntu3, automatic), libev4:amd64 (1:4.22-1, automatic), libdbi-perl:amd64 (1.634-1build1, automatic), libaio1:amd64 (0.3.110-2, automatic), percona-xtradb-cluster-common-5.6:amd64 (5.6.35-26.2
0-3.xenial, automatic), percona-xtradb-cluster-server-5.6:amd64 (5.6.35-26.20-3.xenial), percona-xtradb-cluster-client-5.6:amd64 (5.6.35-26.20-3.xenial, automatic), galera-3:amd64 (25.3.14-1, automatic), percona-xtrabackup:amd64 (2.3.8-1.xenial, automatic), libdbd-mysql-pe
rl:amd64 (4.033-1ubuntu0.1, automatic), socat:amd64 (1.7.3.1-1, automatic)

As a fix I did

apt install percona-xtradb-cluster-56

and this then installs

percona-xtradb-cluster-galera-3.x:amd64 (3.20-3.xenial, automatic), percona-xtradb-cluster-galera-3:amd64 (3.20-3.xenial, automatic), percona-xtradb-cluster-56:amd64 (5.6.35-26.20-3.xenial)

Revision history for this message
Sveta Smirnova (svetasmirnova) wrote :

Thank you for the report.

Verified as described.

To repeat no need to upgrade: just install percona-xtradb-cluster-server-5.6 package and it will install incompatible galera3 package. Installing percona-xtradb-cluster-56 fixes the issue (and removes galera3 package)

Changed in percona-xtradb-cluster:
status: New → Confirmed
Revision history for this message
Sveta Smirnova (svetasmirnova) wrote :

Not repeatable with version 5.7

Revision history for this message
EvgeniyPatlan (evgeniy-patlan) wrote :
Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PXC-1971

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.