Packaging bug prevents install of PXC 5.6

Bug #1448533 reported by Matt Griffin on 2015-04-25
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
percona-xtradb-cluster-5.6 (Ubuntu)
High
George Ormond Lorch III
Vivid
High
George Ormond Lorch III

Bug Description

[Impact]

Package is unusable.

[Development Fix]

None, since Vivid+1 is not yet open.

[Stable Fix]

Fix package build to correctly arch-specific dh_install files in the binary-arch target.

[Test Case]

apt-get install percona-xtradb-cluster-server-5.6

Expected results: success

Actual results:

Setting up percona-xtradb-cluster-server-5.6 (5.6.21-25.8-0ubuntu1) ...
update-alternatives: error: alternative path /etc/mysql/percona-xtradb-cluster.cnf doesn't exist
dpkg: error processing package percona-xtradb-cluster-server-5.6 (--configure):
 subprocess installed post-installation script returned error exit status 2
Processing triggers for libc-bin (2.21-0ubuntu4) ...
Processing triggers for systemd (219-7ubuntu3) ...
Processing triggers for ureadahead (0.100.0-19) ...
Errors were encountered while processing:
 percona-xtradb-cluster-server-5.6
E: Sub-process /usr/bin/dpkg returned an error code (1)

[Regression Potential]

None, since package was unusable before.

[Original Description]

I encountered errors when installing Percona XtraDB Cluster 5.6 in 15.04 from the Universe repo.

Setting up percona-xtradb-cluster-server-5.6 (5.6.21-25.8-0ubuntu1) ...
update-alternatives: error: alternative path /etc/mysql/percona-xtradb-cluster.cnf doesn't exist
dpkg: error processing package percona-xtradb-cluster-server-5.6 (--configure):
 subprocess installed post-installation script returned error exit status 2
Processing triggers for libc-bin (2.21-0ubuntu4) ...
Processing triggers for systemd (219-7ubuntu3) ...
Processing triggers for ureadahead (0.100.0-19) ...
Errors were encountered while processing:
 percona-xtradb-cluster-server-5.6
E: Sub-process /usr/bin/dpkg returned an error code (1)

More output is captured here:
http://pastebin.ubuntu.com/10876065/

An initial investigation by Robie Basak from the Ubuntu Server Team at Canonical yielded the following:
Looks like a packaging bug - "dh_install -i" in the binary-arch target should be "dh-install -a", and "dh_installdebconf -i" in the same target shouldn't be there. I've not tested but that looks to be the likely cause to me - meaning that dh_install doesn't put the configuration into the corresponding (arch-dependendant) binary package.

George Ormond Lorch III (gl-az) wrote :
Changed in percona-xtradb-cluster-5.6 (Ubuntu):
status: New → Confirmed
assignee: nobody → George Ormond Lorch III (gl-az)
Robie Basak (racb) wrote :

Thanks George! We need to prepare an SRU and upload that. I can do it but I'm travelling and will be away for a week. I will try and find some time to get this fixed though. If you can find time in the meantime, it would be helpful if you could please follow https://wiki.ubuntu.com/StableReleaseUpdates#Procedure as either of us can do this. For the upload step in that procedure, upload a debdiff to the bug and subscribe ~ubuntu-sponsors to the bug instead - then any patch pilot rather than just me will be able to pick it up.

Hopefully we'll get there faster that way, but I will still try and get to doing everything ASAP regardless.

Changed in percona-xtradb-cluster-5.6 (Ubuntu):
status: Confirmed → Triaged
importance: Undecided → High
Robie Basak (racb) wrote :

SRU uploaded. Now awaiting review from the SRU team.

description: updated
Changed in percona-xtradb-cluster-5.6 (Ubuntu Vivid):
status: Triaged → In Progress
Matt Griffin (mattgriffin) wrote :

Thanks @racb!

Hello Matt, or anyone else affected,

Accepted percona-xtradb-cluster-5.6 into vivid-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/percona-xtradb-cluster-5.6/5.6.21-25.8-0ubuntu2 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in percona-xtradb-cluster-5.6 (Ubuntu Vivid):
status: In Progress → Fix Committed
tags: added: verification-needed
Matt Griffin (mattgriffin) wrote :

I tested the new package from vivid-proposed and was able to successfully install Percona XtraDB Cluster 5.6.

Matt Griffin (mattgriffin) wrote :

Tested version 5.6.21-25.8-0ubuntu2

tags: added: verification-done
removed: verification-needed
Dr. Jens Harbott (j-harbott) wrote :

I think there is still something wrong with the packaging here, I get:

~# apt-get install percona-xtradb-cluster-5.6/proposed-updates
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'percona-xtradb-cluster-5.6-dbg' for regex 'percona-xtradb-cluster-5.6'
E: Release 'proposed-updates' for 'percona-xtradb-cluster-5.6-dbg' was not found

and the package percona-xtradb-cluster-5.6 itself seems to be missing.

Robie Basak (racb) wrote :

@Jens

You want /proposed, not /proposed-updates. See https://wiki.ubuntu.com/Testing/EnableProposed.

Dr. Jens Harbott (j-harbott) wrote :

Ah, right, that works better now, thanks and sorry for disturbing. ;)

Launchpad Janitor (janitor) wrote :

This bug was fixed in the package percona-xtradb-cluster-5.6 - 5.6.21-25.8-0ubuntu2

---------------
percona-xtradb-cluster-5.6 (5.6.21-25.8-0ubuntu2) vivid; urgency=medium

  * Fix percona-xtradb-cluster-server-5.6 postinst failure: change
    'dh_install -i' to 'dh_install -a' and remove
    'dh_installdebconf -i' (LP: #1448533).

 -- Robie Basak <email address hidden> Wed, 29 Apr 2015 15:07:04 +0000

Changed in percona-xtradb-cluster-5.6 (Ubuntu Vivid):
status: Fix Committed → Fix Released

The verification of the Stable Release Update for percona-xtradb-cluster-5.6 has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Launchpad Janitor (janitor) wrote :

This bug was fixed in the package percona-xtradb-cluster-5.6 - 5.6.21-25.8-0ubuntu2

---------------
percona-xtradb-cluster-5.6 (5.6.21-25.8-0ubuntu2) vivid; urgency=medium

  * Fix percona-xtradb-cluster-server-5.6 postinst failure: change
    'dh_install -i' to 'dh_install -a' and remove
    'dh_installdebconf -i' (LP: #1448533).

 -- Robie Basak <email address hidden> Wed, 29 Apr 2015 15:07:04 +0000

Changed in percona-xtradb-cluster-5.6 (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers